• Register
1 vote
2.1k views

Problem :

Currently I am using a Arduino API  with the Uno board and it was working fine until few days.
Recently I was working with the interrupt timers and somehow my board went into a mode where I am unable to upload the app.
I have the app which blinks the LED light.
I am trying to upload the very simple loop app but now I am facing below error:

“Avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.”

I have also tried to reboot my PC but still it is not working for me. How to fix above error?

8 5 2
3,230 points

Please log in or register to answer this question.

3 Answers

1 vote

Solution :

I can help you in fixing your error. Just follow below procedure.

First you must go to your device manager. Now you should select the required ports.
Please select the port of the Arduino board for example : com1 , com2 , com3 according to the need
Now you should right click on your com port and then you need to select the properties.
kindly press tab port settings and then click on advanced option.
After that on the com port number you must select the new port number which is currently not in use
Now you need to just confirm your selection and then click on save it. Finally you should click on continue and your problem will be resolved.

8 4 1
5,680 points
0 votes

Solution:

Follw these steps:

1 - Unplug the Arduino

2 - Upload code with no Arduino connected to PC

3 - Reconnect Arduino

4 - Upload code to the Arduino

You should do a few checks in order to jump to a conclusion, your Arduino may be just fine. As far as I know, Code cannot destroy a controller.

  1. Check if any other software is using the same serial port. Two softwares cannot use the same serial port at the same time

  2. Reset your PC and then try again

  3. Remove the Microcontroller form the board, connect it to the PC and try to open the com port. If it opens then connect your Tx pin with the Rx pin, send some data and check if you are getting the data back. This way you will enusre your USB-TTL converter is fine

  4. If this goes successful, then insert your microcontroller in some other board and check if it is getting programmed

I am sure after these checks you will find out the reason of failure of your board/microcontroller..
 

If it is not solved yet try this way

Open Arduino application > Tools > Port > Change to the target Port
If you are unsure which port to choose from: (on Windows) Open Device Manager > Connections (COM & LPT) > Usb Serial Port (COM[x]) where "[x]" is the index you are looking for.
 
 
10 6 4
31,120 points
Hi guys I'm quite new to arduino but i also was facing the same problem. But I managed to solved it. I was using arduino uno but its somehow a little different. It was CH340G. How I solved it was by just downloading the driver.
Just click this link and try downloading this driver.
https://sparks.gogo.co.nz/ch340.html
I hope it helps because I spend 2 weeks day and night trying to find a solution.
0 votes
USB may need CH340 driver.
Some Arduinos use the CH340 controller
Find and install the CH34X_Driver_V3.4_Windows.zip
0 points

Related questions

0 votes
1 answer 16 views
16 views
Problem: This is what I get when I upload the program. I'm connecting the Bluetooth module to my Arduino UNO board. avrdude: ser_open(): can't open device "\.\COM5": The network location cannot be reached. For information about network troubleshooting, see Windows Help. Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
asked May 3 Yeamin 22k points
0 votes
1 answer 21 views
21 views
Problem: This is what I get when I upload the program. I'm connecting the Bluetooth module to my Arduino UNO board. avrdude: ser_open(): can't open device "\.\COM5": The network location cannot be reached. For information about network troubleshooting, see Windows Help. Problem uploading to board. See www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
asked Apr 24 Humaira ahmed 50.7k points
0 votes
1 answer 6 views
6 views
Problem: it shows "port not found" when I click to see the serial output Did I just fry Arduino? How should I fix this? Thanks
asked Apr 12 ummesalma 29.2k points
0 votes
1 answer 16 views
16 views
Problem: Please help me to solve it. avrdude: ser_open(): can't open device "com1": no such file or directory
asked Mar 23 Ifra 37.2k points
0 votes
1 answer 589 views
589 views
Problem : I am currently working with arduino nano and facing following error avrdude: ser_open(): can't open device "\\.\com1": the system cannot find the file specified.
asked Nov 14, 2019 peterlaw 6.9k points
0 votes
1 answer 20 views
20 views
Problem: avrdude: ser_open(): can't open device "\\.\com3": the system cannot find the file specified.
asked Feb 23 Muneeb Saadii 130k points
1 vote
1 answer 320 views
320 views
Problem : I am beginner to Arduino Uno. I have very recently installed the new IDE on my Laptop and suddenly I started facing below error if I tried to compile the program. I am using the Arduino Uno for the very first time. “Avrdude: ser_open(): can't open ... am trying very hard to fix above error from past couple of days but still unable to fix it. Please help me in fixing above error.
asked Mar 27, 2020 morrisBson 3.2k points
0 votes
1 answer 3 views
3 views
Problem: I need help with it > Avrdude: ser_open(): can't set com-state for "\\.\com5"
asked 1 day ago Junia Phoebe 15.3k points
0 votes
1 answer 34 views
34 views
Problem: avrdude: ser_open(): can't open device "\\.\com4": the system cannot find the file specified.
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 3 views
3 views
Problem: What am I suppose to do with this issue? >Avrdude: butterfly_recv(): programmer is not responding.
asked 23 hours ago Danyal Sjoerd 6.8k points