2025-08-20 2:35 AM
Hello Team,
I'm using STM32H573I-DK for our application. I'm using MCUBoot application on Zephyr project directory to setup a secure boot and firmware update on this DK.
I created a RSA key ( cd zephyrproject\\bootloader\\mcuboot, python ./scripts/imgtool.py keygen -k mykey.pem -t rsa-2048 ). I'm using this key in prj.conf of both the bootloader and application.
In Application part I modified device tree to add partition to the flash memory. I'll share conf file, editted DTS below.
After building BL, I flashed it to DK @0x08000000. I flashed application @0x08010000 (Size : 10000). (via STM32CubeProgrammer)
After these steps I issued a Development board reset, If my understanding is correct the BL will jump to address Application address 0x8010000, which isn't happening, instead I'm getting the following error messages
*** Using Zephyr OS build v4.2.0-802-g00e217da7d84 ***
I: Starting bootloader
W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=128 - too small?
E: Image in the primary slot is not valid!
E: Unable to find bootable image
Also I took a dumpinfo of the signed firmware binary file using this command (imgtool dumpinfo C:/Users/Naveen/Documents/Project/build/zephyr/zephyr.signed.bin)
In Image header I observed that the field protected_tlv_size = 0, does this means the firmware isn't signed properly?
What could be the root cause of the issue, why BL doesn't jump to application? I'm new to zephyr. It would be great if some one help me out here
#Zephyr
2025-08-20 3:46 AM
Hello @naveen_kumar
According to the log the BOOT_MAX_IMG_SECTORS is too small for your image.