I have been nicely programming to a typical Mega2560 and everything was going fine. I went to sleep last night and when I woke up and started to program, again every time I tried to upload I would get an error message, "An error occurred while uploading the sketch". Everything compiles OK but I can not upload. I checked the "Tools" option on the menu to make sure I was indeed set for a Mega2560 and that it was connected to a COM port. Everything looked good. I turned off Windows Firewall. I updated to the latest version of the Arduino IDE. I even tried to compile and upload an example sketch from the Arduino library on a brand new clean Windows 10 tablet computer. I tried several different Mega2560 boards. Nothing helped. I still can not upload anything to any Arduino boards. My only guess is that Microsoft pushed through another update that conflicts with the Arduino IDE software. Has anyone else had this problem recently. Is there a work around?
There is a bug in Arduino IDE 1.6.10(and possibly Arduino AVR Boards 1.6.12 used with any IDE version) that can cause that issue when you start the IDE by opening a sketch(.ino) file(by double clicking on it, etc.). Please try this:
- Close all Arduino IDE windows
- Start the Arduino IDE, not by opening a sketch file.
- Open the sketch file via File > Open, File > Sketchbook, or File > Examples
The last opened sketch will automatically load when you open the Arduino IDE, that one should also work fine.
Thanks!!!! That seems to make a difference.
You can continue to use that workaround or you can install Arduino AVR Boards 1.6.11 in Tools > Board > Boards Manager. The developers are aware of the issue and it will be fixed in the next Arduino IDE and Arduino AVR Boards releases.
While uploading it shows the error: the system cant find the file specified....
Please reply...
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
We need to see your code.
What model Arduino are you using.
What errors do you get?
Thanks.. Tom...
Hi! im trying to upload something but arduino IDE are saying (Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"
Sketch uses 1432 bytes (4%) of program storage space. Maximum is 32256 bytes.
Global variables use 15 bytes (0%) of dynamic memory, leaving 2033 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\Diana\AppData\Local\Temp\arduino_build_619503/RGB_LED.ino.hex:i
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM8
Using Programmer : arduino
Overriding Baud Rate : 115200
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
)so can someone help me? i pickedright com and everything what i need but its not working..... Please help
Thanks!
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
Have you been able to load code successfully before this?
Have you tried loading other code, like "Blink without Delay" inn the examples folder?
Have you got a good connection with the USB cable?
You are loading to a UNO?
Thanks... Tom....