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

restarting in application mode after flashing bootloader

Hello,

I am writting a batch script to flash a PCA10056.I use it to flash the softdevice, the bootloader and my application.

The script works well and flash the device correctly.

The problem is, after reset, it is launching the bootloader.

I'd like to launch the application directly after reset and enter the bootloader only when I explicitely call it, using the right button. How can I do the trick?

I am using the SDK v13.0 and the blinky example as a test application.

Thanks for your help

regards,

Mickael

Parents
  • Hi,

    The application is not launched because the "nrfutil settings generate" command is not correctly set with all necessary flags.

    Have a look at the nrfutil documentation here to see explanations and an example. You are at the very least missing a --application flag. Without this, the settings page is not going to contain a valid checksum for the application. It's also a bad idea to set "--bootloader-version" to a SoftDevice FW ID (It would work, but you shouldn't tie bootloader version to the SoftDevice FW ID).

    Best regards,
    Rune Holmgren

  • Thank you.

    I modified the line to

    %nrfutil% settings generate --family NRF52 --application %pathToApp% --application-version 1 --bootloader-version 1 --bl-settings-version 1 %pathToSettings%

    and it works

    But i needed to modify application version and bootloader version from 0 to 1. Any idea why?

  • I can't spot any reason bootloader-version 0 shouldn't work, but if 1 works for you I guess you might just use that. If you want to have a look at why 0 doesn't work in your setup you might want to try debugging the bootloader and see where it runs into the issue.

    Best regards,
    Rune Holmgren

Reply
  • I can't spot any reason bootloader-version 0 shouldn't work, but if 1 works for you I guess you might just use that. If you want to have a look at why 0 doesn't work in your setup you might want to try debugging the bootloader and see where it runs into the issue.

    Best regards,
    Rune Holmgren

Children
No Data