This program discovers any connected (single) Particle board, and forces it into DFU mode.
It uses the USB "serial" port. Weird configuration changes on the Particle board and application code might break the functionality.
cp particle_dfu.py particle_dfu
chmod +x particle_dfu
- Move the
particle_dfu
file to whatever directory you want to run it from. - Add the directory into your shell's $PATH
This was tested under python 3.7 on a Mac, using a USB serial connection to a Particle Argon board.