(Dee-eff-wheee because its better with friends)
This script polls for newly attached RP2040/RP2350 devices, kicks them into DFU mode if necessary, and flashes your specified firmware file.
For batch programming needs, run the script once and keep plugging in new boards to flash :)
It was made to be cross-platform (worked well on linux/macos, YMMV on windows 😅)
This is vibe-slop with light manual fixes FWIW!
pip3 install -r requirements.txt(pyserial, psutil)
❯ python3 DFwe.py -h
usage: DFwe.py [-h] [--verify] [firmware]
AutoFlash - Automated RP2040/RP2350 firmware flasher
positional arguments:
firmware Firmware file to flash (default: firmware.uf2)
options:
-h, --help show this help message and exit
--verify Enable write verification (slower)
- Serial Monitor: Watches for RP2040/RP2350 devices on USB serial ports
- Auto-trigger: Opens serial at 1200 baud to trigger DFU bootloader mode
- Drive Detection: Monitors for UF2 bootloader drives (RPI-RP2 or RP2350)
- Flash: Copies firmware to the 'drive'
s/o DisCo and BT for making me do this