Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM6" -b57600 -D "-Uflash:w:C:\Users\Harshit\AppData\Local\arduino\sketches\9465CBF030094DD61154395298D9A9EB/1.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\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM6
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x18
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
Hi @hashbrowknee. Please try this experiment and then report the results:
This procedure is not intended to solve the problem. The purpose is to gather more information.
- Connect the Arduino board to your computer with a USB cable.
- Press and release the button on the Arduino board that is marked "RESET".
Now please reply here on this forum topic with the answer to the following question:
- Did you see the "L" LED blink multiple times quickly immediately after you released the "RESET" button?
yes
A program called a "bootloader" is stored in a special area of memory in the Nano board's microcontroller. The classic Nano (as well as its 3rd party derivatives) have been manufactured with two different types of bootloader installed.
You must configure the Tools > Processor menu in Arduino IDE according to which bootloader is installed on your Nano. Having the incorrect configuration selected in this menu is one of the potential causes of uploads failing with the "avrdude: stk500_recv(): programmer is not responding" error.
The multiple blinks on reset tell us that your Nano board has the modern bootloader installed.
I can see from the verbose upload output that you have Arduino IDE incorrectly configured for use with the Nano boards with the "old bootloader".
Select Tools > Processor > ATmega328P from the Arduino IDE menus to configure it for use with the modern bootloader and then try uploading again.
Hopefully this time the upload will finish successfully.
(post deleted by author)
FQBN: arduino:avr:nano
Using board 'nano' from platform in folder: C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\Harshit\AppData\Local\arduino\sketches\9465CBF030094DD61154395298D9A9EB\sketch\1.ino.cpp -o nul
Generating function prototypes...
C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\Harshit\AppData\Local\arduino\sketches\9465CBF030094DD61154395298D9A9EB\sketch\1.ino.cpp -o C:\Users\Harshit\AppData\Local\Temp\54366406\sketch_merged.cpp
C:\Users\Harshit\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\Harshit\AppData\Local\Temp\54366406\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB\\sketch\\1.ino.cpp" -o "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB\\sketch\\1.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Harshit\AppData\Local\arduino\cores\arduino_avr_nano_cpu_atmega328_003974c1d7dfad8f7b91fbc6db6e300f\core.a
Linking everything together...
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB\\sketch\\1.ino.cpp.o" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/..\\..\\cores\\arduino_avr_nano_cpu_atmega328_003974c1d7dfad8f7b91fbc6db6e300f\\core.a" "-LC:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB" -lm
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.eep"
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.hex"
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf"
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM6" -b115200 -D "-Uflash:w:C:\Users\Harshit\AppData\Local\arduino\sketches\9465CBF030094DD61154395298D9A9EB/1.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\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM6
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=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xad
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xad
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
Same code again
This error might be caused by having the wrong port selected from the Tools > Port menu in Arduino IDE.
Please perform this experiment to verify that the port you have selected is your Arduino board:
- Disconnect the USB cable of the Arduino board from your computer.
- Select Tools > Port from the Arduino IDE menus.
- Take note of the ports (if any) listed in the menu.
- Close the Tools menu.
The ports list is only updated when the Tools menu is re-opened, so this step is essential. - Connect the Arduino board to your computer with a USB cable.
- Select Tools > Port from the Arduino IDE menus. - If a new port is listed in the menu, that is the port of your Arduino board.
If you saw a new port appear at the last step, select that port from the Tools > Port menu and try uploading again.
If this doesn't solve the problem, please reply here on this forum topic with the answers to the following questions:
- While following those instructions, did you see a port in the Tools > Port menu at step (6) that was not present at step (3)?
- If you did see a new port, was the upload successful after you selected that port?
I understand that. However, it is possible COM6 is a port that is being produced by some completely unrelated piece of hardware on your computer, not the Nano board. This is why I instructed you to perform an experiment to verify that COM6 is actually the port produced by the Nano board.
Please follow the instructions I provided in post #9.
i did everything possible right now can you explain any other thing so i can burn the bootloader and do all the uploading stuff.
I provided detailed instructions in post #9. Please follow those instructions.
If there is something you don't understand about those instructions, or if you encounter a problem while following them, provide a detailed description of the situation and we'll try to provide further assistance.
Yes i can see my ports each time i plug it into my laptop and arduino nano is detected automatically but i can’t just upload it
FQBN: arduino:avr:nano
Using board 'nano' from platform in folder: C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\Harshit\AppData\Local\arduino\sketches\9465CBF030094DD61154395298D9A9EB\sketch\1.ino.cpp -o nul
Generating function prototypes...
C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\Harshit\AppData\Local\arduino\sketches\9465CBF030094DD61154395298D9A9EB\sketch\1.ino.cpp -o C:\Users\Harshit\AppData\Local\Temp\3977381068\sketch_merged.cpp
C:\Users\Harshit\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\Harshit\AppData\Local\Temp\3977381068\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB\\sketch\\1.ino.cpp" -o "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB\\sketch\\1.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Harshit\AppData\Local\arduino\cores\arduino_avr_nano_cpu_atmega328_003974c1d7dfad8f7b91fbc6db6e300f\core.a
Linking everything together...
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB\\sketch\\1.ino.cpp.o" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/..\\..\\cores\\arduino_avr_nano_cpu_atmega328_003974c1d7dfad8f7b91fbc6db6e300f\\core.a" "-LC:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB" -lm
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.eep"
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf" "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.hex"
"C:\\Users\\Harshit\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Harshit\\AppData\\Local\\arduino\\sketches\\9465CBF030094DD61154395298D9A9EB/1.ino.elf"
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM9" -b115200 -D "-Uflash:w:C:\Users\Harshit\AppData\Local\arduino\sketches\9465CBF030094DD61154395298D9A9EB/1.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\Harshit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM9
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x04
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x10
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x24
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x20
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x20
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x20
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
