Skip to content

[BUG] Use of PySquared safe_sleep Disables USB Connections #4

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
Mikefly123 opened this issue May 9, 2025 · 0 comments
Open

[BUG] Use of PySquared safe_sleep Disables USB Connections #4

Mikefly123 opened this issue May 9, 2025 · 0 comments
Labels
bug Something isn't working Understood

Comments

@Mikefly123
Copy link
Member

Mikefly123 commented May 9, 2025

Summary

This is a bit of a strange one, because we are using an implementation of the CircuitPython alarm module for the RP2350 that is not on the main branch of CircuitPython, the behavior of some of the functions is not consistent with existing alarm module implementations.

It appears that if you don't form a USB Serial Connection with the RP2350 before the first call of safe_sleep in main.py the USB peripheral is suspended and not restored when the board comes out of safe_sleep. All other code seems to run as expected, but it may appear to an end user that the board has unexpectedly stopped functioning.

Work Around

The work around for this is to just make sure a serial connection is formed within about 10-15s of power up. If this window is missed a power cycle will start the window again.

Steps to reproduce

Environment

@Mikefly123 Mikefly123 added bug Something isn't working Understood labels May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Understood
Projects
None yet
Development

No branches or pull requests

1 participant