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

Support for comment character #25

Open
pylessard opened this issue Dec 1, 2018 · 2 comments
Open

Support for comment character #25

pylessard opened this issue Dec 1, 2018 · 2 comments

Comments

@pylessard
Copy link

pylessard commented Dec 1, 2018

Altough it is not normally supported by the .hex format, many vendors embed comments in their .hex file, which make them impossible to parse by IntelHex unless pre-cleaned programmatically.

It would be nice to be able to specify an optional comment character (;, #, --) that would make the parser ignore any line starting with it.

Or maybe ignore everything not starting with a record delimiter.

@bialix
Copy link
Member

bialix commented Sep 27, 2019

Sorry for not working on your issue. I'm looking for a new maintainer for Python IntelHex project. I hope someone will help.

@tofkamp
Copy link

tofkamp commented Aug 28, 2022

I agree with pylessard, add an option to ignore every lien not starting with ":", or skip any error.
Any logging captured will have some junk characters at the beginning and end.
An other option to solve this, is to merge/add data to the IntelHex object from a string. With python one could easily run through every line of a file, and add it to the object when it starts with ":".

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

3 participants