tve / mqboard

Micro Framework for MicroPython Boards Managed via MQTT
MIT License
118 stars 18 forks source link

Board not changing to normal mode via reset #19

Open tialm opened 4 years ago

tialm commented 4 years ago

I can't observe the behavior stated in point 5 of https://github.com/tve/mqboard/tree/master/blinky .

Note that there is a time-out on safe mode (set to 3 minutes in the board config) after which it attempts to switch back to normal mode if the watchdog is ticking along fine. If that happens you will see a magenta message C 00:58:54.405 watchdog: Switching to NORMAL MODE via reset. Just wait until it's connected again...

I think my board is timing out because after a while I start to get the following in a loop.

I 20:26:10.031 mqrepl: Dispatch eval, msglen=15 seq=0 last=True id=0F00D dup=0
E (770603) esp_ota_ops: not found otadata
W 20:26:10.161 mqrepl: Exception in eval: (-261, 'ESP_ERR_NOT_FOUND')

But my board doesn't reset. I have to do it manually.

tve commented 4 years ago

If this still reproduces with the latest changes, can you please post more of the console output of the board? It seems that the watchdog tries to mark the current boot partition as OK but that fails due to your partition table, sounds like something I need to fix...