Skip to content

[TEST] Disable USB on sleep #8

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

facchinm
Copy link
Contributor

@facchinm facchinm commented Oct 1, 2018

This commit tries to solve #7 ; must be used in conjuction with arduino/ArduinoCore-samd#361

Expected behaviour:
the USB core is now totally disabled during standby (eg. it cannot receive a WAKEUP from the host PC). At every other kind of wakeup (RTC/gpio) the board re-enumerate itself, as if it was the first attach(). All OS should support this cleanly, however the port name could change or the serial monitor in use could not pick up the new board. All serial monitors should be closed and reopened after a successful resume.

@wlcable
Copy link

wlcable commented Jan 15, 2021

I am testing code on a Adafruit Feather M0 (samd21) and these changes are working for me. Windows finds the "new" device with no problem. So far it has been the same comm port but I have to reconnect, as expected.
Nice work!

@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 linked an issue Jun 8, 2025 that may be closed by this pull request
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serial not working after wakeup
4 participants