-
-
Notifications
You must be signed in to change notification settings - Fork 7k
USB (serial) logging freezes the device unless buffer is emptied. #5797
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
Comments
Serial over USB (CDC) doesn't have any timeout on AVR. We solved the issue on SAMD with arduino/ArduinoCore-samd#154 , we could use the same approach here unless the current one is the expected behaviour (and I'm sure I've seen at least a project using this start/stop "feature" to control the sketch execution). |
So to summarize: The question is which part of the usb core blocks the sending. Because avr works a bit different: I am not sure why DTR is left HIGH if the port is closed. I could not reproduce this bug. If i close the serial monitor the led continues blinking. I'd rather fix your os ;) |
the OS is Linux (not an option to run some spy/malware/bloat), the Arduino IDE is current version. And I can only reproduce it on Leonardo, Pro Micro (same microcontroller) works as expected (does not react to console being open/closed.) |
@AndKe , |
That was 1.6.13 - now tested on 1.8.0 - and cannot reproduce the problem anymore. |
Try this simple code:(on any leonardo)
I have found Leonardo to fail, and same microcontroller, on a pro micro to work:
Observe how LED stops flashing whenever you open/close the terminal
(Ctrl-Shift-M)
To put it simply: if the log target is not ready, (DTR ?) - it all goes
to h*ll
The text was updated successfully, but these errors were encountered: