I am using the Adafruit Feather nRF52840 Sense with a W25Q32 external flash and MCUBoot. I can successfully read and write to external flash using NVS, and simple DFU works fine.
Issues:
-
When I enable
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
, the device does not start. -
If I first flash a DFU-compatible build (without
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
), the device boots correctly. -
When I update via DFU to a new build with
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
, the DFU process completes successfully, but after reboot, the device does not boot.
Observations:
-
External flash (W25Q32) works fine with NVS.
-
Simple DFU works correctly if the build does not have
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
. -
MCUBoot does not boot when
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
is enabled, whether flashed directly or updated via DFU.
Questions:
-
Why does the device fail to start when
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
is enabled? -
Are there additional configurations needed for MCUBoot to work with W25Q32 external flash?
-
Why does the device not boot after a successful DFU update using a build with
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
? -
How can I debug this? Are there specific MCUBoot logs, settings, or hardware checks I should look into?
-
Is there a known issue with
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
on the Adafruit Feather nRF52840 Sense?
Any help or insights would be greatly appreciated!