Update firmware for Nordic nRF52x to a more fresh version? #7643
Replies: 1 comment
-
Posted at 2023-10-26 by @fanoush Which board? I don't see any hex file e.g for mdbt42q, just DFU zip files. Also it is unlikely you need hex file except Microbit. Posted at 2023-10-26 by DanDyse This one Attachments: Posted at 2023-10-26 by @fanoush See http://www.espruino.com/nRF52832DK Fortunately it is a devboard and any real developer can build firmware for this one from the source ;-) EDIT: and BTW you can flash old hex and then trigger dfu update and try mdbt42q zip over bluetooth, looks like the serial console is on same pins. Posted at 2023-10-26 by DanDyse Thank you, I am not able to build this myself. But I understand if there is no need if nobody is using it anyway. And I have already tried flashing it over bluetooth, didn't work, but I'll try again tomorrow. Posted at 2023-10-27 by DanDyse Me again, I have tried setting the module (flashed with old hex before) in DFU mode by submitting
But the IDE was unable to find a device in DFU mode. So this didn't seem to work. Another thing I have noticed: I have uploaded a script to let the device advertise like a OpenHaystack beacon – works good until I power it off and on: the device falls back into "Espruino mode" no matter if uploaded to RAM or Flash. Can it be that the old hex does not work the way Espruinos work today? Posted at 2023-10-27 by @fanoush
If you are still talking about http://www.espruino.com/nRF52832DK then D0 is the wrong one. In general you need to press BTN1 to get to DFU. Only on mdbt42q this button is mapped to D0. On this board it is a real button. However as the So I was wrong, unfortunately you cannot update it over BLE. So building from source is the best option. In Linux or WSL that is part of Windows it is quite easy, something like
I just tried it on Debian bullseye and I had to also run
Attachments: Posted at 2023-10-27 by DanDyse Thank you very much! :-) Posted at 2023-10-30 by @gfwilliams On the nRF52832DK I generally just update the firmware by copying the hex to the flash drive that it creates - the hex will include the sd+bootloader+app so updating using that hex via DFU wouldn't work. You'd need to do your own build with The hex file is a tricky one - as on https://www.espruino.com/nRF52832DK, at one point Nordic actually paid me for up to date builds (for a year I think) but then they decided not to. So while builds might be handy (and I personally test a lot of stuff using the DK build) it seems a bit odd to start doing builds again when they weren't bothered. But then nobody has paid me for any builds in the last 3 years. For some reason I've been doing RAK Wireless and Smartibot even so so maybe I should do the DK again. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-10-26 by DanDyse
I see here that the .hex for the Nordic is very old. Could someone update this to a newer version? Please?
Beta Was this translation helpful? Give feedback.
All reactions