CCLib
CCLib copied to clipboard
Start linear address in hex file
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.
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?
Removing the line from the hex file worked for me
maybe the line should be skipped in the cchex.py
so the exception is not raised?