Go Down

Topic: Can't upload the program to Arduino UNO (Read 532 times) previous topic - next topic

Corgi12345

I'm currently doing my homework about line tracking car. However I got a problem when I uploaded the program to it. I'm having 2 UNO and one is finished uploading while the other can't. It has the same program and the message from IDE is "Problem uploading to board". Can someone explain and show me how to fix it?

Corgi12345

Never mind. I found the way to solve it. Thanks for reading this

jpom


Corgi12345

#3
Apr 30, 2019, 03:55 pm Last Edit: May 01, 2019, 02:35 pm by Corgi12345
Nothing is serious. Just my mistake when i forgot to check the port before uploading the program

pert

Thanks for taking the time to share the solution Corgi12345. That may well help someone else who has the same problem and finds this thread while searching for information.

mbromham

When I try to upload I get a Can't Open Device: Access Denied error. If I look under Tools:Port I see multiple instances of the Uno (see attached). I've tried Remove Device from Devices and Printers, uninstall from Device Manager and everything else I can think of. Only thing that seems to work is a reboot which is a major pain as I have other things running (PVR) that I don't want to interrupt. Issue was on COM10, now has switched to COM6.

mbromham

Sorry, previous image doesn't show device. Seems I get a new instance every time I plug/unplug the device. See attached. Win10-64, Bitdefender AV, Arduino 1-8-9.

Corgi12345

How about try to close your IDE and then turn it on again. I haven't met that problem before
 

mbromham

Tried that, tried restarting with board attached, without board attached, run then attach, run detach/re-attach, etc. Just get more instances, see attached, they're breeding like rabbits!

mbromham

New instance every time I unplug/plug. See image, getting to be a joke :-) If I close IDE and restart they're all still there.

ballscrewbob

@mbromham

There can be a few causes for that type of behaviour.

As a test only clear all your temporary files and caches (I use CCLEANER)
Restart your computer and ensure your AV is OFF completely !

Plug the board into a USB 2.0 port and check which port if gives out.
Start the IDE and upload a simple sketch.
Unplug the board from the computer and check the com port went away.
Plug the board back in and see if it changed again.
If it did then you ruled out your AV as a cause.

You should then start to check and see if any other software is causing the issue as some alternate IDE's and similar can also cause such issues.
You can use the same steps as above but ensure you turn off/disable the software you think may be a problem  via task manager or similar.

If it continues you may also need to reset the COM stack.
if you are using windows then this link provides a few methods of doing that..



 
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

pert

I have this problem regularly with my MKR boards, never my Uno and other AVR boards yet. It has something to do with trying to upload with the Serial Monitor open (which should be fine). I've found that I can fix it by exiting all Arduino IDE windows, unplugging the board, then starting the Arduino IDE again. I don't know if the same will fix your issue with the Uno.

pert

When I try to upload I get a Can't Open Device: Access Denied error. If I look under Tools:Port I see multiple instances of the Uno (see attached). I've tried Remove Device from Devices and Printers, uninstall from Device Manager and everything else I can think of. Only thing that seems to work is a reboot which is a major pain as I have other things running (PVR) that I don't want to interrupt. Issue was on COM10, now has switched to COM6.
Here we have a dedicated thread for the duplicate ports issue:
https://forum.arduino.cc/index.php?topic=613070
let's centralize discussion of the issue to that thread. You might want to open the link above and click the "Receive Emails" button in order to get notifications of any progress we make on investigating and fixing this issue.

Go Up