ULPI Error When Periodically Putting Portenta H7 into Lightsleep Mode


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))

while True:

Thank you!

That’s a bug in low-power mode, I’m looking into it and will let you know when it’s fixed.

Hi it’s now fixed, luckily it was an easy issue, and I’m doing a new release very soon.

Hi, Thank you for your prompt reply. Look forward to the new release. :slight_smile: