I can upload my code to my Arduino and i can reset it. But when i want to use the serial monitor this error pops up:
Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM7 serial port.
what should i do
I can upload my code to my Arduino and i can reset it. But when i want to use the serial monitor this error pops up:
Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM7 serial port.
what should i do
Select the correct serial port.
Some Arduinos have two serial ports, one for the serial monitor and one for uploading, but you forgot to tell us which Arduino you have.
I'm sorry my bad. I'm using a Arduino UNO and also running the first example code. The one that uses a potentiometer.
The Uno has only one port. Your PC should report what it is.
As i said earlier, the error is :Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM7 serial port.
So what should i do
Use the CORRECT port.
If you unplug the Uno, can you select any port? When you plug the Uno back in, what port appears?
Topic moved to correct category.
@parhamzz , I suggest that you do a search; you're not the only one who is experiencing it with IDE 2.x
Hi @parhamzz. Please tell us which USB to serial adapter chip your Arduino board has. This is a black chip near the USB socket.
The chip will usually be identified by writing on the top. This might say something like "Atmel MEGA16U2" or "WCH CH340G" or "SILABS CP2102".
Examples:
If it isn't clear, alternatively you can provide the link to where you bought the board from and we'll see if we can determine the chip from the product listing.
Thank you.
If i'm not mistaking , It is a
Atmel
MEGA 328P
Can't read the third line
354A3P
1942T6A
You are looking at the wrong chip. You need to look at the one that is next to the USB socket on the board.
For example, on the official Arduino UNO, the chip is here:
while plugged:
I can select the cord COM7
while unplugged:
I can see the COM7, but i can't select it
And when i connect it back, i can select the COM7
There were some previous reports of this "Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM_n_ serial port.
" error occurring specifically when Serial Monitor is opened in Arduino IDE while the port of a board like yours that uses the WCH CH340 USB chip (and apparently only specific batches of those chips). The problem only occurs when using the latest version of the CH340 driver.
The affected users have reported that doing a "roll back" to an older version of the driver was an effective workaround. You can give that a try.
I'll provide instructions:
CH341SER.EXE
file.Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error before. Hopefully this time you will not encounter that "Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM_n_ serial port.
" error.
Thank you so much, I can't do it right now but i will tell you the progress.
Thank you, it fixed.
You are welcome. I'm glad it is working now.
Regards,
Per
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.