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

serial monitor autostart not working with Serial over USB #3

Open
ydirson opened this issue Nov 22, 2011 · 1 comment
Open

serial monitor autostart not working with Serial over USB #3

ydirson opened this issue Nov 22, 2011 · 1 comment

Comments

@ydirson
Copy link

ydirson commented Nov 22, 2011

MCUs with builtin USB controller (as opposed to using FTDI or other off-chip USB controller) have a behaviour that's not compatible with current "serial monitor autostart" feature. The bootloader turns the USB device off before running the program, since the program may just not use it at all.
Even for programs which do use it (eg. AVR8bit core with my patches on branch 32u4, or the arduino 1.0rc2 core on which those patches are based), there is a timeframe with no USB device, where at least Linux removes the corresponding device node. It is during this timeframe that wiring tries to open the monitor, and fails with missing device. Notification from the filesystem seem the way to go - on Linux that would be inotify() syscall or a successor of it.

@dbarragan
Copy link
Contributor

hi, thanks for your report, could you provide a patch for running tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants