I've mostly finished my ESP Easy project on an ESP LOLIN32 Lite board (guess it's not an original WEMOS board, cannot say ..) however now I found it's not working in real circumstances...
I'm using it with a Li battery connected, so I would like to use deep sleep to wake up every 10-15 minutes. It would basically work, but the board sometimes stops when rebooting.
Initially I thought this might be a battery issue or a hardware issue (that's still possible for sure), but
- same behavior on battery or on USB (connected to PC)
- same behavior on 2 different LOLIN32 Lite boards. No other hardware connected
at the serial log I found, on both devices it always stops at the same log entry, at or after "AP Stopped" (+/- 5 characters in the serial log)
Code: Select all
rst:0x5 (DEEPSLEEP_RESET),boot:0x13 LASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:1
load:0x3fff0018,len:4
lod:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
▒U38 : Info :
INIT : Booting rsion: Karls Waage: Jun 26 2021 16:50:10 (ESP32 SDK v3.2.3-14-gd3e562907)
39 : Info : INIT : Free RAM:296100
40 : Info : INIT : Deep Sleep #111 - Restart Reason: CPU0: Deep Sleep, Wakeup reason (901) CPU1: for APP CPU, reseted by PRO CPU
40 : Info : FS : Mounti76 : Info : CRC : SecuritySettings CRC ...OK
79 : Info : WiFi : Start network scan all channels
115 : Info : WiFi : AP Stopped
116
There is no hardware connected to the dev board. And I switched off all plugins - only WIFI and the OpenHAB connector are activated.
The issue is quite random. I had cases that the boot was working 20 times in sequence and failed at the 21st; next time it took only 3 reboots. Also, I originally thought this is related to deep sleep (as a "wake up issue"); but I had the same behavior at least once after pressing the reset button on the board.
Do you have any hints for me - how could I mitigate that behavior; what would be steps to identify the root cause of it? I'm quite lost at the moment...
btw. I've been trying to compile against [core_esp32_3_2_0] today; that way I permanently messed up my PIO environment somehow due to some strange error in Arduino libraries ... Wstring.cpp. I hope I will get this working again .
best regards and thanks for any help!!
Karl