-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dist/tools: update EDBG version #9502
Conversation
Let's see if murdock can handle it already. |
@cladmi Looks like Murdock is happy :) |
It looks like murdock does not use the compiled
For testing the new version I needed to make The correct solution to correctly rebuild diff --git a/makefiles/tools/targets.inc.mk b/makefiles/tools/targets.inc.mk
index 352f146..74f1de6 100644
--- a/makefiles/tools/targets.inc.mk
+++ b/makefiles/tools/targets.inc.mk
@@ -12,7 +12,7 @@ $(RIOTTOOLS)/bossa/bossac:
@make -C $(RIOTTOOLS)/bossa
@echo "[INFO] bossac binary successfully build!"
-$(RIOTTOOLS)/edbg/edbg:
+$(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile
@echo "[INFO] edbg binary not found - building it from source now"
CC= CFLAGS= make -C $(RIOTTOOLS)/edbg
@echo "[INFO] edbg binary successfully build!" With this change, when flashing from your PR edbg is correctly rebuild and flashes. Propagating to other tools should be done in another PR. |
Thanks @cladmi, I'll update it soon. |
@dylad I would prefer if you could add the explanation of why you need the update in the commit message body. I was thinking about adding the new version number/changelog too but it looks like there is nothing like this in the edbg repository :D |
@cladmi I'll edit the first commit msg too then. |
update to the current lastest version of EDBG to allow user to reflash a bricked board due to sleep mode or wrong clock assignment. this avoid the use of Atmel Studio to erase flash.
@cladmi do you like the changes ? |
It's good for me on
Then go the PR and try flashing again,
After testing you may need to redo I would just like to get it tested on other setups too: |
Confirmed that EDBG is rebuild on my setup after switching from master to this branch. |
you could add a temporary commit that disables EDBG override from local version (I think thats in makefiles/tools/edbg.inc.mk), set the run-tests-on-ci label, then trigger murdock. that should make the samr21-xpro raspis re-build edbg from the updated source and use it to flash the tests. |
I pushed a commit that should do it. |
It seems to fail because there's no libudev on the worker. I'll install that manually... |
Did so, an I'm watching the worker, the flashing works from the in-tree compiled version. |
@kaspar030 Thanks for testing this |
@kYc0o does it work on mac ? |
Maybe @smling you can test: #9502 (comment) |
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.
Tested (OS X and Linux) ACK.
However, it might need the removal of the last commit + squash.
Please remove my two last commits (I don't want to push force to your branch). |
@cladmi Sorry for the delay, this is done. |
20 minutes after my message is not "delay" :p Murdock is failing on the same shell tests as it often does. I removed |
Contribution description
This PR updates EDBG version of RIOT to the lastest.
I had a lot of troubles when playing with low power modes or DPLL/DFLL on SAM0 based board. Most of the time, the board was stuck in a unrecoverable state for EDBG and I had to erase the flash using Atmel Studio (switch back to windows to unbrick the board...)
The lastest version of EDBG get rid of this problem as I can now erase/reflash the board in all situations. No need to use Atmel Studio anymore to unbrick a board !
Issues/PRs references
None