Failed to set MCUboot secondary to external flash. E: Failed to open flash area ID 2 (image 0 slot 1): -2, cannot continue

I have problem placing MCUboot secondary to external flash. I have been testing using nRF9160DK. Project compiles fine but device doesn't boot after flashing the firmware.

Here is the log from serial output of the board. I get error message E: Failed to open flash area ID 2 (image 0 slot 1): -2, cannot continue at the end.

*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
Attempting to boot slot 0.
Attempting to boot from address 0x8200.
I: Verifying signature against key 0.
I: Hash: 0xa5...ef
I: Firmware signature verified.
Firmware version 2
I: Setting monotonic counter (version: 2, slot: 0)

*** Booting MCUboot v2.1.0-dev-4594a8693738 ***
*** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
I: Starting bootloader
E: Failed to open flash area ID 2 (image 0 slot 1): -2, cannot continue

Here is simple project which I have been trying to use.

app_eft.zip

Parents
  • Hello,

    Sorry for getting back to you a bit late. I was out of the office last week due to a family emergency. I apologize if this has caused any inconvenience for you.

    Could you answer the questions I asked in my first response? How have you configured the partition manager for the external flash? Have you properly defined the external flash in the DTS or through an overlay file? If so, could you share it here so that I can review it? Also, try enabling the MCUboot logs, as they will provide more information on the issue.

    Kind regards,
    Abhijith

Reply
  • Hello,

    Sorry for getting back to you a bit late. I was out of the office last week due to a family emergency. I apologize if this has caused any inconvenience for you.

    Could you answer the questions I asked in my first response? How have you configured the partition manager for the external flash? Have you properly defined the external flash in the DTS or through an overlay file? If so, could you share it here so that I can review it? Also, try enabling the MCUboot logs, as they will provide more information on the issue.

    Kind regards,
    Abhijith

Children
  • Hello,

    Samples from the SDK work fine. Changing SB_CONFIG_SECURE_BOOT_APPCORE=y from y to n didn't solve problem.

    I have enabled partition manager on overlay and also enabled partition manager for the external flash with 

    SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
    The debug logging for MCUboot didn't show more than what is in first post. The whole project is in zip file on first post.
Related