Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time.sleep() in code.py prevents USB from working #2912

Closed
dhalbert opened this issue May 16, 2020 · 2 comments · Fixed by #2956
Closed

time.sleep() in code.py prevents USB from working #2912

dhalbert opened this issue May 16, 2020 · 2 comments · Fixed by #2956
Labels

Comments

@dhalbert
Copy link
Collaborator

This may be a dupe of the other USB issues we are seeing with lower_power.

If this is code.py, USB doesn't connect: no CIRCUITPY and no REPL

import time
while True:
    print('hi')   # not necessary, just easier to see it's running
    time.sleep(1)
@dhalbert dhalbert added the usb label May 16, 2020
@dhalbert dhalbert added this to the 5.x.x - Bug Fixes milestone May 16, 2020
@xobs
Copy link
Collaborator

xobs commented May 18, 2020

This is a duplicate of #2855 and is fixed by #2868

@dhalbert
Copy link
Collaborator Author

I neglected to say I was seeing this issue on SAMD21 boards (CPX and Metro M0). I could not reproduce it on SAMD51, though it's probably an accident that it works :). The #2868 fix is specific to nrf, so we'll need fixes for other ports too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants