Skip to main content
Topic: New BP, v3b, firmware update fail :(  (Read 73 times) previous topic - next topic

New BP, v3b, firmware update fail :(

hope someone can save me..   here are the steps I did:

Cloned https://github.com/BusPirate/Bus_Pirate

Went to the bottom for this link:

Firmware Flashing

Refer to building-and-flashing-firmware to see how to build and flash this firmware.
(url: https://github.com/BusPirate/Bus_Pirate/blob/master/Documentation/building-and-flashing-firmware.md)

Installed XC16

Installed MPLAB-X

Followed the "Building" section.. MPLAB-X showed success:

BUILD SUCCESSFUL (total time: 15s)
Loading code from /root/bp-latest/Bus_Pirate/Firmware/busPirate.X/dist/BusPirate_v3/production/busPirate.X.production.hex...
Loading completed


Followed the flashing steps... with (failed):



root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware# ./pirate-loader_lnx --dev=/dev/ttyUSB0 --hex=../../Firmware/busPirate.X/dist/BusPirate_v3/production/busPirate.X.production.hex
+++++++++++++++++++++++++++++++++++++++++++
  Pirate-Loader for BP with Bootloader v4+ 
  Loader version: 1.0.2  OS: Linux
+++++++++++++++++++++++++++++++++++++++++++

Parsing HEX file [../../Firmware/busPirate.X/dist/BusPirate_v3/production/busPirate.X.production.hex]
Found 17866 words (53598 bytes)
Fixing bootloader/userprogram jumps
Opening serial device /dev/ttyUSB0...OK
Configuring serial port settings...OK
Sending Hello to the Bootloader...OK

Device ID: PIC24FJ64GA002 [d4]
Bootloader version: 1,02
Erasing page 0, 0000...OK
Writing page 0 row 0, 0000...ERROR

Error updating firmware :(
root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware#


Now, I can't access BP, although it appears I can trigger the bootloader with PGC and PGD  (mode LED lights up)?

I'm not sure what to do next  :(


Re: New BP, v3b, firmware update fail :(

Reply #1
I noticed sending hello to the bootloader responds (with PGC and PGD jumpered):

root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware# ./pirate-loader_lnx --dev=/dev/ttyUSB0 --hello
+++++++++++++++++++++++++++++++++++++++++++
  Pirate-Loader for BP with Bootloader v4+ 
  Loader version: 1.0.2  OS: Linux
+++++++++++++++++++++++++++++++++++++++++++

Opening serial device /dev/ttyUSB0...OK
Configuring serial port settings...OK
Sending Hello to the Bootloader...OK

Device ID: PIC24FJ64GA002 [d4]
Bootloader version: 1,02
root@michelle-nx9420:~/bp-latest/Bus_Pirate/package/BPv3-firmware#

Re: New BP, v3b, firmware update fail :(

Reply #2
Update: 

Ok.. from what others have responded when others had the same behavior after an update, I need to use a pickit. 

Navigating through the bus pirate info out there is 90 percent of the challenge... its unfortunate :(

It would be nice to know where I went wrong though given I tried to follow the steps. 


 

Re: New BP, v3b, firmware update fail :(

Reply #3
Dec 1, 2019 - Update... ok... restored/unbricked the bus pirate with MPLAB and a pickit3. Easier than I had figured. 

Re: New BP, v3b, firmware update fail :(

Reply #4
Quote
./pirate-loader_lnx --dev=/dev/ttyUSB0 --hello

I think the issue may be that the --hello only says hello to the bootloader and then quits. There is probably another command --program or something that flashes the firmware, that's my guess.
Got a question? Please ask in the forum for the fastest answers.