-
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
edbg: long lines flooded over serial become garbled #14548
Comments
See also discussion in RIOT-OS/Release-Specs#172 (comment) and the following comments. |
It was also noted that this might be related to #10639 |
From the edbg release history:
Looks like updating the edbg firmware to 2.17 could fix the issues. I'll spin up a Windows machine to see if updating the firmware helps. (I'm really sure that my samr21-xpro was produced after 2015, though. But you never know.) If indeed an EDBG update fixes this issue, my suggestion would be to document this and ask uses to only use fixed EDBG firmware. If this doesn't fix the issue I see the following options:
|
Nope, on my samr21-xpro a freshly updated edbg firmware still won't work with long shell command lines. |
Description
The virtual COM port provided by the EDBG debuggers doesn't correctly handled rapid bulk transfers from the host computer. This becomes apparent when using a local setup. A remote setup or a slow host such as a raspberry pi doesn't flood the USB serial fast enough to cause issues. That's also why it doesn't fail on the nightlies.
Bisecting turns up this commit: 68a35f5, but that only uncovered the issue.
Steps to reproduce the issue
Locally run
tests/shell
on a board using EDBG such as the samr21-xpro or the same54-xpro. This fails on the long line test, where it starts to produce garbage chars.Expected results
The test succeeds both locally and on Murdock/IoT-LAB.
Actual results
The test fails after the EDBG serial produces garbage instead of the long line:
local node FAIL
However, it doesn't fail when using the same setup on the IoT-LAB:
On Saclay site of IoT-LAB PASS
The text was updated successfully, but these errors were encountered: