← index #9280Issue #7234
Off-topic · high · value 1.870
QUERY · ISSUE

utime.sleep_us() overflow

openby socketpairopened 2022-09-11updated 2022-09-12
docs
>>> from utime import sleep_us
>>> sleep_us(24*3600*1000_000)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: overflow converting long int to machine word

It's not documented about any limits on the argument. Either fix in documentation or fix. Fixing is better.

CANDIDATE · ISSUE

mimxrt: all utime.sleepxxx methods fail

closedby robert-hhopened 2021-05-09updated 2021-05-18
port-mimxrt

Calling utime.sleep(), utime.sleep_ms() or utime.sleep_us() freezes the board.

MicroPython v1.15-88-g7b923d6c7 on 2021-05-09; Teensy 4.0 with MIMXRT1062DVJ6A

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied