2022-11-03 10:25 AM
We have another problem with EEPROM emulation. We use STM32H723Z and store user configuration to flash as emulated EEPROM. I used driver from the H7 examples' directory as a basis.
When we write the configuration heavily, after few days, there occurrs an ECC error and Hard Fault is hit. As the original driver didn't anticipate this, I added a code that after reset tries to read all the addresses and when HardFault due to ECC is detected, erase the whole offending sector, therefore the configuration is lost.
Does anyone have any idea why the hard fault could happen? We will probably solve it by modifying our boards and using external EEPROM, but this is last resort to solve it this way. I think that there might be some bug in the driver but I cannot find it. I speculate that some of the writes can be interrupted for some reason?
Karel
Solved! Go to Solution.
2022-11-18 04:19 PM
2022-11-17 09:59 PM
Hello @heveskar,
Please review this post, it may help you on this issue.
Imen
2022-11-18 04:19 PM
and this one
2022-11-20 11:22 PM
Thank you @Pavel A., I think this will solve the issue. Shame that I could't find that discussion myself :(
2022-11-20 11:24 PM
@Imen DAHMEN Thanks, I found that one, but I think I am programming data of correct length (I am using ST's EEPROM emulation so this shouldn't be a problem).