STM32H723 Flash is filled with 0 after erase and write
Hello
I am running a NUCLEO-H723ZG board.
User data is saved to internal flash from within the application according to the following procedure: unlock the flash, erase, program. None of the operations return errors. When monitoring the memory, everything looks correct.
The sector used is sector 7. Starting address 0x080E0000.
Here comes the issue: the next time deploying the application/powering on the board, lots of areas in the sector are filled with 0. For instance:
0x080E0000-0x080E0040 are only 0, even though I have written (non 0) to them.
0x080E0040-0x080E0200 are OK
0x080E0200-0x080E0240 are 0.
0x080E0240-0x080E0400 are OK. And so on. This pattern repeats over the entire sector.
The size of the 0-areas seems to vary every time deploying and re-run the application.
I have found a workaround that seems to work: Delete 2 sectors, starting sector 6. Sector 6 will now be corrupt as described above, while sector 7 can be used.
Does anyone have a clue what might be the issue and a solution to the problem?
