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

Request: option to write all ELF sections at once #1354

Closed
landfillbaby opened this issue Apr 27, 2023 · 4 comments
Closed

Request: option to write all ELF sections at once #1354

landfillbaby opened this issue Apr 27, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@landfillbaby
Copy link

It would be great if there was an option to write every applicable section of an ELF file to the chip at once.
Maybe the syntax would be -U all:w:file.elf:e or -W file.elf or something.
Kind of the opposite of #1202.

@mcuee mcuee added the enhancement New feature or request label Apr 27, 2023
@mcuee
Copy link
Collaborator

mcuee commented Apr 27, 2023

@landfillbaby

Basically this is what PR #1195 tried to address but the author somewhat gave up on the PR.

Please refer to the comment here and you will know this a lower priority for the avrdude team. If you want, you can work on this feature based on the comments given by PR #1195.

@landfillbaby
Copy link
Author

landfillbaby commented Apr 27, 2023

so in my case:

$ avrdude -pm32u4/ot|grep write|cut -f3|uniq
eeprom
flash
lfuse
hfuse
efuse
lock
arvdude-elf(){
avrdude -v -pm32u4 -cusbasp -U{eeprom,flash,{l,h,e}fuse,lock}:w:"$1":e "${@:2}"
}

@stefanrueger
Copy link
Collaborator

stefanrueger commented Apr 27, 2023

Yes, brilliant use of brace expansion and avrdude -p.../ot | grep write for writeable memories

@mcuee
Copy link
Collaborator

mcuee commented Apr 29, 2023

@landfillbaby

Is it okay to close this issue? Thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants