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

RP2040 does not release countio PWM slice on VM reboot #5251

Closed
mrdalgaard opened this issue Aug 27, 2021 · 0 comments · Fixed by #5255
Closed

RP2040 does not release countio PWM slice on VM reboot #5251

mrdalgaard opened this issue Aug 27, 2021 · 0 comments · Fixed by #5255
Assignees
Labels
bug rp2 Raspberry Pi RP2 Micros
Milestone

Comments

@mrdalgaard
Copy link

mrdalgaard commented Aug 27, 2021

CircuitPython version

Adafruit CircuitPython 7.0.0-beta.0 on 2021-08-24; Adafruit Feather RP2040 with rp2040

Code/REPL

import board
import countio

counter = countio.Counter(board.A1)

Behavior

Letting code run to completion or breaking out of it, and reloading will output following

soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
  File "code.py", line 4, in <module>
RuntimeError: PWM slice already in use

Description

Only fixed by a hard reset

Additional information

No response

@mrdalgaard mrdalgaard added the bug label Aug 27, 2021
@tannewt tannewt added this to the 7.0.0 milestone Aug 27, 2021
@tannewt tannewt added the rp2 Raspberry Pi RP2 Micros label Aug 27, 2021
@tannewt tannewt self-assigned this Aug 28, 2021
microdev1 pushed a commit that referenced this issue Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rp2 Raspberry Pi RP2 Micros
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants