pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
200 stars 166 forks source link

Gpy brownout operation corrupting flash. #447

Closed ScottNoakes closed 4 years ago

ScottNoakes commented 4 years ago

Hi kindly Pycom experts,

We are a charity developing a G01 and L01 gardening sensor and learning platform to engage students with STEM concepts through the medium of gardening. The devices run on 3xAA batteries with the intention being to let the batteries run down and the device eventually fail. When they run out (every 6 months) we'll get the teacher to replace them.

However we have encountered the following conditions when the power reaches brownout levels:

We believe this is being caused by some code that writes any full exception traces to a file. We also have 2KB FRAM on board so can move that to be stored there. But we have these questions:

Our hope is that if we never ever write anything to flash then we'll be ok. Im sure these are pretty basic questions for experienced type so appreciate any assistance you can provide.

Cheers Scott.