-
Notifications
You must be signed in to change notification settings - Fork 14
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
General improvements to the tool #7
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the contribution! looks really good. could you have a look at my comments?
|
||
## TODO | ||
- Add a protection to stop users from overwriting the bootloader area | ||
- Information about decompiling the dumped flash memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would drop the line about decompiling, its not the scope of this tool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would drop this, add the dumps directory to the toplevel gitignore instead
(or more preferably: drop prepending dumps/ in the file writer, see comment below)
dynamic_ncols=True, | ||
unit_scale=True, | ||
): | ||
sorted_byte_list = byte_list.most_common() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the sorting good for? speedup if there are many equal values?
ih.tofile("dumps/" + filename, format='hex') | ||
ih.tofile("dumps/" + filename + ".bin", format='bin') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would not prepend dumps here, you can always pass dumps/file.hex as commandline param. e.g. i use it to dump to /tmp/dump.hex
adding bin is nice :)
AN945: EFM8 Factory Bootloader User's Guide
PDF for VVDD information