I’m working on an nRF52832-based project using the Nordic SDK (v3.5.99-ncs1-1) and MCUboot for OTA updates. I have a 512KB internal flash and 4MB external SPI flash (P25Q32H) configured. Partition Manager is enabled, and I’m using both internal and external flash for primary and secondary image storage. However, upon booting, I consistently get the following error message:
*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
Attempting to boot slot 0.
No fw_info struct found.
Attempting to boot slot 1.
No fw_info struct found.
No bootable image found. Aborting boot.
It seems that MCUboot is unable to find a valid firmware image in either slot. Below are the details of my partition setup and configuration:
DTS File
pm_static.yml
prj.conf
mcuboot.conf
What I’ve Tried So Far:
- I’ve ensured that the partition sizes between the internal and external flash for slot 0 and slot 1 are the same (448KB).
- The external SPI flash is properly configured and recognized in the device tree (
jedec,spi-nor
compatible). - Partition Manager seems to generate the correct memory map, and I have verified this by inspecting
build/zephyr/pm.yml
. - I am able to flash the primary image (
image_0_partition
) using thewest flash
command, but the bootloader still cannot detect any valid firmware in either slot.
My Questions:
- What could be causing the bootloader to not find the
fw_info
struct in either slot 0 or slot 1? - Is there any additional configuration required to ensure that the
fw_info
is properly embedded in the image so that MCUboot can detect it? - Do I need any specific settings in the
prj.conf
file to make sure the bootloader can correctly identify and boot from the internal or external flash? - Is there a recommended way to debug and confirm whether the firmware image is being properly written and contains the expected metadata?
Any help or guidance would be greatly appreciated!
Additional Info:
- Chip: nRF52832 (512KB internal flash, 64KB SRAM)
- SDK Version: 2.6.1
- External Flash: P25Q32H (4MB SPI NOR flash)
- MCUboot: Enabled via Partition Manager
- Toolchain: Zephyr with
west
build system
Thank you for your assistance!