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

Intel hex support #8

Open
spth opened this issue Sep 15, 2020 · 3 comments
Open

Intel hex support #8

spth opened this issue Sep 15, 2020 · 3 comments

Comments

@spth
Copy link
Owner

spth commented Sep 15, 2020

OpenRabbit should support the use of Intel hex (.ihx, .hex) files. It should try to detect if a supplied file is Intel hex vs. binary (maybe just checking the filename like other software does would be enough).

Intel hex is a common format. It is also the default output format of the Small Device C Compiler (SDCC), the main alternative to Dynamic C for Rabbit development.

@tomlogic
Copy link
Collaborator

One benefit would be the ability to skip over unused memory ranges. It might be possible to optimize the .bin loader to ignore blocks of all 0xFF, since that's what the flash erases to (I believe that's true for all of the products).

Best to integrate an existing Open Source .ihx parser instead of implementing from scratch.

@spth
Copy link
Owner Author

spth commented Sep 25, 2020

Intel hex parsers are small, and I don't know of a commonly used library.

I was considering just copying the one from stm8flash (https://github.com/vdudouyt/stm8flash) into OpenRabbit.

After all we know that that one handles Intel hex files from SDCC well.

@spth
Copy link
Owner Author

spth commented Apr 16, 2021

For project files, this is now implemented, using the ihex.h and ihex.c from stm8flash.

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

2 participants