Python script to reset a CDC device
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Python script to reset a CDC device.

This script is especially handy when using an Arduino Duo (or similar) device. It will reset the board and start the bootloader, allowing you to upload a new program.

This may not work for all Cortex M0+ boards; only those that are Arduino Duo compatible.


You'll need pySerial: sudo python -m pip install pyserial


python <PATH_TO_TTY>

Replace <PATH_TO_TTY> with the location of your CDC device, such as /dev/ttyACM0.