BL-653(nrf52833) failed to boot the FW from secondary slot of mcuboot which is located in external flash.

I have a BL653 module and with a lot of efforts somehow I was able to successfully create a secondary slot for mcuboot in external flash connected using SPI. Every time I try to DFU over BLE the latest FW image gets loaded in external flash which is secondary slot - slot 1. But I am unable to load the latest FW image in slot-0 or to boot the latest FW from slot-1 itself. I am using nRFDeviceManager app for my experimentation and try to upload the dfu-application.zip from build folder. When  I click TEST the RTT shows  <err> mcumgr_img_grp: Faled boot_set_next with code 3, for slot 1, with active slot 0 and confirm 0. Also the app reports error Invalid image header magic(23)

Here are the snips from app

Here are the settings from mcuboot.conf file

Here is zip of my build folder

4532.build.zip

Could anyone guide me on how to boot the image from secondary slot or copy it in primary slot

Parents Reply
  • Aniket95 said:
    It seems like I need to increase the size for mcuboot I hope that could be done by pm_static.yaml, correct?

    It could.

    However, you could also set CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000 in child_image/mcuboot.conf.

    I recommend not using pm_static.yml for develpement. First use pm_static.yml when you are closer to deploying your project. The main use-case for static partitioning is to make sure that the partitioning does not change in-between DFUs, as changing partitioning between DFUs is not allowed.

Children
Related