This is an old version, see the latest version on the documentation wiki.
You don’t need a Microchip programmer to develop firmware for the Bus Pirate. You can use Microchip’s free development tools and upload code through the USB bootloader. It’s a mini PIC 24F development board!
First, download and install Microchip’s IDE called MPLAB, and the free demonstration C30 compiler. Next, download a Bus Pirate source code archive, or get the latest development version from SVN with a program like TortoiseSVN.
Open the Bus Pirate project in MPLAB.
Uncomment the correct Bus Pirate hardware version and language in base.h. Compile the project. You may need to modify the compiler location when prompted, but MPLAB is getting better about making these changes automatically.
The compiled firmware must be exported in order to work with the bootloader. In MPLAB, go to File->Export… Make sure that the Program Memory and Configuration Bits boxes are checked. Make sure INHX32 (Intel 32bit HEX) is selected on the File Format tab. Click OK to export the firmware.
After the break, learn how to use TortoiseSVN to check out the Bus Pirate source on Windows.
If you have Tortoise SVN on Windows:
- Right click->SVN checkout on your desktop or Windows file explorer.
- Enter the SVN address (http://the-bus-pirate.googlecode.com/svn) and a directory to use. Choose anonymous check out.
- If you have commit permissions (you’ve been added as a developer on the Bus Pirate project), then use the secure SVN address (https://the-bus-pirate.googlecode.com/svn). Give Tortoise your email address when prompted, your Google SVN password is different than your account password – get your Google SVN password here.
- TortoiseSVN will download the source.
- The developers work in the TRUNK folder. If you’re contributing to the project, make your changes, then right click on the modified file and choose SVN commit. If you added new files, first use SVN add, then use SVN commit.