$ picocom /dev/ttyACM1
Adafruit CircuitPython 7.0.0-651-g5572876d2 on 2021-11-07; Pimoroni Pico LiPo (4MB) with rp2040
>>> import crash # the file containing the code above
import OK
counter OK
FATAL: read zero bytes from port
term_exitfunc: reset failed for dev UNKNOWN: Input/output error
The last two lines are from picocom.
Description
When attempting to use countio and pwmio together, the REPL freezes and doesn't respond to Ctrl+C. Eventually picocom drops the connection, and the USB drive becomes unresponsive.
Changing the order (creating motor first then counter) only postpones the crash until setting the duty cycle on motor.
Additional information
Also tried with 7.0.0, with the same result.
I tried changing the pins but it didn't make a difference.
CircuitPython version
Code/REPL
Behavior
The last two lines are from picocom.
Description
When attempting to use
countio
andpwmio
together, the REPL freezes and doesn't respond to Ctrl+C. Eventually picocom drops the connection, and the USB drive becomes unresponsive.Changing the order (creating
motor
first thencounter
) only postpones the crash until setting the duty cycle onmotor
.Additional information
Also tried with 7.0.0, with the same result.
I tried changing the pins but it didn't make a difference.