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

Bootloader does not start the flashed application. No valid app to boot

Hello,

I am just porting an application from the NRF52810 and SDK13 to the NRF52840 and SDK15.2.

I am using the secure bootloader (from the examples and also my application is based on ble_app_buttonless_dfu) and i am currently struggeling to get the bootloader to start the application loaded via SWD.It looks like the App_valid flag is not correctly set.

If i update the app via the DFU it works. 

For the application hex file i generate the settings.hex and merge it with the application hex with the following commands:

C:\Python27\Scripts\nrfutil.exe settings generate --family NRF52 --application _build/nrf52840_xxaa.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 _build/settings.hex
"C:\Program Files\Nordic Semiconductor\nrf5x\bin\mergehex.exe" -m _build/settings.hex _build/nrf52840_xxaa.hex -o _build/nrf52840_xxaa_flash.hex

And then i flash the bootloader hex, the softdevice s140_nrf52_6.1.0_softdevice.hex and the application hex file.

The bootloader then does not detect the app valid flag. Maybe it is at the wrong location ? I did some debugging and the bootloader checks location 20005AA8 which is 0.

With the older chip and SDK this process worked fine, what do i do wrong ?

kind regards

Related