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

Start linear address in hex file #16

Open
Sjord opened this issue Dec 29, 2016 · 3 comments
Open

Start linear address in hex file #16

Sjord opened this issue Dec 29, 2016 · 3 comments

Comments

@Sjord
Copy link
Contributor

Sjord commented Dec 29, 2016

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.

@wsowa
Copy link

wsowa commented Mar 28, 2017

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?

@AndrewLinden
Copy link

Removing the line from the hex file worked for me

@pbochenski
Copy link

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

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

4 participants