Mariam Al
Mariam Al

Reputation: 19

"can't open device COM5" on arduino

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.

Upvotes: 0

Views: 21964

Answers (9)

Dhruvik Sheth
Dhruvik Sheth

Reputation: 1

I think there is some problem with my board because I can't upload my code ,then I also had my brothers arduino uno so connected his and tried to upload it uploaded successfully ,so I think this shows that there is some problem with the board and my settings but when I checked my settings they were correct

Upvotes: 0

Gokula Krishnan
Gokula Krishnan

Reputation: 1

first check for correct port is chosen next this happend to me check for power, sometimes when board don't get proper current (if you are using laptop at low power) attach charger to laptop.

Upvotes: 0

the_devulaper
the_devulaper

Reputation: 34

Go to tools and check port and board. If they are correct then I am assuming you have connected RX and TX of Arduino.

As you are using a Bluetooth module so the RX and TX of your Arduino will be connected to the module. Before uploading the disconnect them and upload the code. After uploading and disconnecting the USB connect the RX and TX again. This has solved my problem.

Upvotes: 0

Syed Ali Haider
Syed Ali Haider

Reputation: 1

If you are using the Arduino simulator then disconnect the simulator from Arduino by clicking on the Break icon then upload code to Arduino from Arduino IDE. Now after upload complete you can connect simulator with Arduino and uploaded code will work with simulator.

Upvotes: 0

bogart
bogart

Reputation: 21

User Peki on https://forum.arduino.cc/index.php?topic=302362.0 said to go to "Tools/Port" in the arduino menu. Select your port and you should be good to go. Worked for me at least.

Upvotes: 2

ksam
ksam

Reputation: 1

I had the same issue. Found that I have another SW running which default connects to any COM port that

Upvotes: 0

αғsнιη
αғsнιη

Reputation: 2771

You need to choice the correct board type you have connected and going to upload your program in.

as you are using Arduino UNO board, go to menu Tools -> Board and select "Arduino/Genuino UNO" board type, next select the port from Tools -> Port to the port it's connected to. Now you will successfully upload your program.

Upvotes: 0

RamblinRose
RamblinRose

Reputation: 4963

The UNO only has 1 Tx/Rx pair. You'll have to power off or otherwise disconnect the the Bluetooth shield when programming the board because the Bluetooth shield is in control of Rx.

In other words you can't send data over the USB serial interface since the Bluetooth is in control. It's a pain.

Upvotes: 0

Attila Szász
Attila Szász

Reputation: 747

I saw the same error many times and the solution for me was to reconnect the usb cable to the UNO.

You can also check if you have the correct port selected (COM5).

Upvotes: 1

Related Questions