Go Down

Topic: An error occurred while uploading the sketch (Read 530 times) previous topic - next topic


I am running Windows 10 with Arduino 1.8.10 and I am using a Arduino Uno. I couple months ago I was able to program and upload to my board perfectly fine. Two days ago, I started to use it again but it wouldn't upload. At the time I was using Arduino 1.8.8. I thought it was because of the version of Arduino so I updated it 1.8.10 and it still didn't work. Around half the time, it keeps uploading for a while and then says it has an error uploading. Here are the messages displayed with verbose output enabled:

Sketch uses 444 bytes (1%) 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.
C:\Users\hongj\OneDrive\Desktop\Arduino\hardware\tools\avr/bin/avrdude -CC:\Users\hongj\OneDrive\Desktop\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\hongj\AppData\Local\Temp\arduino_build_930645/sketch_oct13b.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 "C:\Users\hongj\OneDrive\Desktop\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200


Your best bet is NOT to use "onedrive" for Arduino.
It can cause some issues using cloud based installs.

Better to re-install properly to a fixed local drive.

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.

Go Up