testing machine deepsleep
import machine import pycom import os import time i=True while i==True: print('normal mode 5sec') time.sleep(5) i = False print('deepsleep mode 5sec') machine.deepsleep(5000) print('deepsleep done')
I'm trying to run this code. But the last print never appear.
I'm running the latest fw.
After done some test I realize that the GPY only exist from deepsleep if is power with 5V.
If I power the GYP with 3.5V it hangs forever in deepsleep.
This is normal?
I'm connected to the gpy over uart, and the reset never occur.
update: today I will update the firmware, and give another try.
@serafimsaudade That would be the expected result, as when the board wakes up after deep sleep, it acts as a reset and it restarts from the top of boot.py + main.py. During deep sleep RAM etc. are not powered, so the board can't just resume execution at the next instruction.