Skip to main content
Topic: Firmware compiled-How do I upload to BP4? (Read 690 times) previous topic - next topic

Firmware compiled-How do I upload to BP4?

I have just bought a Bus Pirate V4 and would like to install the latest firmware. I managed to compile the firmware from this link

https://github.com/BusPirate/Bus_Pirate

I have built both BusPirate_v4 and bpv4_bootloader projects using MPLABX 5.10 and XC16 V1.35 without any errors.

I have a Microchip ICD3 and an ICD4 programmer available. What is the SIMPLEST way of wiring up an ICD3 and then re flashing the firmware on the BP4. The bootloader folders in the downloaded files are a bit confusing. Is there a bootloader installed on the board by seed. How can I find out which one and how to use it? I would prefer to just load the hex file directly into the board using an ICD3 if possible or just through the usb port. How can I do this?


PS I have read a lot of the post regarding firmware but have ended getting more confused. The i command gives the following information (no bootloader version info-how do I find this out?)
Bus Pirate V4
Firmware V6.0-a3
DEVID:0x1019 REVID:0x0004

Re: Firmware compiled-How do I upload to BP4?

Reply #1
Hi djsb.
I own a Bus Pirate v3, not the v4, so I know very little about it.
However for what little I know through USB should be possible to upgrade both firmware and bootloader by using pirate-loader.exe in command line fashion.
The same thing can be done by using an hardware programmer like the PicKit2 or other like that.
Here it is explained how to do it via USB:

https://tinyurl.com/ychdhbwr

While here it is explained how to do it by using an hardware programmer:

https://tinyurl.com/yb6a52wv

This last link could further clarify the matter:

http://wiki.yobi.be/wiki/Bus_Pirate

You probably already know the links I wrote to you, but sadly that is the little I know, sorry.
Good luck!

Be seeing you.

U.Sb