After Flashing via nrfConnect via desktop , application does not restart

Hello team,

I have the issue in some samples of nrf5340, after I successful erase and flash, the controller seem to be stuck at bootloader.

I observed the below image on nrfConnect Programmer app after flashing and reading back the firmware.

Can you please explain to me what this means as this does not seem to be usual?

In usual flashing the regions read from the controller is almost the same as the files flashed.

And why is the controller stuck at Bootloader

  • Hi aiswaraya,

    can you please tell me, are you using dk board or custom board ( eg :- nrf5340dk ), Is your board designed for DCDC or LDO power mode. Are you flashing both the application core and network core images. What exact files are you flashing (e.g., merged.hex).

    Thanks and regards

    Nishant

  • Hello,

    I believe the image was not uploaded successfully. Can you please try to upload it again?

    Also, after flashing the device using nrf Connect for Desktop -> Programmer. Can you try to read it back and save the file to a .hex file(s)? Is it possible to upload both what you are trying to program and what you are reading back, so I can compare the two?

    Question: Is it flashed successfully if you use e.g. west flash -d build (build being your build folder)? Or does it fail/get stuck in the bootloader in that case as well?

    Best regards,

    Edvin

  • HI Nishant,

    I am using the merged.hex and merged_NET.hex.

    I still need to check the power mode.

    1. is it a dk baord or custom board.
    2. Use west flash instead of manual hex flashing, as it handles multi-image flashing correctly.

      Using nrfutil manually (flash both cores separately):

      1. Flash the network core:
      nrfutil device program --firmware zephyr.hex --options chip_erase_mode=ERASE_ALL --core Network
          
      1. Flash the application core:
      nrfutil device program --firmware zephyr.hex --options chip_erase_mode=ERASE_ALL
          
      1. Reset the board:
      nrfutil device reset --reset-kind=RESET_PIN
          
Related