2025-12-19 8:39 PM - last edited on 2025-12-19 9:20 PM by Peter BENSCH
Hi,
I am using the STM32H755ZIT6 dual-core microcontroller.
The internal Flash memory has a sector size of 128 KB and a page size of 4 KB.
In my application, I perform erase and write operations on a specific Flash sector. If a power failure occurs while the erase or write operation is in progress, I occasionally observe that:
The Flash sector being accessed becomes corrupted
The sector cannot be read by the application
The same sector also becomes inaccessible in STM32CubeProgrammer
This issue does not occur every time and seems to happen randomly during power loss.
After full chip erasing it I can access the sector region.
I would like to understand:
The possible reason for this Flash corruption during power failure
Whether this behavior is expected for STM32H7 Flash memory
Recommended software or hardware methods to avoid or recover from this situation
Any guidance would be appreciated.
Thank you.