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

General improvements to the tool #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Y3ll0w
Copy link

@Y3ll0w Y3ll0w commented Jun 9, 2024

  • Added a progress bar to the dump/read function
  • Added support for EFM8BB52F32G
  • Improved the readme.md
  • Included AN945: EFM8 Factory Bootloader User's Guide PDF for VVDD information

Copy link
Owner

@fishpepper fishpepper left a 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
Copy link
Owner

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

Copy link
Owner

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()
Copy link
Owner

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?

Comment on lines +306 to +307
ih.tofile("dumps/" + filename, format='hex')
ih.tofile("dumps/" + filename + ".bin", format='bin')
Copy link
Owner

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 :)

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

Successfully merging this pull request may close these issues.

2 participants