Error in uploading sketch

Hi.

I am trying to upload a program code which has no errors to my arduino board but it does upload.
Here is the error. I ensured if it is in the right port and it is.

Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 4,502 bytes (13%) of program storage space. Maximum is 32,256 bytes.
Global variables use 302 bytes (14%) of dynamic memory, leaving 1,746 bytes for local variables. Maximum is 2,048 bytes.
An error occurred while uploading the sketch

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

Try doing File > Preferences > Show verbose output during: upload(check) then upload again and if there's more to the output then post it here.

Here's another thing you could try. Someone reported that they can't upload when they start the Arduino IDE by opening a sketch(by double-clicking on it or whatever). If they open the IDE and then load the sketch(File > Open or File > Sketchbook) then they can upload. Please give that a try and see if you can upload.

Let me know how it goes.

Yes, that seems to be the problem. 1.6.10 doesn't successfully upload, after a file is loaded by double-clicking it in Windows Explorer (at least in Win10 64-bit).

Jim

What a strange bug. Very hard to solve with no detailed error output displayed.

Thanks for responding, there are multiple other reports of the same issue on the forum and now that I know the cause I can help everyone out.

I had a "stuck upload" problem, but I "fixed" it by going back to AVR 1.6.11 from AVR 1.6.12. My problem did not respond to the load IDE. then load sketch sequence. It's witchcraft :slight_smile: Sure would be nice if there was a "use this AVR with this IDE" table.

@pert: just to confirm, the below is all I get with verbose upload info enabled:

Thanks, Jim

Arduino: 1.6.10 (Windows 10), Board: "Arduino Nano, ATmega328"

Sketch uses 7,686 bytes (25%) of program storage space. Maximum is 30,720 bytes.
Global variables use 444 bytes (21%) of dynamic memory, leaving 1,604 bytes for local variables. Maximum is 2,048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b57600 -D -Uflash:w:C:\Users\Jim\AppData\Local\Temp\build7b7a1af6593451880e978727ff4429a2.tmp/P03_SSIDalarm.ino.hex:i
An error occurred while uploading the sketch

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

Here i enabled "Show verbose output during - upload"

This is the error message i got:

Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 1,842 bytes (5%) of program storage space. Maximum is 32,256 bytes.
Global variables use 113 bytes (5%) of dynamic memory, leaving 1,935 bytes for local variables. Maximum is 2,048 bytes.
C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\RAEBEL~1\AppData\Local\Temp\build939b42114286ff6d2142eb1235a39421.tmp/Matrix_trial.ino.hex:i 
An error occurred while uploading the sketch

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

And by the way as the report says, i did not enable Show verbose output during compilation

Hope this crash report has more detail.

pert:
Here's another thing you could try. Someone reported that they can't upload when they start the Arduino IDE by opening a sketch(by double-clicking on it or whatever). If they open the IDE and then load the sketch(File > Open or File > Sketchbook) then they can upload. Please give that a try and see if you can upload.

Did you try that. It's solved the issue for multiple other people.

Oh yes it works