This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

start app after dfu uploading nrf52

Hi,

I'm using "bootloader secure" example from sdk 12.2 and I modify it for instead of use button to enter in DFU, use a value written in a memory position.

As in other bootloaders I used, for example, bootloader of sdk 6.1, when the zip upload was finished, the app starts automatically. The function wait_for_events detects flag BOOTLOADER_COMPLETE and executes the function bootloader_app_start in main function. In this new sdk 12.2 I thought that this will be the same, but I don't find the function or the flag that tolds that the upload is complete.

This is important because I need to start the app after the firmware upload because I have to rewrite the byte in memory in order to not enter again in dfu mode.

How and where can I start the application just after the firmware upload?

Thanks!

Related