Skip to content

Loader cannot handle odd addresses #3

@oliverab

Description

@oliverab

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions