Hello,
I am trying to create a simple script to periodically put Portenta H7 into a lightsleep mode. (Please refer to the code below). The script works fine for the 1st iteration. However, when the board enters its 2nd sleep mode (according to while loop), the Fatal Error ULPI Error 0x00 != 0x24
raises and the LED on the board keep blinking. Note that the error raises no matter USB is connected or disconnected. Any advice on how to fix this issue?
import machine, pyb
red = pyb.LED(1)
rtc = pyb.RTC()
rtc.datetime((2020, 12, 29, 3, 14, 0, 0, 0))
rtc.wakeup(5000)
while True:
red.on()
pyb.delay(2000)
red.off()
machine.lightsleep(7000)
Thank you!