Koromix / tytools

Collection of tools to manage Teensy boards
https://koromix.dev/tytools
The Unlicense
215 stars 27 forks source link

IHEX parse error #21

Closed luni64 closed 6 years ago

luni64 commented 6 years ago

Windows 10, TyTCommander Version 0.8.8

I get the following parse error for the attached hex file.

parse error

Uploading the corresponding .elf file (attached) works however. Teensy.exe uploads the hex without problems. I also recompiled, added changes to the code, rebooted computer... The error seems to be quite stable. Other hex files work as usual.

usbhost.zip

luni64 commented 6 years ago

I just had a look at the hex file. Line 2755 is at the end of the file. Looks like you are stumbling over the 05 Record (Start Linear Address). I have no idea why objcopy adds this record in this case and not in all others.

Here a corresponding SO question: https://stackoverflow.com/questions/26295776/what-are-the-intel-hex-records-type-03-or-05-doing-in-ihex-program-for-arm

Koromix commented 6 years ago

Thanks for reporting this bug,

I've pushed a commit to fix this issue. Development build TyTools-0.8.8-7-g0c123c2 on BinTray should work correctly.

luni64 commented 6 years ago

Works, Thanks for fixing