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

Implement the --all option to have edbg flash all connected boards with the same firmware. #4

Closed
wants to merge 3 commits into from

Conversation

lrozema
Copy link
Contributor

@lrozema lrozema commented Jul 27, 2015

No description provided.

@lrozema
Copy link
Contributor Author

lrozema commented Jul 27, 2015

My implementation gets slow with many boards and using fork or threads might make things unnecessarily complex. This in your Makefile gives better results:

install: $(BIN)
  for d in `edbg -l |grep -- - | cut -f3 -d " "`; do { echo "Programming $$d..." ; edbg -s $$d -e -p -v -f $< ; echo "Done $$d." ; } & done ; wait $$!

So not sure if we still want to merge this. Of course the -a approach is still nice for smaller firmwares.

@ataradov
Copy link
Owner

This is not what this tool is for. The option is really useful for R21 only and that's just not worth expanding the code complexity.

Also, I'm planning on adding support for other EDBG-based boards (Arduino Zero, Atmel-ICE, JTAGICE3 with new firmware, etc) without changing VID and PID defines, and the option makes no sense for heterogeneous environment like this.

As you've discovered, it is better to use scripting to achieve the same result.

@lrozema lrozema closed this Jul 28, 2015
@UweBonnes UweBonnes mentioned this pull request Nov 27, 2019
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