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

Aplication not work after writing bootloader at SDK15

I wriing softdevice ,aplication and bootloader by nrfprog tool.

But,the device works with the bootloader, not the application.

After writing, it is reset and flag is set as follows.

nrfjprog.exe --family NRF52 --memwr 0x07f000 --val 0x1
nrfjprog.exe --family NRF52 --reset

How can I make it work from an application?

Parents
  • Hi,

    The secure bootloader does not rely on a simple flag to know that a valid application is in place. If you want the bootloader to start an application after you have flashed it directly, you have to also flash a valid bootloader settings page which has the correct checksum for the current application. You can generate a bootloader settings page using nrfutil as explained here. You need to program that together with the application. Whenever you update the application  you also have to update the bootloader settings.

    (Note that this is not needed if you update the application via DFU, as in that case the bootloader will update the bootloader settings page).

Reply
  • Hi,

    The secure bootloader does not rely on a simple flag to know that a valid application is in place. If you want the bootloader to start an application after you have flashed it directly, you have to also flash a valid bootloader settings page which has the correct checksum for the current application. You can generate a bootloader settings page using nrfutil as explained here. You need to program that together with the application. Whenever you update the application  you also have to update the bootloader settings.

    (Note that this is not needed if you update the application via DFU, as in that case the bootloader will update the bootloader settings page).

Children
Related