Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => Topic started by: Aconite33 on March 21, 2020, 03:55:31 am

Title: Bricked Bus Pirate 3.6a
Post by: Aconite33 on March 21, 2020, 03:55:31 am
Well, I've done goofed and bricked my Bus Pirate 3.6a after having it less than 24 hours.

I was trying to upgrade the bootloader to 4.5 and thought I had everything going for me, until I unplugged the bus pirate after flashing the bootloader. (I did terminal in and get a message about upgrading the bootloader, which seemed to go fine.)

After I unplugged the device, I was unable to to terminal back in using minicom. If I put the jumper on PGD/PGC, the only LED i get is a quick USB and constant Power. No Mode LED.

Is there anything I can do to get the bus pirate responding again?

References I used:

Title: Re: Bricked Bus Pirate 3.6a
Post by: tayken on March 21, 2020, 08:28:55 am
After flashing the new bootloader you have to load the new firmware. Take a look at: http://dangerousprototypes.com/docs/V2_to_v4_upgrades
Title: Re: Bricked Bus Pirate 3.6a
Post by: Aconite33 on March 21, 2020, 12:33:29 pm
I'm not sure if I can do that now. When I plug in the bus pirate with PGC and PGD jumper, I don't get any LED's except power.

I can't get anything to connect out of a terminal (minicomp/putty). Not sure if I can get it back into a mode where I can flash the bootloader.
Title: Re: Bricked Bus Pirate 3.6a
Post by: tayken on March 22, 2020, 09:29:45 am
Then your only chance is to flash the bootloader/firmware with a PicKit2 or some other programmer. If you have another Bus Pirate, that would work too.
Title: Re: Bricked Bus Pirate 3.6a
Post by: Aconite33 on March 22, 2020, 04:33:47 pm
I have a Segger J-Link. I've been searching around trying to find the appropriate pin up, using OpenOCD. I can't seem to find the correct pin up between these two devices.

I'm still pretty new at hardware hacking so I may not be looking for the right thing.
Title: Re: Bricked Bus Pirate 3.6a
Post by: tayken on March 22, 2020, 07:30:28 pm
Unfortunately Segger doesn't support PIC24F that's on board the Bus Pirate. Also PIC24F does not support JTAG, it has it's own In Circuit Serial Programming (ICSP) protocol.

If you have an extra FTDI board you can try this one: https://github.com/gphalkes/fpicprog
Title: Re: Bricked Bus Pirate 3.6a
Post by: Aconite33 on March 24, 2020, 08:31:27 pm
Well I don't have that avilable at the time, however I was able to follow this tutorial:

https://www.pedalpc.com/blog/program-pic-raspberry-pi/

I got all the way down to trying to talk to it over GPIO, but getting an error:

Code: [Select]
p24 lvp id
pic24_read_config_memory: information: device not compatible

So, not sure what's going on, but I got somewhat close :(
Title: Re: Bricked Bus Pirate 3.6a
Post by: tayken on March 25, 2020, 03:50:13 am
Oh, nice one! I have to try this out!

In the mean time follow their troubleshooting guide: https://www.pedalpc.com/blog/program-pic-raspberry-pi/#troubleshoot There may be sth wrong with the connections and it may be getting the wrong device ID.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00982072680session_write_close ( )...(null):0
20.01012204272ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01012205048Database_MySQL->query( ).../DatabaseHandler.php:119
40.05592343784Database_MySQL->error( ).../Db-mysql.class.php:273