Sketch uploading problems

I was able to find the servo.ino file. Problem now is that my pc is not communicating with the board via USB port. I can see the port identified in the Arduino IDE software and I know the port is fine for other devices but I’m getting communication error messages when I try to upload. I’ve tried on two PCs, one with Windows 7 and one with 10.

Here’s the error message.

I don't see it.

pdf file attached.

error.pdf (486 KB)

I've also messaged Sunfounder for support but they've been very slow to respond. i don't know if it's some driver issue that's stopping communication or what.

Please do this:

  • (In the Arduino IDE) File > Preferences
  • Uncheck the checkbox next to "Show verbose output during: compilation"
  • Check the checkbox next to "Show verbose output during: upload
  • Click "OK"
  • Sketch > Upload
  • After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the upload output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

Ok, I copied it with checkbox at 1. compilation and upload, and 2. just upload checked.
Here is checked for compilation and upload:

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"

C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\recac\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0000_0000 -ide-version=10813 -build-path C:\Users\recac\AppData\Local\Temp\arduino_build_301106 -warnings=none -build-cache C:\Users\recac\AppData\Local\Temp\arduino_cache_396678 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\recac\AppData\Local\Temp\untitled1282886504.tmp\sketch_sep18a\sketch_sep18a.ino

C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\recac\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0000_0000 -ide-version=10813 -build-path C:\Users\recac\AppData\Local\Temp\arduino_build_301106 -warnings=none -build-cache C:\Users\recac\AppData\Local\Temp\arduino_cache_396678 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\recac\AppData\Local\Temp\untitled1282886504.tmp\sketch_sep18a\sketch_sep18a.ino

Using board 'uno' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106\\sketch\\sketch_sep18a.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Generating function prototypes...

"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106\\sketch\\sketch_sep18a.ino.cpp" -o "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Program Files\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106\\sketch\\sketch_sep18a.ino.cpp" -o "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106\\sketch\\sketch_sep18a.ino.cpp.o"

Compiling libraries...

Compiling core...

Using precompiled core: C:\Users\recac\AppData\Local\Temp\arduino_cache_396678\core\core_arduino_avr_uno_5638c217b04eda8279099c4937887265.a

Linking everything together...

"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106/sketch_sep18a.ino.elf" "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106\\sketch\\sketch_sep18a.ino.cpp.o" "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106/..\\arduino_cache_396678\\core\\core_arduino_avr_uno_5638c217b04eda8279099c4937887265.a" "-LC:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106" -lm

"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106/sketch_sep18a.ino.elf" "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106/sketch_sep18a.ino.eep"

"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106/sketch_sep18a.ino.elf" "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106/sketch_sep18a.ino.hex"

"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\recac\\AppData\\Local\\Temp\\arduino_build_301106/sketch_sep18a.ino.elf"

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:\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\recac\AppData\Local\Temp\arduino_build_301106/sketch_sep18a.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:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM3

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

An error occurred while uploading the sketch

And here is checked for during upload only:

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"

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:\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\recac\AppData\Local\Temp\arduino_build_301106/sketch_sep18a.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:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM3

         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.

I've deleted your other cross-post @crcorc.

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

And another cross-post deleted. This is your last warning @crcorc.

Understood. My apologies. I felt like my more recent post contains some other information that could have been helpful to find a solution. i.e., I tried another USB cable that I know is working. Should I be looking into the drivers somehow? When I go to Device Manager, I only see the com port with a working status, so I know that USB port is ok. When I reinstalled IDE today, I saw the screen for driver installation pop up as well.

I tried it with ATmega328P and ATmeag328P (Old Bootloader) selected. No difference.

crcorc:
I felt like my more recent post contains some other information that could have been helpful to find a solution

Yeah, I wanted to merge that post into this thread, but unfortunately there is a bug in the forum software that prevents me from doing so.

You are always welcome to add more information to this thread.


crcorc:
Should I be looking into the drivers somehow?

Unfortunately, I don't know the cause of this issue. Normally, when the upload fails there is a specific error message from the upload tool (avrdude in this case) that helps us understand what went wrong. But what's happening here is avrdude is just failing silently. So there's no clue to the problem.

I see this reported from time to time, but I don't remember seeing a solution. I've been keeping a list of the ocurrences:

You could review all those to see whether a solution was found.


Other than that, I can only give you the "wild guess" answer I often fall back on when I have no idea what the problem could be:

This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to whitelist the appropriate file, folder, or process so it doesn't interfere with compilation.

Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus to whitelist the Arduino software.

Appreciate the help, pert. I’ll keep playing around with it and if Any progress is
made, I’ll post an update.