-
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
tools/edbg: Use openocd to reset instead of edbg. #11125
Conversation
A few commits ago edbg changed its behavior and now it resets the board twice. This makes some tests fail, as the start on the first reset, but shortly after the board is reset again. See: ataradov/edbg#77 This comments out RESET and RESET_FLAGS in the edbg tool setting. Reset will now be done via OpenOCD, which is available and used anyways because it is needed for `make debug`.
This sucks. Does it affect the in-tree edbg version? If not, let's wait whether they fix it. As is this PR will probably break the CI samr21-xpro workers, as they don't have openocd installer. |
Yes, but you may or may not have that version: because of the way "pkg.mk" works it will not update the repo after it is downloaded, even if PKG_VERSION changes. I have two git worktrees in my machine, and one had an old EDBG version and the other the "correct" one. I'm trying to fix pkg.mk. |
Usually, edbg's author is quick to react so this PR may not be needed since you reported it upstream. |
@dylad Yes, he's fast: fixed it on Friday. Are you going to do the bump PR or shall I do it? |
@jcarrano as you want. I'm a bit busy today and tommorow but I can do it on wednesday |
The lastest version of edbg solves a double-reset issue that was hindering testing (see RIOT-OS#11125 and ataradov/edbg#77) It also adds support for SAMR34 and SAMR35, needed by @dylad for MCU port.
The lastest version of edbg solves a double-reset issue that was hindering testing (see RIOT-OS#11125 and ataradov/edbg#77) It also adds support for SAMR34 and SAMR35, needed by @dylad for MCU port.
The lastest version of edbg solves a double-reset issue that was hindering testing (see RIOT-OS#11125 and ataradov/edbg#77) It also adds support for SAMR34 and SAMR35, needed by @dylad for MCU port.
The lastest version of edbg solves a double-reset issue that was hindering testing (see RIOT-OS#11125 and ataradov/edbg#77) It also adds support for SAMR34 and SAMR35, needed by @dylad for MCU port.
The lastest version of edbg solves a double-reset issue that was hindering testing (see RIOT-OS#11125 and ataradov/edbg#77) It also adds support for SAMR34 and SAMR35, needed by @dylad for MCU port.
The lastest version of edbg solves a double-reset issue that was hindering testing (see RIOT-OS#11125 and ataradov/edbg#77) It also adds support for SAMR34 and SAMR35, needed by @dylad for MCU port.
Contribution description
A few commits ago edbg changed its behaviour and now it resets the board twice. This makes some tests fail, as the start on the first reset, but shortly after the board is reset again.
I already reported upstream (ataradov/edbg#77) but in the meanwhile we need a workaround.
This comments out RESET and RESET_FLAGS in the edbg tool setting. Reset will now be done via OpenOCD, which is available and used anyways because it is needed for
make debug
.Testing procedure
Before trying this out, verify that edbg is on the latest version:
Compile and flash
hello-world
in any atmel board:Open another terminal and reset the board:
Without this change: two resets
With this change: only one reset (there's no point on pasting the output.)
Issues/PRs references
Issue in edbg: ataradov/edbg#77