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

Secure bootloader and reset

I am  using SDK 16.0.0, Soft Device S132 (v7.0.1) on a custom nRF52832 board.

I have a secure boot loader on board that is triggered by a buttonless OTA application.

After the DFU completes, I see that the behaviour does not mimic the same as when the device comes out of a power cycle or cold reset.

Digging around in the boot loader code base I see that in the file 'nrf_bootloader.c' the function 'dfu_observer' calls the function 'bootloader_reset(true)'.
The parameter passed in to this function tells the function to make a backup and I do not understand why that is the case?
I am aware of the need to tell the boot loader settings generator tool to incorporate backup or not but the bootloader code seems to insist on doing the backup.

I also do not see any use/invocation of the function bootloader_reset() with a parameter 'false' (which is where there is a call to NVIC_SystemReset).

Can somebody explain how in fact the boot loader DFU resets and restarts the chip -- if at all?

Related