2025-08-05 5:05 PM - last edited on 2025-08-12 6:35 AM by Amel NASRI
I'm using the nucleo-H753ZI board to test mcuboot.
The setup works and I can successfully run the bootloader and the application in slot0_partition using zephyr sysbuild.
However when trying to upload an image I get the following flash write error:
[00:00:29.758,000] <inf> mcuboot_util: Image index: 0, Swap type: none
[00:00:29.758,000] <inf> mcuboot_util: Image index: 0, Swap type: none
[00:00:29.922,000] <err> flash_stm32h7: Status Bank2: 0x00040000
[00:00:29.922,000] <err> STREAM_FLASH: flash_write error -5 offset=0x00100000
[00:00:29.922,000] <err> mcumgr_img_grp: Irrecoverable error: flash write failed: 12
Here is my flash0 dts:
Solved! Go to Solution.
2025-09-12 7:15 AM
Turns out it was a stm32_flash driver bug in the zephyr repo recently fixed: https://github.com/zephyrproject-rtos/zephyr/commit/ea1245eb92000d3fe24d2b974754714973ce5ab1 Works with this fix also when slot2 is in bank2!
2025-08-15 3:20 PM
Unfortunately I'm still stuck with the flash write error during a application image upload with mcumgr. Any help would be appreciated. Thanks!
2025-09-12 1:17 AM
Having both slots in bank1 fixes the issue and I can successfully upgrade the firmware with the mcumgr and there is NO flash write error: [00:00:29.922,000] <err> flash_stm32h7: Status Bank2: 0x00040000 (PGSERR).
However that let's me waste the other 1MB of flash in bank2. So still unclear why writing into bank2 doesn't work while writing into bank1 works.
2025-09-12 7:15 AM
Turns out it was a stm32_flash driver bug in the zephyr repo recently fixed: https://github.com/zephyrproject-rtos/zephyr/commit/ea1245eb92000d3fe24d2b974754714973ce5ab1 Works with this fix also when slot2 is in bank2!