-
Notifications
You must be signed in to change notification settings - Fork 1.3k
“All timers in use” from AudioOut() after 4 soft reloads on PewPew M4 #5057
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
Comments
|
It’s the disabling of It looks like That’s all the investigation I’m going to do for now. I’m guessing it should be reproducible on any SAMD board with |
The |
I could work around this by enabling pwmio and disabling analogio instead. |
In my testing, just enabling pwmio without disabling anything worked. But I didn’t test all languages. |
This prevents timer leakage on builds without pwmio. Fixes #5057
This prevents timer leakage on builds without pwmio. Fixes adafruit#5057
CircuitPython version
Code/REPL
Behavior
Description
Creating an
audioio.AudioOut
instance, then soft-reloading using^D
works four times, the fifth time it raises aRuntimeError: All timers in use
. Apparently something is not properly being reset in the soft reload.This appears to be specific to the PewPew M4, maybe related to its display initialization. I cannot reproduce it on an ItsyBitsy M4 Express using the same firmware version. (It can however be reproduced by installing the PewPew M4 firmware on the ItsyBitsy, for those who don’t have a PewPew M4.)
Additional information
No response
The text was updated successfully, but these errors were encountered: