-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
needs-infoThis issue needs more information to be resolvableThis issue needs more information to be resolvableport-stm32
Description
main.py:
while True:
print('hello')
pyb.delay(500) # pyb.udelay(500000) has the same behavior
Running the above snippet on a v1.9.4 PYBLITE V1.0, if USB is unplugged and plugged back in, the USB breaks.
Steps to reproduce:
- plug into USB (device powers up)
- apply external power supply
- connect to REPL, observe 'hello' being printed
- unplug USB
- plug USB back in
- connect to REPL, observe nothing being printed anymore (but connection in PuTTY stays open and filesystem is still accessible)
Oddly, if the pyb.delay is removed, the device works exactly as expected - no bugs.
Perhaps if USB is connected during a pyb.delay it isn't processed properly?
Metadata
Metadata
Assignees
Labels
needs-infoThis issue needs more information to be resolvableThis issue needs more information to be resolvableport-stm32