FW update error E: Image in the secondary slot is not valid!

Hi, I have integrated MCUBoot to my application and I see the below error every time on device reset.

E: Image in the secondary slot is not valid!

Below are my prj.conf flags setup

CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SECURE_BOOT=y
CONFIG_SB_SIGNING_KEY_FILE="priv_key.pem"
CONFIG_DFU_TARGET=y
CONFIG_IMG_MANAGER=y
CONFIG_DFU_TARGET_MCUBOOT=y
CONFIG_DFU_TARGET_STREAM=y
CONFIG_STREAM_FLASH_ERASE=y
CONFIG_STREAM_FLASH=y
CONFIG_B0_MIN_PARTITION_SIZE=y
CONFIG_NRF53_UPGRADE_NETWORK_CORE=n

I am using NRF Connect SDK v2.2.0 and my target board is nRF5340-DK

Please guide me what I am doing wrong, thank you in advance

Please let me know if any information is nedded.

Parents Reply
  • Hi Sigurd, thank you for the quick response.

     Below are my comments

    1) Do you see the same with v2.4.0 ?

    —> We haven’t tried it on v2.4.0.

    2) Did you try to do a DFU ?

    —> Yes, we did.

    —> I am sorry for not mentioning this, we observe this error after we do DFU and reset the device.

     It was working well earlier and we were trying something with kconfig to reduce the update bin size and this happened.

    We do not know what we messed up.

Children
Related