-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Upload fails in subsequent windows with Serial Monitor open #726
Comments
Closing as fixed by #982 |
why is this closed? this is still an issue in rc9.2. |
Hi @ProxyPlayerHD. Thanks for your report. The issue is closed because the bug was fixed for me and the majority of the other users who reported being affected by it after the changes made in #982. We are tracking one other report of continued failing uploads at #1306, but it is not certain that it has the same cause and we have not even been able to determine how the developers can reproduce that issue. Please provide more information: |
hmm, i hate it when it does this... aparently the issues seems to have fixed itself out of nowhere. but now a different issue emerged where the Serial Monitor doesn't display anything from my Arduino Mega 2560 but works fine for other board i tested it with (Nucleo 144, and RaspPi Pico). this is probably enough to open a seperate issue, but i'll restart my PC to see if that maybe fixes it |
Still am having this issue, it does not seem to be fixed. Using the newest version: Arduino IDE 2.0.5-nightly-20230305 |
Hi @chrisAS12 which Arduino board are you attempting to upload to? |
It's a custom PCB, but it's compatible with Arduino Uno. Using FTDI adapter for uploading. |
Thanks! That's the exact information I was angling for. We are tracking the bug here: |
Describe the bug
The Arduino IDE uses the serial ports of Arduino boards in two different ways:
The port can not be used for both of these things simultaneously. The IDE handles the condition of Serial Monitor being open when an upload is started automagically like so:
🐛 This works as expected in the first IDE window you open, but it no longer works in subsequent windows.
NOTE: although similar, this is different from #586 because it occurs even when the port is not open in a Serial Monitor/Serial Plotter of another IDE window.
To Reproduce
🙂 Upload succeeds as expected.
This is necessary to avoid Upload fails if port is open in Serial Monitor of another window #586
🐛 Note that there is an unexpected banner in Serial Monitor:
🐛 Upload fails with an error something like "avrdude: ser_open(): can't open device "\.\COM7": Access is denied."
Expected behavior
Upload with Serial Monitor open in the same IDE window to always be handled automagically.
Desktop
Date: 2021-12-22T15:46:56.004Z
CLI Version: 0.20.2 [13783819]
Additional context
It is not necessary to leave the original window open to reproduce the bug. It occurs even if that window is closed.
I bisected the issue to 767b09d (it does not occur at 8839793).
Originally reported at https://forum.arduino.cc/t/upload-failed-when-serial-monitor-is-open/940255
The text was updated successfully, but these errors were encountered: