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

What are the repercussions, if the Firmware goes into bootloader mode with a SoftReset and without graceful shutdown?

I'm using a nrf51422 customised board. I want to push the firmware to Bootloader mode via ANTware using a payload. But if i use graceful shutdown, the application malfunctions. If I use a NVIC Softreset after sending the payload, it goes into Bootloader mode and comes out after the DFU Timeout Interval. I am using a dual bank bootloader. Is there any repercussions to such a Softreset without the graceful shutdown i.e restart_in_bootloader() function from the examples?

  • You say that your application malfunctions, does it hardfault, reset etc?

    The restart_in_bootloader() is not really a graceful shutdown , it clears and writes to a dedicated flash page used to share information about the application and for initiating bootloader mode. This is explained more in detail in this Infocenter page covering the ANT bootloader.

    The bootloader will not automatically enter bootloader mode without setting the ENTER_BOOT parameter in the ant_boot_settings.

Related