CCLib icon indicating copy to clipboard operation
CCLib copied to clipboard

Start linear address in hex file

Open Sjord opened this issue 8 years ago • 3 comments

I have a HEX file with a 05 record type in it, start linear address:

:020000040000FA
:10000000021305022003FFFFFFFFFF02200BFFFF8B
...
:0400000500001305DF
:00000001FF

As you can see there is an instruction that tries to set the start address to 0x1305. Also, the first instruction at location 0x0000 is a LJMP to 0x1305. Currently CCLib will raise an exception because it does not support the 05 record type.

I am unsure what this record should do. I guess it should set the program counter to the specified value. Does this make sense? This would only work if using cc_resume.py, and not when resetting the chip.

Sjord avatar Dec 29 '16 14:12 Sjord

I hit the same problem. Is it a valid workaround to remove that line from hex file and reset the chip when done with programming?

wsowa avatar Mar 28 '17 23:03 wsowa

Removing the line from the hex file worked for me

AndrewLinden avatar Sep 26 '17 09:09 AndrewLinden

maybe the line should be skipped in the cchex.py so the exception is not raised?

pbochenski avatar Nov 19 '18 07:11 pbochenski