Bus Pirate v4 and pirate loader (only firmware updates)

From DP

Revision as of 14:18, 19 September 2016 by Mikeb (Talk | contribs)
Jump to: navigation , search

Bpv4-update-screenshot.png

Contents

Stuff you need

  • Bus Pirate v4
  • Something metal (jumper, paper clip)

Download the latest Bus Pirate v4 release package with:

  • Firmware HEX
  • Pirate-loader update application (currently Windows only, source provided for Linux, etc)
  • .inf file

Enter bootloader mode

Bpv4-bootloader.jpg

  1. Connect PGC and PGD pins of ICSP header with something metal (or use a jumper if a header is installed)
  2. Plug in the USB cable
  3. The Bus Pirate connects as a USB-CDC (CDC-ACM) serial device
  4. If it is the first connection Windows may ask for a driver. Give it the .inf file from the firmware download
  5. Under Linux is should appear as /dev/ttyACMx, where x will be a number starting from 0 (check the output of dmesg after you plug in the device)

Upload the firmware

pirate-loader.exe --dev=COM3 --hex=bp4.0-fw-7.0.hex

After you enter bootloader mode, follow these instructions to update the Bus Pirate:

  1. Find the Bus Pirate serial port number. On Windows go to the device manager and look under COM ports
  2. Run the update application as shown above, substitute your serial port and firmware file name. A .bat file is usually included to help automate the upgrade
  3. The new firmware is copied to the Bus Pirate. Some regions are skipped, that is fine!
  4. Reset the Bus Pirate by replugging the USB cable
  5. Congratulations, you should be good to go! Happy pirating.

Skipped regions

Erasing page 169, 2a400...OK
Writing page 169 row 1352, 2a400...OK
Writing page 169 row 1353, 2a480...OK
Writing page 169 row 1354, 2a500...OK
Writing page 169 row 1355, 2a580...OK
Writing page 169 row 1356, 2a600...OK
Writing page 169 row 1357, 2a680...OK
Writing page 169 row 1358, 2a700...OK
Writing page 169 row 1359, 2a780...OK
Erasing page 170, 2a800...OK
Writing page 170 row 1360, 2a800...(SKIPPED by bootloader)...OK
Writing page 170 row 1361, 2a880...(SKIPPED by bootloader)...OK
Writing page 170 row 1362, 2a900...(SKIPPED by bootloader)...OK

The new firmware is copied to the Bus Pirate. Some regions are skipped, that is fine!