Is it possible to have data corruption just after a soft restart?
Posted: Thu Aug 06, 2020 4:31 am
I'm having an odd problem I can't explain. I have a board based on an ESP32-VROOM-32U module with 16MB flash and my FW uses Mongoose OS. My firmware seems to run fine for hours, even days collecting data from CAN bus, until I restart the ESP32 without disconnecting power. This happens after an OTA or when I update a user configuration parameter, causing a restart. After the restart, the FW does not run correctly. It does not crash, but it seems as if some of the variables become corrupted shortly after the FW starts. I have limited debugging tools, and have not had any luck. The data is all coming in from a CAN bus and I'm using the CAN controller in the ESP32.
Is there any way data or memory state somehow survives across a soft reboot? If I pull the power and restart it, then all is fine until the next soft restart. Perhaps the CAN controller becomes corrupted?
Any thoughts are appreciated, thanks.
Is there any way data or memory state somehow survives across a soft reboot? If I pull the power and restart it, then all is fine until the next soft restart. Perhaps the CAN controller becomes corrupted?
Any thoughts are appreciated, thanks.