An error occurred while uploading the sketch.

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

Archiving built core (caching) in: C:\Users\Ivan\AppData\Local\Temp\arduino_cache_304496\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a Sketch uses 960 bytes (2%) 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 (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\Ivan\AppData\Local\Temp\arduino_build_521870/sketch_sep15c.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53 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 : COM3 Using Programmer : arduino Overriding Baud Rate : 115200 An error occurred while uploading the sketch avrdude: ser_open(): can't set com-state for "\.\COM3"

avrdude done. Thank you.

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

@DarkZero987

Is that a comment or a question ?

pert: Please do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload
  • After the upload fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS ( button on the toolbar).

it'll be great if i could get some help too

< Arduino: 1.8.7 (Mac OS X), Board: "Arduino/Genuino Uno"

Sketch uses 4300 bytes (13%) of program storage space. Maximum is 32256 bytes. Global variables use 239 bytes (11%) of dynamic memory, leaving 1809 bytes for local variables. Maximum is 2048 bytes. /Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem1421 -b115200 -D -Uflash:w:/var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.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 "/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf" User configuration file is "/Users/ifrahs/.avrduderc" User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/cu.usbmodem1421 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude: ser_open(): can't open device "/dev/cu.usbmodem1421": No such file or directory

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

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

i'm using a DHT11 humidity sensor, my cable works as i have tried before i just have no idea why its giving me errors

i posted a query earlier with error message from " file>preferences>upload(checked)"

this is with 'compilation (checked)'

Arduino: 1.8.7 (Mac OS X), Board: "Arduino/Genuino Uno"

/Applications/Arduino 2.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino 2.app/Contents/Java/hardware -tools /Applications/Arduino 2.app/Contents/Java/tools-builder -tools /Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino 2.app/Contents/Java/libraries -libraries /Users/ifrahs/Documents/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10807 -build-path /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303 -warnings=none -build-cache /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_cache_725994 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -verbose /Users/ifrahs/Documents/Arduino/sketch_dec15a/sketch_dec15a.ino /Applications/Arduino 2.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino 2.app/Contents/Java/hardware -tools /Applications/Arduino 2.app/Contents/Java/tools-builder -tools /Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino 2.app/Contents/Java/libraries -libraries /Users/ifrahs/Documents/Arduino/libraries -fqbn=arduino:avr:uno -ide-version=10807 -build-path /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303 -warnings=none -build-cache /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_cache_725994 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr -verbose /Users/ifrahs/Documents/Arduino/sketch_dec15a/sketch_dec15a.ino Using board 'uno' from platform in folder: /Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr Using core 'arduino' from platform in folder: /Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr Detecting libraries used... "/Applications/Arduino 2.app/Contents/Java/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=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /dev/null "/Applications/Arduino 2.app/Contents/Java/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=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" -I/Users/ifrahs/Documents/Arduino/libraries/DHTLib /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /dev/null Using cached library dependencies for file: /Users/ifrahs/Documents/Arduino/libraries/DHTLib/dht.cpp Generating function prototypes... "/Applications/Arduino 2.app/Contents/Java/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=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" -I/Users/ifrahs/Documents/Arduino/libraries/DHTLib /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/preproc/ctags_target_for_gcc_minus_e.cpp "/Applications/Arduino 2.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/preproc/ctags_target_for_gcc_minus_e.cpp Compiling sketch... "/Applications/Arduino 2.app/Contents/Java/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=10807 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Applications/Arduino 2.app/Contents/Java/hardware/arduino/avr/variants/standard" -I/Users/ifrahs/Documents/Arduino/libraries/DHTLib /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp -o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp.o Compiling libraries... Compiling library "DHTLib" Using previously compiled file: /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/libraries/DHTLib/dht.cpp.o Compiling core... Using precompiled core: /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_cache_725994/core/core_arduino_avr_uno_a44201f00637cc7de5d2873b25582122.a Linking everything together... "/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch/sketch_dec15a.ino.cpp.o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/libraries/DHTLib/dht.cpp.o /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/../arduino_cache_725994/core/core_arduino_avr_uno_a44201f00637cc7de5d2873b25582122.a -L/var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303 -lm "/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.eep "/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.hex Using library DHTLib in folder: /Users/ifrahs/Documents/Arduino/libraries/DHTLib (legacy) "/Applications/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avr-size" -A /var/folders/4j/p2g4zhc94990rcsc7khsbyrh0000gn/T/arduino_build_479303/sketch_dec15a.ino.elf Sketch uses 4300 bytes (13%) of program storage space. Maximum is 32256 bytes. Global variables use 239 bytes (11%) of dynamic memory, leaving 1809 bytes for local variables. Maximum is 2048 bytes. avrdude: ser_open(): can't open device "/dev/cu.usbmodem1421": No such file or directory Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno"

Sketch uses 1998 bytes (6%) of program storage space. Maximum is 32256 bytes. Global variables use 189 bytes (9%) of dynamic memory, leaving 1859 bytes for local variables. Maximum is 2048 bytes. avrdude: stk500_recv(): programmer is not responding An error occurred while uploading the sketch avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xd8 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xd8

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

SEND HELP i'm heckin lost please help

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

Sketch uses 1806 bytes (5%) of program storage space. Maximum is 32256 bytes.
Global variables use 51 bytes (2%) of dynamic memory, leaving 1997 bytes for local variables. Maximum is 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 -PCOM4 -b115200 -D -Uflash:w:C:\Users\Isaac\AppData\Local\Temp\arduino_build_127520/Slots_test.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         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                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.



avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

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

ThePyroManiac: SEND HELP i'm heckin lost please help

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

Sketch uses 1806 bytes (5%) of program storage space. Maximum is 32256 bytes. Global variables use 51 bytes (2%) of dynamic memory, leaving 1997 bytes for local variables. Maximum is 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 -PCOM4 -b115200 -D -Uflash:w:C:\Users\Isaac\AppData\Local\Temp\arduino_build_127520/Slots_test.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53         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                    : COM4         Using Programmer              : arduino         Overriding Baud Rate          : 115200 avrdude: ser_open(): can't open device "\.\COM4": The system cannot find the file specified.

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

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

Incorrect port selected. Select a port from tools -> port menu; it's got COM4 selected (which presumably you used previously), but it's saying that there is no COM4. Windows will often assign a different port number depending on which USB port a device is plugged into (and occasionally for no apparent reason), so you just need to select the correct port.

Hi,

I had the same problem and i just went to Tools+Port, and then selected the one that showed Arduino Genuino/UNO, in my case (i switched from port 13 to port 20). It worked.

Regrads,

Sketch uses 896 bytes (2%) 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. Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x8f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x8f Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

@kmspavan

Just posting the error message is useful but it would be better if you included any other info such as the board being used and any additional components you may have connected.

Might I suggest you read the posts at the top of the forum section too please.

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 972 bytes (3%) 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. Sketch uses 972 bytes (3%) 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. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x6e avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6e Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

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

plz help I dont know what the problem is

RandomStuff: plz help I dont know what the problem is

Remove any connections to pins 0 and 1. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino, you can find it like this:

  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

I’m getting the same error while uploading the code to the board.
I’m new to this and I’m just trying to follow what instructables has put up.
the error message is :

Sketch uses 21624 bytes (67%) of program storage space. Maximum is 32256 bytes.
Global variables use 910 bytes (44%) of dynamic memory, leaving 1138 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can’t set com-state for “\.\COM4”

SO what does this mean?
What is the second method of uploading the code? How to do it?
How to resolve this?
Thanks in advance.

haygreev: Sketch uses 21624 bytes (67%) of program storage space. Maximum is 32256 bytes. Global variables use 910 bytes (44%) of dynamic memory, leaving 1138 bytes for local variables. Maximum is 2048 bytes. avrdude: ser_open(): can't set com-state for "\.\COM4"

Try restarting your computer. Sometimes the COM port will get stuck in a bad state and the restart fixes that.

Arduino:1.8.9 (Windows 10), Tarjeta:"Arduino/Genuino Uno"

El Sketch usa 2296 bytes (7%) del espacio de almacenamiento de programa. El máximo es 32256 bytes. Las variables Globales usan 212 bytes (10%) de la memoria dinámica, dejando 1836 bytes para las variables locales. El máximo es 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 -PCOM3 -b115200 -D -Uflash:w:C:\Users\JOS~1\AppData\Local\Temp\arduino_build_2557/AUTO_GO.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 (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM3 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xf7 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf7

avrdude done. Thank you.

Problema subiendo a la placa. Visita http://www.arduino.cc/en/Guide/Troubleshooting#upload para sugerencias.

Este informe podría contener más información con "Mostrar salida detallada durante la compilación" opción habilitada en Archivo -> Preferencias.

Ok. Arreglado. Hay que quitar el módulo de Bluetooth antes de subir. Si lo has intentado antes de quitarlo tendrás que salir del programa y volver a hacerlo con él módulo de bluetooth quitado.

Build options changed, rebuilding all Sketch uses 2098 bytes (6%) of program storage space. Maximum is 32256 bytes. Global variables use 50 bytes (2%) of dynamic memory, leaving 1998 bytes for local variables. Maximum is 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 -PCOM3 -b115200 -D -Uflash:w:C:\Users\pc\AppData\Local\Temp\arduino_build_112939/servotrial.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 (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM3 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x84 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

please i need a solution

Remove any connections to pins 0 and 1. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino, you can find it like this:

  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

Hi Guys

I know this thread is pretty old, but I thought I should add what I found since all the above suggestions did not work for me. What ended up working for me was changing the programmer (Tools > Programmer) from AVRISP mkII to ArduinoISP, then the sketch was able to upload without any errors. Then I changed it back to AVRISP mkII and it still worked. Not sure why or how this happened. Might be worth trying if none of the other solutions worked for you.

Thanks for your time and I hope this helps you out. I really do. I know how frustrating this problem is, first hand.

Build options changed, rebuilding all Sketch uses 3316 bytes (10%) of program storage space. Maximum is 32256 bytes. Global variables use 198 bytes (9%) of dynamic memory, leaving 1850 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 -PCOM5 -b115200 -D -Uflash:w:C:\Users\HP\AppData\Local\Temp\arduino_build_925352/task3.ino.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 : COM5 Using Programmer : arduino Overriding Baud Rate : 115200 AVR Part : ATmega328P Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail :

Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : Arduino Description : Arduino Hardware Version: 3 Firmware Version: 4.4 Vtarget : 0.3 V Varef : 0.3 V Oscillator : 28.800 kHz SCK period : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f (probably m328p) avrdude: reading input file "C:\Users\HP\AppData\Local\Temp\arduino_build_925352/task3.ino.ino.hex" avrdude: writing flash (3316 bytes):

Writing | ################################################## | 100% 0.54s

avrdude: 3316 bytes of flash written avrdude: verifying flash memory against C:\Users\HP\AppData\Local\Temp\arduino_build_925352/task3.ino.ino.hex: avrdude: load data flash data from input file C:\Users\HP\AppData\Local\Temp\arduino_build_925352/task3.ino.ino.hex: avrdude: input file C:\Users\HP\AppData\Local\Temp\arduino_build_925352/task3.ino.ino.hex contains 3316 bytes avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.42s

avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0x62 != 0x0c avrdude: verification error; content mismatch

avrdude done. Thank you.

the selected serial port avrdude done. Thank you. does not exist or your board is not connected

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