Eeprom library fail after soft reset #2293
-
Hello everyone. I am coding on STM32G030C6 with Platformio and arduino core. I am using the current version of stm32duino. I can save data to flash with the eeprom library and read it without any problems. After I cut off the power and when I re-energize it, I can access the eeprom records. Again, no problem here. Here's the problem; HAL_NVIC_SystemReset(); If I restart with the function, eprom records are read incorrectly. I get wrong values on the first few readings. Then I start reading the correct values. But it seems completely inconsistent. To overcome this problem, I read with a loop and ignored them. Then I read again and tried to reach the real values, but I got inconsistent results. Sometimes it worked, sometimes it didn't... I'm pretty newbie at this. What mistake could I be doing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
I tried again at home after work. It works smoothly. I'm absolutely confused. I'll check it for a few days for reliability. Thanks. |
Beta Was this translation helpful? Give feedback.
I tried again at home after work. It works smoothly. I'm absolutely confused. I'll check it for a few days for reliability.
Thanks.