Can't load code to an arduino nano clone

I bought a aliexpress arduino nano and I'm trying to upload a code.
I'm getting the following error:
"avrdude: ser_open(): can't open device "\.\COM1": Access is denied.

Failed uploading: uploading error: exit status 1"

I tried different ports on my computer.

I have tried both the Atmega328P and Atmega328P(Old bootloader)

What shall I do in order to make it work

thanks

I thought it was solved but still I'm getting same error.

COM1 is hardly ever the Arduino board. Does it disappear when you disconnect the Nano?

Any yellow triangles in Windows device manager? Most clones use the CH340 TTL-to-USB converter and you need to install the driver for it. Download from the manufacturer's side; CH341SER.zip

How?

It manage to upload the code to the board one time but then failed on all other attempts.

What com port number was the board connected to when it worked ?

port 12.
Tried again but did not worked


IDE >> TOOLS >> PORT >> your port
IDE >> TOOLS >> BOARD >> your board
IDE >> TOOLS >> PROCESSOR >> OLD BOOTLOADER

Did so. Did not worked

What's in Device Manager and what do you choose???
DISP

I switched to my mac computer and I'm able to upload codes.. Not sure what it was in the windows pc I was using.. Thanks all

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