Error Programming Arduino Uno under Windows 2004

Hello All,

I am experiencing some strange error...

I have two Arduino Unos. One works with my Windows PC. The other not.
I have Arduino Version 1.8.13 installed. My Machine is Version 2004, Build 19041.630.

The one that is working I can write the "Blink" Scratch on it without any trouble. The other gives me not a really useful error message.

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

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\maxim\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\maxim\AppData\Local\Temp\arduino_build_859931 -warnings=none -build-cache C:\Users\maxim\AppData\Local\Temp\arduino_cache_455818 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\maxim\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\maxim\AppData\Local\Temp\arduino_build_859931 -warnings=none -build-cache C:\Users\maxim\AppData\Local\Temp\arduino_cache_455818 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino

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

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

Detecting libraries used...

"C:\\Program Files (x86)\\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 (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931\\sketch\\Blink.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Generating function prototypes...

"C:\\Program Files (x86)\\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 (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931\\sketch\\Blink.ino.cpp" -o "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

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

Sketch wird kompiliert...

"C:\\Program Files (x86)\\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 (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931\\sketch\\Blink.ino.cpp" -o "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931\\sketch\\Blink.ino.cpp.o"

Compiling libraries...

Compiling core...

Using precompiled core: C:\Users\maxim\AppData\Local\Temp\arduino_cache_455818\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a

Linking everything together...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931/Blink.ino.elf" "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931\\sketch\\Blink.ino.cpp.o" "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931/..\\arduino_cache_455818\\core\\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931" -lm

"C:\\Program Files (x86)\\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\\maxim\\AppData\\Local\\Temp\\arduino_build_859931/Blink.ino.elf" "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931/Blink.ino.eep"

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931/Blink.ino.elf" "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931/Blink.ino.hex"

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\maxim\\AppData\\Local\\Temp\\arduino_build_859931/Blink.ino.elf"

Der Sketch verwendet 924 Bytes (2%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.

Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 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 -PCOM6 -b115200 -D -Uflash:w:C:\Users\maxim\AppData\Local\Temp\arduino_build_859931/Blink.ino.hex:i 

Beim Hochladen des Sketches ist ein Fehler aufgetreten



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 (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM6

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

Luckily I have a second Windows Machine, with Arduino 1.8.10 installed. There it is working without any issues. The Windows version of this Machine is 1909, Build 18.363.1198.

What I have done:
I flashed again the bootloader with the working Arduino as a programmer. I used this webpage for guidance:

I checked that the COM-Port is correct. There is nothing wired to the Arduino UNO. Since the Arduino UNO is working on the second PC, the Hardware can be excluded. It has to be an ArduinoError or a WindowsError.

Does every one of you experiencing the same error or have some more guidance?

Thanks and Greets Maximilian

Well, I cant get updates to work on either of my Win10 machines , so I can't comment on the 2004 version of Win10("Your device is missing important security and quality fixes." - oh, I'd better run updates! "There were some problems installing updates" 0x800f081f, and none of the fixes work; been trying since like september?) For like 15 years, I ran with update disabled... now they've finally convinced me - but now windows update never works)....

That's strange though - Do you.... ever... get an actual error, or does it just hang like that forever? Is it hanging like that, never getting any output from avrdude, always acting like the upload is in progress... or does it quickly drop out of that (possibly reporting failure - but no further diagnostic output)? My "instinct" (which hasn't helped me solve my tech problems as noted above, so don't put to much stock in it) would to first wonder if the avrdude process is instantly dying, and second, if it's doing so because something else is killing it...

Hello again,

I managed to solve it. After burning again the bootloader, it turned out in the end that it was a Windows Device Manager issue. I deleted all of the COM Devices and searched again for new devices. After that I installed the proper driver for the Arduino Uno. Then upload a sketch and have fun :slight_smile:

This is for those of you who maybe having a similar issue.

Greets Maximilian

Hi DrAzzy,

Sorry I didn't saw your post! You can mark is as solved.

Yes, very strange behavior... I tried now with my second surface laptop after a friend convinced me to give it a try. To see if either Windows is causing the issue or the Arduino IDE. Well, it turned out, the Arduino worked fine on the Surface without the Update to Version 2004 of Windows. So I guessed first a windows issue... Like in my answer above, it was more simple stupid. But I learned very much about the handling and debugging of the Arduino :smiley: at least it is solved and I have learned something!

Greets and stay healthy!

Maximilian