Upload to board w/ CH340 fails due to denied port access when using IDE 2.x

Continuing the discussion from Elusive -- Uno - upload error: Access is Denied:

This whole process is very frustrating for a person who expects things to work straight out of the box. I have only had the issue of ports being denied access since upgrading to version 2.0.3. I now have to constantly re-configure ports, ports will have access available one upload then fail on the next attempt without any change to wiring. This is not worth the trouble for your average user. My solution? I've gone back to version 1.8.15 and have not had the issue appear at all. I'm running windows 10, but say what you want about Windows, hardware or what-ever, buy why would an older version of IDE run perfectly?

Hi @mikemco. I'm sorry you had trouble uploading with Arduino IDE 2.x.

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" or "FTDI FT232RL".

Examples:

Microchip ATmega16U2

WCH CH340

FTDI FT232R


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.

Arduino IDE 2.x is a complete rewrite of Arduino IDE in a different programming language (TypeScript instead of Java) and sharing no code with Arduino IDE 1.x. So each application has its own separate set of defects and quirks.

Arduino IDE 2.x is under active development, so you can expect that a bug you experience now will later be fixed. Arduino IDE 1.x is no longer maintained so you will need to live with any bugs or deficiencies you encounter in that application.

Hello, thank you for replying to my post. The chip on my board has no writing on the surface but it is identical (apart from writing) to WCH CH340. I now understand why 2.0.3 would run differently, thanks for the explanation.

The markings are difficult to see but with good light under the correct angle you can read it; you might have to take a photo and enlarge it.

This is for a clone Nano

Hi, definitely no writing in chip. I've used jewelers specs and LED lamp to get the best view. My boss bought the Uno from AliExpress so it's probably not OEM.

I tested with a board that uses the WCH CH340 USB chip and I am not able to reproduce arduino/arduino-ide/1783 with that board. All the reports are from users with the FTDI FT232R USB chip on their board.

So I'm not convinced you are experiencing that same bug. I would be interested in investigating this problem so if you ever decide to give Arduino IDE 2.x another try and still experience the problem then please do post about it here on the forum.

Meanwhile, you might at least try updating to Arduino IDE 1.8.19 so you can benefit from the development work that happened on Arduino IDE 1.x since the 1.8.15 version you are using. The Arduino IDE 1.8.19 download links are listed here:

https://www.arduino.cc/en/software#legacy-ide-18x

OK

You can make an end on the possible doubts by checking what the VID and the PID are that are reported to your operating system. You mentioned Windows so assuming that that is the OS, in device manager right click your device, select properties, tab details, drop-down Hardware Ids.

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