Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => Topic started by: medtech1 on November 29, 2019, 12:50:50 am

Title: New BP, v3b, firmware update fail :(
Post by: medtech1 on November 29, 2019, 12:50:50 am
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  :(

Title: Re: New BP, v3b, firmware update fail :(
Post by: medtech1 on November 29, 2019, 05:01:01 am
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#
Title: Re: New BP, v3b, firmware update fail :(
Post by: medtech1 on November 29, 2019, 05:57:12 am
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. 

Title: Re: New BP, v3b, firmware update fail :(
Post by: medtech1 on December 02, 2019, 05:46:48 am
Dec 1, 2019 - Update... ok... restored/unbricked the bus pirate with MPLAB and a pickit3. Easier than I had figured. 
Title: Re: New BP, v3b, firmware update fail :(
Post by: ian on December 03, 2019, 10:07:58 am
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.