Here’s my updated script to connect to the BusPirate.
It has several changes.
If the BusPirate is in boot mode, it will check if it can find the proper *.uf2 file to install. (It detects if this is a BP5 or BP6, and selects the proper file). It looks in the current directory, or if the BPFW environment variable is set, use that instead.
If the file exists, it will ask if you want it installed.
If not, it will remind you that you can’t connect to the BP while it is in boot mode.
I also made it easier to customize the script, selecting the terminal emulator of choice. There’s also tweaks when you can use BP5XL or BP5 rev 8 firmware.
In Summary - you execute the command and either connect to the BP, or install the software to the BP. Or it reminds you to plug in the BP - We’ve all been there.
BusPirate.txt (2.9 KB)