Need 2 reset to wakeup from deepSleep
Posted: Tue May 07, 2024 10:30 pm
Hello,
i am experimenting with a Esp12F board and have some issues with waking up from deep sleep. It is reproducable, that when i try to wakeup from deep sleep, the first reset will only print a single line on serial console and not run any code from setup() or loop() functions. Only the second reset will then again print the same first line, but then continue the process and also reach my user code.
Here is an example of the output i get, with ### i annotated to give explanation
The issue is reported few times already when googeling around, but i could not find any clear explanation or resolution yet. There seemed to be the idea (back in 2020) that the flash memory might be causing the issue (which is why i print the FlashChipId above), but no conclusion was reached as far as i can tell.
Any hint welcome!
i am experimenting with a Esp12F board and have some issues with waking up from deep sleep. It is reproducable, that when i try to wakeup from deep sleep, the first reset will only print a single line on serial console and not run any code from setup() or loop() functions. Only the second reset will then again print the same first line, but then continue the process and also reach my user code.
Here is an example of the output i get, with ### i annotated to give explanation
Code: Select all
### my code runing as intended
...
Work...
Work...
Going to sleep
### now ESP8266 is in deep sleep
### pulling down RST to GND for the first time
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
### will hang here indefinitely, not sure what is going on
### pulling down RST to GND the second time
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v00042790
~ld
error: pll_cal exceeds 2ms!!!
rf cal sector: 1020
freq trace enable 0
rf[112] : 0��Started
FlashChipId:
1660C4
Work...
Work...
Work...
Work...
Work...
Work...
### on second time the boot is successful and my code is running
Any hint welcome!