QUERY · ISSUE
OSError 16 from time.sleep_ms()
bugport-stm32
Port, board and/or hardware
stm32
MicroPython version
MicroPython v1.25.0
Reproduction
This is on a custom board. Code during the boot process calls time.sleep_ms(1100)
- Hard reset the board
- boot/main code starts running fine
- Break out to a repl
- (at this point, I can run time.sleep_ms() without problem)
- soft reset the board
- during the boot process, call to sleep_ms() fails
I cannot replicate the issue on v1.24.0 (i.e. something has changed going to v1.25.0)
Expected behaviour
No response
Observed behaviour
Call to time.sleep_ms() raises OSError 16 in the above conditions
Additional Information
This is running on a custom board with an STM32H743 MCU.
Code of Conduct
Yes, I agree
CANDIDATE · ISSUE
machine.lightsleep makes time.sleep_ms takes more time on every call
bug
Port, board and/or hardware
rp2040
MicroPython version
MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico with RP2040
Reproduction
while True:
# omitted code to turn led on and off
time.sleep_ms(500)
machine.lightsleep(4000)
Expected behaviour
every call to time.sleep_ms(500) should take the same time
Observed behaviour
the led take more and more time to turn on and off after the same sleep_ms()
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree