Uploading failure on Arduino Nano with CH340 chip

Hello,

I have 2 computers: one desktop, one laptop
both:
- new hardware
- Arduino IDE 2.1.1
- use old bootloader in IDE (under tools>processor)
- USB 3 port

My cheap arduino nano works seamlessly with my laptop but not on my desktop.
Also, on my desktop, uploading works with another arduino mega and CH340 chip.

I tried unworking solutions for my desktop:
- get drivers on manufacturer website
- connect on USB2 hub
- get driver from my laptop to my desktop

Until I tried "Enabling the Serial Port Enumerator (SerNum)" under device manager PortSettings>Advanced.

I don't know what I am doing but it works. If somebody can explain me ?
EDIT: Upload works once. Then I have to uncheck/recheck this setting to upload again.

Thanks !

PS: this settings are not available on my laptop.

1 Like

Hi, @
Welcome to the forum.

Have you tried using the 1.8.19 version of the IDE?

It may be a 2.XX.XX problem.

Tom.. :smiley: :+1: :coffee: :australia:

Hi Tom,

I think you didn't read my post :slightly_smiling_face:

I have 2 computers, same config. Problem is on my desktop but not on my laptop.

I found a solution by myself that I didn't see on this forum. So,

  1. Someone else may be interested.
  2. I'm not an expert. I don't know if there is any consequence. I'm trying to understand.

UPDATE

driver on my laptop is 2019
driver on my desktop is 2023

I extract the driver on my laptop with pnputil.exe

My desktop is now working with 2019 driver and works well.

Good to see you got it working.

I did, 2.XX.XX is a new animal on the block and from what I have seen is showing allsorts of teething problems.
Keeping a copy of the 1.8.19 NON Internet version is a good thing to have.

Tom... :smiley: :+1: :coffee: :australia:

Perhaps, but this "can't set com-state" error when uploading is not one of them. This is a problem at the driver level that will occur when using Arduino IDE 1.x or even just running the avrdude command directly without even having Arduino IDE running.

There is some related information here:

thanks for a fantastic post. I upgraded to the new IDE an it just wouldn't upload sketches to any of my Nano's. I tried it all. I spent hours raking through search engines. Your solution was the best, the fastest, the only solution that works! I can now go back to programming my Nano's. Very grateful.

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