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

Problem multiple images start application; nrfconnect, bootloader, application, softdevice

Hello

i have the following parts which i want to flash to the nrf52840 with nrfconnect.

Softdevice s140, open bootloader, own application.

If i flash all at once the device is not jumping to the application, it stays in the bootloader.

If i flash first the softdevice and then the bootloader and application together nothing starts.

If i use the console and nrfjprog and flash one after the next it stays in bootloader mode.

It only works if it's in bootloader mode and i send the application via dfu usb-serial.

Do i have to merge anything or generate a settingspage and merge ?

Thanks in advance

twittich

Parents
  • TL;DR: Merge everything before you flash it

    In the later versions of the secure bootloader, there is a value stored at address 0xFF8 (or similar) which is located in the first flash page.

    If you program the softdevice before programming the bootloader, then you will most likely overwrite the first page of the softdevice due to the 'sectorerase' argument being used. 

    Note that you have most likely forgotten to flash the bootloader settings page alongside the app.

    this is generated with the `nrfutil settings generate` command.

Reply
  • TL;DR: Merge everything before you flash it

    In the later versions of the secure bootloader, there is a value stored at address 0xFF8 (or similar) which is located in the first flash page.

    If you program the softdevice before programming the bootloader, then you will most likely overwrite the first page of the softdevice due to the 'sectorerase' argument being used. 

    Note that you have most likely forgotten to flash the bootloader settings page alongside the app.

    this is generated with the `nrfutil settings generate` command.

Children
Related