I'm new to micropython, but not to python or rpi which I've used extensively.
I'm trying to use an ESP8266 board to create a remote temperature/humidity sensor in the backroom of our house. Using esp8266-20200911-v1.13.bin for the flash.
I'm using a SHT30 i2c temp sensor, the board measures temperature every 2 seconds using a timer, and prints it out (using print(), for debug).
I'm finding that things work very well for quite a while, but if I leave the board running overnight (connected to my PC so I can monitor the prints), on many occasions I come back and find the system heavily corrupted so the only thing I can do is re-flash the board.
Specifically, the board appears to spontaneously reboot at some point, and the last messages are typically these:
Code: Select all
ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x40100000, len 30768, room 16 tail 0 chksum 0xc4 load 0x3ffe8000, len 1024, room 8 tail 8 chksum 0xd8 load 0x3ffe8400, len 1080, room 0 tail 8 chksum 0xc4 csum 0xc4
At this point, the board needs a reflash, nothing else works.
I started using FAT32, then switched to littlefs thinking that it would be more robust but I get the same issue.
Does this ring a bell for anybody?
I've already pruned a lot of the code to try to pinpoint where the issue might come from (I had code that responded to http requests, but removed it). I can do more pruning but before I dig deeper I wanted to ask around.
Thanks in advance!