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,

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

    So DFU was working before?

    Do you have the previous build folder? Maybe you can compare the new and old .config files from the build folder?

    Also, do you have the full log where this "E: Image in the secondary slot is not valid!" is printed?

Children
Related