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

Loader cannot handle odd addresses #3

Open
oliverab opened this issue Jun 22, 2019 · 0 comments
Open

Loader cannot handle odd addresses #3

oliverab opened this issue Jun 22, 2019 · 0 comments

Comments

@oliverab
Copy link

When programming a HEX file containing odd addresses "packrow" treats the addresses as even leading to misaligned data.
uint8_t index = (address & 0x3e)>>1; uint32_t new_row = (address & 0xfffc0)>>1;
Notice the lowest bit is discarded.
In certain cases XC8 1.45 and 2.05 can produce HEX files with odd addresses, resulting in a file that won't run when programmed by the xpress.
The HEX file is technically correct and MPLAB IPE imports it successfully, and if re-exported from IPE the resulting (even start address) file does run.

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

1 participant