Arduino Nano communications

I've seen many posts about connecting a Nano to a Windows 11 machine via USB and having communication issues. I purchased two (2) Nanos directly from Arduino and data cables. I plug in the board and get the USB notification sound and the board blinks then the green light stays on. I compile my code and send it to the board and get the following error code:

Error: programmer is not responding
Warning: attempt 1 of 10: not in sync: resp=0x00
it attempts 10 times.
Error: unable to open port COM3 for programmer arduino
Failed uploading: uploading error: exit status 1

COM3 is the correct com port

I've attempted each of the processor types.

I imagine its a Window communication problem

I do not have Windows, but I think, that in order to send the code to the board you need a driver for it https://docs.arduino.cc/tutorials/generic/DriverInstallation/ (and maybe rights to access it)

You may need to re-install the FTDI drivers.
https://support.arduino.cc/hc/en-us/articles/4411305694610-Install-or-update-FTDI-drivers

The correct COM port should disappear when you unplug the Nano and reappear when you plug it in again. If that doesn't happen, it's not the correct port.

If the correct driver is not installed, no COM port will appear when you plug in the Nano.

I think I know what you mean by this but please be clear about details like this.

For classic, clone Nano, it's often necessary to select the "atmega328 old bootloader".

You might look in the Windows Device Manager to see where the Nano shows up. In Windows 10, my FTDI adapter shows up as a COM port, and the driver shown for it is an FTDI driver. It should be the same on Windows 11.

This post is under "classic Nano", so when you say that you have purchased a Nano from Arduino, one would reasonably assume in this context that you are referring to the Nano V3 with an ATmega328P MCU onboard. However, official Nano boards from Arduino tend not to have variants of processor types (328PA, 328PB) like one might see with the clone boards. The classic Nano should work with the standard AVR Library by selecting the "Arduino Nano" board option.

On the other hand, there are a number of Arduino Nano products including:

Nano Every
Nano RP2040
Nano ESP32
Nano Connect 33
Nano 33 BLE

All of these are newer boards with processors other than the ATmega328P.
So could we confirm that the Nano boards that you have purchased are definitely the Nano V3 with an ATmega328P processor onboard?

The steady green light indicates that the board is receiving power.

What happened to me just yesterday is, on a nano Atmega328P clone, the USB-C socket became finicky and it is no longer making a good connection and then windows complains that "the last USB device you plugged in malfunctioned.." or something of the sorts. This in turn causes the COM port to malfunction and the "not in sync" messages.

Sometimes windows needs a restart to recover.

But most often I just need to carefully plug in the USB-C

You don't mention which IDE version you're using. The official classic Nano uses the FT232 for communication. And there is an issue (bug) in IDE 2.x related to that if the serial monitor / serial plotter is open.

Whenever I've had USB-related problems under Windows, this free utility has helped me many times:

It lets you view both installed and currently connected USB devices and, more importantly, remove old or faulty USB device entries when needed.

Yes, I tried atmega328 old bootlegger, atmega328 and atmega 168 just because

according to the package, its a
ATMEGA328
16mhz
32kb flash
2kb sram
1kb eprom

I'm using Arduino ide 2.3.10. Is there an archive where I can earlier versions?

For IDE 2.x older versions can be downloaded from Releases · arduino/arduino-ide · GitHub.

For IDE 1.x you can download 1.8.19 from https://www.arduino.cc/en/software/.

You can install v1.8 in portable mode so it won't interfere with v2, and you can just delete it later. Download the "Windows ZIP" version, extract it to a folder, and before running it, create a new subfolder named Portable.

In Device Manager, find Arduino/CH340, right-click-PROPERTIES... look like this?

If it's a genuine Arduino Nano, wouldn't it should show the FTDI driver?