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

How to load an application with bootloader (NRF82540)

Hi,

I loaded bootloader, SoftDevice, and Application using nRFConnect - Programmer. But it doesn't launch the application. It fails at

nrf_bootloader_fw_activate()
with s_dfu_settings.bank_1 = 0;

How do I combine all three, and load with nRFConnnect - Programmer?

Thanks,

David

Parents
  • In the post: devzone.nordicsemi.com/.../how-to-flash-the-softdevice-the-bootloader-and-the-application-at-once

    • nrfjprog --eraseall --programs softdevice.hex --program application.hex bootloader.hex --verify --reset


      The command is NOT working, cannot have multiple --program a1.hex --program a2.hex
      --programs is typo in the above command, I believe.

      ==========================================================================
      Generated application settings for bootloader, but cannot add into mergehex.

      >mergehex -m softdevice.hex bootloader.hex app.hex settings.hex -o app_out.hex
      Parsing input hex files.
      ERROR: An invalid argument was provided. Use --help for a list of valid
      ERROR: arguments.

      ==========================================================================
      >mergehex -m softdevice.hex bootloader.hex app.hex -o app_out.hex
      merged without error, BUT flashed into the device, and it doesn't launch the application.

      So what is correct command to program multiple files at once, or what is correct mergehex command to merge settings.hex into bootloader?

      Thank you,

      David

Reply
  • In the post: devzone.nordicsemi.com/.../how-to-flash-the-softdevice-the-bootloader-and-the-application-at-once

    • nrfjprog --eraseall --programs softdevice.hex --program application.hex bootloader.hex --verify --reset


      The command is NOT working, cannot have multiple --program a1.hex --program a2.hex
      --programs is typo in the above command, I believe.

      ==========================================================================
      Generated application settings for bootloader, but cannot add into mergehex.

      >mergehex -m softdevice.hex bootloader.hex app.hex settings.hex -o app_out.hex
      Parsing input hex files.
      ERROR: An invalid argument was provided. Use --help for a list of valid
      ERROR: arguments.

      ==========================================================================
      >mergehex -m softdevice.hex bootloader.hex app.hex -o app_out.hex
      merged without error, BUT flashed into the device, and it doesn't launch the application.

      So what is correct command to program multiple files at once, or what is correct mergehex command to merge settings.hex into bootloader?

      Thank you,

      David

Children
No Data
Related