Skip to main content
Topic: BPV4 update file too big (Read 1138 times) previous topic - next topic

BPV4 update file too big

Hi;
  I just updated my BPV3 to 6.3r2151 no problem.
I tried to update my BPv4 to the same.
Downloaded
http://dangerous-prototypes-open-hardwa ... -r2151.hex

File info
Size: 985075 bytes, 21895 lines

Whereas BPv3 file:
http://dangerous-prototypes-open-hardwa ... -r2151.hex
File info
Size: 241951 bytes, 5379 lines

That is a huge size difference.
When I try to update:

[root@localhost FIRMWARE]# ./pirate-loader_lnx --dev=/dev/ttyACM0 --hex=BPv4-firmware-v6.3-r2151.hex
+++++++++++++++++++++++++++++++++++++++++++
  Pirate-Loader for BP with Bootloader v4+ 
  Loader version: 1.0.2  OS: Linux
+++++++++++++++++++++++++++++++++++++++++++

Parsing HEX file [BPv4-firmware-v6.3-r2151.hex]
Current record address is higher than maximum allowed, line 5507
Could not load HEX file, result=-1
[root@localhost FIRMWARE]#

edit:
I recompiled the loader for V4.
ls -l
-rwxr-xr-x 1 mick mick  22904 Jul 21 00:50 pirate-loader_lnx
drwxr-xr-x 2 mick mick  4096 Jul 21 00:50 pirate-loader-v4-source

[root@localhost BPv4-firmware]# ./pirate-loader_lnx --dev=/dev/ttyACM0 --hex=BPv4-firmware-v6.3-r2151.hex
+++++++++++++++++++++++++++++++++++++++++++
  Pirate-Loader for BP with Bootloader v4+ 
  Loader version: 1.0.2  OS: S
+++++++++++++++++++++++++++++++++++++++++++

Parsing HEX file [BPv4-firmware-v6.3-r2151.hex]
Found 87552 words (262656 bytes)
Opening serial device /dev/ttyACM0...OK
Configuring serial port settings...OK
Sending Hello to the Bootloader...OK

Bootloader version: 4,06
Device ID [f1]:PIC24FJ256GB106
Erasing page 0, 0000...OK
Writing page 0 row 0, 0000...OK
Writing page 0 row 1, 0080...OK
Writing page 0 row 2, 0100...OK
Writing page 0 row 3, 0180...ERROR

Error updating firmware :(

Now:
[root@localhost BPv4-firmware]# ./pirate-loader_lnx --dev=/dev/ttyACM0 --hex=BPv4-firmware-v6.3-r2151.hex
+++++++++++++++++++++++++++++++++++++++++++
  Pirate-Loader for BP with Bootloader v4+ 
  Loader version: 1.0.2  OS: S
+++++++++++++++++++++++++++++++++++++++++++

Parsing HEX file [BPv4-firmware-v6.3-r2151.hex]
Found 87552 words (262656 bytes)
Opening serial device /dev/ttyACM0...OK
Configuring serial port settings...OK
Sending Hello to the Bootloader...ERROR
No reply from the bootloader, or invalid reply received: 0
Please make sure that PGND and PGC are connected, replug the devide and try again
[root@localhost BPv4-firmware]#


One dead BPv4.
This happened to me before, but since my account was deleted the fix is gone.
I will break out my Pickit and see.

Mick M

Mick M

 

Re: BPV4 update file too big

Reply #1
Fixed it
pickit2 clone.
 ./pk2cmd /PPIC24FJ256GB106 -E
./pk2cmd /PPIC24FJ256GB106 -MP -FBPv4-bootloader-v1.hex

USB cable:
 ./V4-pirate-loader_lnx --dev=/dev/ttyACM0 --hex=BPv4-firmware-v6.3-r2151.hex

repeat all above 3 times - now it works.

Mick M