5 years, 9 months ago.

DFU with NRF52832

Hi, I want to be able to update my program OTA, so I havve to use some kind of DFU bootloader. I found an precompiled bootloader for the redbear blenano2, so I used that, and it works, I see the dfutarg advertising.

But how can I now compile my application together with the bootloader and upload? and how can i start the bootloader from my application? or can I do it completly different/better anyways?

using: platformIO MBED NRF52832 (redbear) Segger JLink Visualstudio Code

1 Answer

5 years, 9 months ago.

Hi Jonas,

I believe the documentation of firmware update

https://os.mbed.com/docs/mbed-os/v5.11/reference/firmware-update-in-mbed-os.html

and bootloader

https://os.mbed.com/docs/mbed-os/v5.11/tutorials/bootloader.html

should be able to answer your question about merging application and bootloader.

And for starting bootloader, you must do reboot, sd_nvic_SystemReset() would be the function for nRF chip.

Here is a good article for DFU example https://os.mbed.com/blog/entry/firmware-updates-mbed-5-flashiap/.

Thanks,

Desmond, team Mbed