Skip to content

Use srec_cat (or a similar tool) instead of hexmate to merge bootloader and application images #199

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

Open
bessman opened this issue Apr 4, 2025 · 0 comments

Comments

@bessman
Copy link
Collaborator

bessman commented Apr 4, 2025

We currently use hexmate, a microchip tool, to merge the bootloader and application HEX files. See

- name: Combine hex files
.

Hexmate is proprietary and is only distributed as part of either the xc8 compiler or the mplab-x IDE. It would be preferable to use a free, standalone tool instead.

There are many free tools available for manipulating eeprom images. SRecord is a collection of such tools, including srec_cat which should be suitable for this task. Another option is to use the bincopy python package. Many other alternatives likely exists.

The task is to duplicate the result of merging with hexmate. The output of whichever tool is chosen should be binary identical with hexmate's output. The outputs do not necessarily need to have identical text representations (hex files are plain text).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant