serial monitor does not open

Hi,
my first posting...

I have two different units: Seeeduino Xiao (I have two of them) and an M5stack Gray (ESP32)
I have two computers

On computer #1 things were going just fine for both units and Xiao #1, until the other day. One night it worked, next morning (no reboot) it did not work. So presumably I know enough of the basics to function at a beginner level.

Now if I attempt to open the serial monitor to the correct port the IDE just freezes before any compiling/uploading even attempted. it eventually times out and the monitor does open and I get the error "Error while setting serial port parameters: 57,600 N 8 1". I see lots of messages about that and I have:

-exit IDE, restart (sometimes kill it thru task manager)
-killed the ports in device manager
-reboot
-reinstall IDE
-the xiao has a way to reset/refresh by shorting two pads. Did that. Done that before when I thought I had other problems, so I am confident no harm caused to Xiao
-try the 2nd (and fresh) xiao. same problem. I notice that it assigns a different port to it. I recall at one point I had both xiao plugged in at same time and it recognized both
-someone reported the serial window location was off screen. That is not my problem. a) I would see an extra item on the task bar regardless of location. I dont b) eventually the window shows up, on screen

then move over to computer #2 and install everything fresh. Again, I can get the M5stack unit to work fine, but the Xiao (both of them) have the same problem as described above.

I do notice it can read "board info" which implies to me communication things are OK. And the two different Xiao give different serial numbers

If I compile, code is fine. So I assume that is not an issue. If I attempt to upload, again, lengthy delay/timeout while it says "upload". Eventually it spews out (and I have no clue what it means)

An error occurred while uploading the sketch
processing.app.SerialException: Error opening serial port 'COM7'.
at processing.app.Serial.(Serial.java:152)
at processing.app.Serial.(Serial.java:82)
at processing.app.SerialMonitor$2.(SerialMonitor.java:132)
at processing.app.SerialMonitor.open(SerialMonitor.java:132)
at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2120)
at processing.app.Editor.access$1300(Editor.java:117)
at processing.app.Editor$UploadHandler.run(Editor.java:2089)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM7; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.(Serial.java:141)
... 8 more
Error opening serial port 'COM7'.

what am I overlooking? thanks for help

I have the same problem, it seems to be very random, sometimes it works on the first go, some times it takes an hour to upload. Could this be a driver issue or bootloader?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.