Upload problems

Hi
I am new to Arduino and what I thought would be simple to use is turning out extremely frustrating as I can not even get the basic examples to upload.

I have attached a page with screen dumps showing my board details, COM port etc which all seem to be correct but the basics are:

Operating system: Windows 10
Software version: 1.8.13
Board: Arduino UNO
Com Port: COM5

Having read some other similar forum topics and other help information, I have uninstalled and reinstalled the software and driver now several times but has not made any difference and still get the error message below each time I try to upload any of the basic examples.

"Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions."

I have also tried using my other computer (iMac) as I thought it may be an issue with my PC but have experienced exactly the same problems, so am at a complete loss.

Does anyone have any ideas what the problem is and how to fix it?

Thanks in advance
Artytoo

arduino info.pdf (253 KB)

I suspect that there will be more to the error message.

Please enable verbose output during upload and disable verbose output during compilation in file -> preferences. Try to upload.

Post the complete results here (no attachment unless it's too big); there is a button "copy error messages' in one of your screen shots to make it easier for you to copy and paste.

When pasting the error message,
Type
** **[code]** **
first
Paste the error message after that
Type
** **[/code]** **
after that

Note:
It's easier for most of us if you just attach the images themselves instead of creating a PDF that we have to open. If the forum works properly, images will get inserted in the post automatically nowadays.

Hi sterretje

Thanks for your reply. I have changed the preferences as you suggested and below are the results

I also forgot to mention that the yellow LED on the board comes on as soon it is plugged into the computer and is continuously flashing, so not sure if this is also a problem.

Code:
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:

modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman

This example code is in the public domain.

*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Error message:
Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"
Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

D:\Test Programs\JAYCAR-Arduino\Arduino\hardware\tools\avr/bin/avrdude -CD:\Test Programs\JAYCAR-Arduino\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM5 -b115200 -D -Uflash:w:C:\Users\GORDON~1\AppData\Local\Temp\arduino_build_11525/Blink.ino.hex:i

avrdude: Version 6.3-20190619

Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "D:\Test Programs\JAYCAR-Arduino\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM5

Using Programmer : arduino

Overriding Baud Rate : 115200

avrdude: ser_open(): can't open device "\.\COM5": Access is denied.

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Hope this helps.
I did check the device manager and according to that the board is on COM5 and working okay but under "events" I found this message, "Device USB\VID_2341&PID_0043\7583435343035111C0E0 requires further installation." which am presuming may be the problem but am at a loss as to what needs to be done.
Thanks again

avrdude: ser_open(): can't open device "\.\COM5": Access is denied.

No idea how to solve it but the above is your problem.

You can try to temporarily disable your antivirus and see if that solves the problem.
You can also try to start the IDE with administrative privileges (right click, run as administrator) and see if that solves the problem.

Thanks

Yes I saw that in the error coding as well and thought it may be the issue.

Have tried running as administrator but didn't make any difference, so will disable the AV next time I get on my PC and see if it is that.

Thanks again
Artytoo

Tried with the AV disabled but still no luck.

Am still getting the same issue as before. It doesn't matter what sample project I try I get the same error every time.

Disappointed as I was really looking forward to trying some projects.

Will probably try a few more time to get it to work but if still no luck, then I will eventually relegate the starter kit to the round filing cabinet under my desk.

Think that this is a great idea but for me, looks like I will just have to chalk this up to a bad experience.

Missing files can have a few causes.

If you use ONEDRIVE that can cause some off errors about missing files.
In most cases that is fixed by a change in location to an ACTUAL drive rather than the cloud.

Use the forum search for onedrive and you will get a lot of hits and fixes.

Hello Artytoo,

Just so you dont think you are losing your mind, I am having the exact problems you describe.

i have tried all the recommendations I have seen so far to no avail.

  • uninstalled and reinstalled IDE
  • installed all the latest :oWindows 10 updates and driver updates
  • changed cables
  • turned off antivirus
  • even bought a new UNO board
  • I spent an hour with my local comuter repair guy and his opinion is that there is a bug in the Arduino software that conflicts with the latest Windows 10.
  • I almost for got to mention i have screamed and said some bad words

my actions:

  • continue to monitor your post for suggested solutions
  • consider buying used PC with Windows 7

@reelitz

Your computer guy is quite wrong.
More often it is how windows 10 was set up and the various extra security protocols that it entails.

There are a good few results if you use the forum search option so don't place all your bets on this one post

Hello.

Can take a few moments to Learn and Use The Forum

It will help you get the very best out of the forum in the future.

  • Your OS and version can be valuable information, please include it along with extra security you are using. Antivirus etc.

  • Always list the version of the IDE you are using and the board version if applicable.

  • Use quote or add error messages as an attachment NOT a picture.

  • How to insert an image into your post. ( Thanks @sterretje )

  • Add your sketch where applicable but please use CODE TAGS

  • Add a SCHEMATIC were needed even if it is hand drawn

  • Add working links to any specific hardware as needed (NOT links to similar items)

  • Remember that the people trying to help cannot see your problem so give as much information as you can

COMMON ISSUES

  • Ensure you have FULLY inserted the USB cables.

  • Check you have a COMMON GROUND where required. ( Thanks @Perry)

  • Where possible use USB 2.0 ports or a USB 2.0 POWERED HUB to rule out USB 3.0 issues.

  • Try other computers where possible.

  • Try other USB leads where possible.

  • You may not have the correct driver installed. CH340/341 or CP2102 or FT232 VCP Drivers - FTDI

  • There may be a problem with the board check or remove your wiring first.

  • Remove any items connected to pins 0 and 1.

COMPUTER RELATED

  • Close any other serial programs before opening the IDE.

  • Ensure you turn off any additional security / antivirus just to test.

  • There may be a problem with the PC try RESTARTING it.

  • You may be selecting the wrong COM port.

  • Avoid cloud/network based installations where possible OR ensure your Network/Cloud software is RUNNING.

  • Clear your browsers CACHE.

  • Close the IDE before using any other serial programs.

  • Preferably install IDE’s as ADMINISTRATOR or your OS equivalent

ARDUINO SPECIFIC BOARDS

  • CH340/341 based clones do not report useful information to the “get board info” button.

  • NANO (Old Types) some require you to use the OLD BOOTLOADER option.

  • NANO (ALL Types) See the specific sections lower in the forum.

  • NANO (NEW Types) Install your board CORE’s.

  • Unless using EXTERNAL PROGRAMMERS please leave the IDE selection at default “AVRISP mkII”.

  • Boards using a MICRO usb connector need a cable that is both DATA and CHARGE. Many are CHARGE ONLY.

CREATE editor install locations.

  • On macOs ~/Applications/ArduinoCreateAgent-1.1/ArduinoCreateAgent.app/Contents/MacOS/config.ini

  • On Linux ~/ArduinoCreateAgent-1.1/config.ini

  • On Windows C:\Users[your user]\AppData\Roaming\ArduinoCreateAgent-1.1

Performing the above actions may help resolve your problem without further help.

Language problem ?

Try a language closer to your native language:

Thanks to all those who helped and added to this list.

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