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:
the flash storage blanking and losing main.py and other non-frozen-bytecode files.
the entire flash corrupting leading to a continuous boot cycle we can't reflash our way out of.
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:
Even if we never write to flash, could flash memory still get corrupted in a brownout state?
Does the micropython os ever write to the flash of its own accord?
Could writing NVS key/value config data also cause flash corruption in a brownout state?
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.
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.