Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checksum does not match, line 6 #135

Open
T365 opened this issue Jul 28, 2019 · 7 comments
Open

Checksum does not match, line 6 #135

T365 opened this issue Jul 28, 2019 · 7 comments

Comments

@T365
Copy link

T365 commented Jul 28, 2019

Loading new firmware to my Bus Pirate 3.6A I got this message:

+++++++++++++++++++++++++++++++++++++++++++
Pirate-Loader for BP with Bootloader v4+
Loader version: 1.0.2 OS: WINDOWS
+++++++++++++++++++++++++++++++++++++++++++

Parsing HEX file [C:\ONTWIKKELING\Arduino\Buspirate\Firmware_29-07-2019\busPirate.X.production.hex]
Checksum does not match, line 6
Could not load HEX file, result=-1

In MPLAB:
BUILD SUCCESSFUL (total time: 13s)
Loading code from O:/Arduino/Buspirate/Bus_Pirate-master/Bus_Pirate-master/Firmware/busPirate.X/dist/BusPirate_v3/production/busPirate.X.production.hex...
Loading completed

So no succes...

@T365
Copy link
Author

T365 commented Aug 2, 2019

I tried to use the hex file in different tool now it's solved...

@mike-pittelko
Copy link

load the file, convert to uppercase then save. Use that and the checksum will be ok.

@edesd
Copy link

edesd commented Oct 8, 2021

load the file, convert to uppercase then save. Use that and the checksum will be ok.

how to convert to uppercase??

@AreYouLoco
Copy link

UPPERCASE

@jtcmedia
Copy link

jtcmedia commented Sep 1, 2022

load the file, convert to uppercase then save. Use that and the checksum will be ok.

Did that, it works, sort of:

...
Writing page 41 row 332, a600...OK
Writing page 41 row 333, a680...OK
Writing page 41 row 334, a700...OK
Writing page 41 row 335, a780...OK
Erasing page 42, a800...ERROR [50]

Error updating firmware :(

But the firmware does update:

Bus Pirate v3.5
Community Firmware v7.1 - goo.gl/gCzQnW [HiZ 1-WIRE UART I2C SPI 2WIRE 3WIRE PIC DIO] Bootloader v4.4

@Top-Dog
Copy link

Top-Dog commented Jan 29, 2023

This comment didn't make a lot of sense, so here's a bit more detail:

load the file, convert to uppercase then save. Use that and the checksum will be ok.

The busPirate.X.production.hex file generated by MPLAB has lowercase hex characters and the loader expects uppercase hex characters to pass the checksum. The easiest way to fix this is to open the generated hex file in Notepad++, select all, right-click and select UPPERCASE, and save over the old file.

...
Writing page 41 row 332, a600...OK
Writing page 41 row 333, a680...OK
Writing page 41 row 334, a700...OK
Writing page 41 row 335, a780...OK
Erasing page 42, a800...ERROR [50]

Error updating firmware :(

This is a known issue (the firmware was successfully loaded) - it happens when the loader tries to program over the protected bootloader space, but since we're not changing the bootloader the loader just bails. See #26 (comment)

The issue can probably be closed.

@Herz3h
Copy link

Herz3h commented Jan 6, 2024

thank you very much @Top-Dog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants