Fault/error when accessing data on internal flash memory STM32H753
Hi,
We're storing some device configuration on last sector(7) at BANK2 inside internal flash memory. Sometimes device goes into state where part of this this sector is not readable by our code(generates fault) also this sector is not readable by cubeprogrammer and only solution to make our device work again(make unreadable part readable again) is to mass erase chip.
What could be causing such issue where we cannot read only part of flash memory? How can we check why such region is unreadable?
Some more details:
- We are always erasing whole sector when we need to change something in config structure and then we reflash it.
- Data we're storing there is around 1700 bytes currently
- This happens pretty much randomly and there is no easy way to reproduce it
