I can't upload my sketch. It always says "uploading error: exit status 1" What should I do? I'm newbie in regarding to arduino

Sketch uses 2110 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 218 bytes (10%) of dynamic memory, leaving 1830 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\.\COM3": Access is denied.

Failed uploading: uploading error: exit status 1

1 Like

Search for "Arduino troubleshooting upload"

This is not an uncommon problem.

Do you have the right board?
Do you have the right port?
Is the USB cable good? Try another.
is the USB cable a data cable?
And so on.

1 Like

Before this, have you successfully uploaded a sketch using the same computer, the same USB port, the same USB cable and the same Arduino board?

Yes. I uploaded a code I watched in yt where how to program an IR sensor, then I uploaded a code about blinking LED but when I decided to reset the code in my arduino, I can't upload anymore. I'm using Arduino uno ch340g.

Rebooting a PC cures 99% of spontaneous problems. For me usually restarting the IDE is enough…

1 Like

Thank you

What do you mean with 'reset the code' ? Reset the Board? The code on the board cannot be 'resetted', only overwritten with another one.

Usually that means some other software is using that port. Do you have running more than one IDE instance?

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