I was trying to upload code on an arduino using another arduino as ISP ,it did not work , both are Arduino UNO R3 , one is SMD another is DIP . I uploaded the ISP code to Arduino SMD and then uploaded the blink code using the option "Upload Using programmer" to the Arduino DIP . The code worked but now when i use the same Arduino DIP directly with pc using usb its not working ,no code is wokring , there no pins connected to anything only the last blink code is working and yes it used to work properly , i have been using it for last 3 months , used many types of sensors , peripherals . Its giving me this code error :
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\DilipKumar\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_UNO -DARDUINO_ARCH_AVR -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\DilipKumar\AppData\Local\arduino\sketches\BD31EB21B19B67A6371A1FF40E9B494E\sketch\eeprom_clear.ino.cpp -o nul
Alternatives for EEPROM.h: [EEPROM@2.0]
ResolveLibrary(EEPROM.h)
-> candidates: [EEPROM@2.0]
C:\Users\DilipKumar\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_UNO -DARDUINO_ARCH_AVR -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src C:\Users\DilipKumar\AppData\Local\arduino\sketches\BD31EB21B19B67A6371A1FF40E9B494E\sketch\eeprom_clear.ino.cpp -o nul
Generating function prototypes...
C:\Users\DilipKumar\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_UNO -DARDUINO_ARCH_AVR -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM\src C:\Users\DilipKumar\AppData\Local\arduino\sketches\BD31EB21B19B67A6371A1FF40E9B494E\sketch\eeprom_clear.ino.cpp -o C:\Users\DilipKumar\AppData\Local\Temp\3986844346\sketch_merged.cpp
C:\Users\DilipKumar\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\DilipKumar\AppData\Local\Temp\3986844346\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\DilipKumar\\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_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\DilipKumar\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\DilipKumar\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\DilipKumar\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\EEPROM\\src" "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E\\sketch\\eeprom_clear.ino.cpp" -o "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E\\sketch\\eeprom_clear.ino.cpp.o"
Compiling libraries...
Compiling library "EEPROM"
Compiling core...
Using precompiled core: C:\Users\DilipKumar\AppData\Local\arduino\cores\arduino_avr_uno_3787d44bd03907b8ac24e18ea823d4de\core.a
Linking everything together...
"C:\\Users\\DilipKumar\\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\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E/eeprom_clear.ino.elf" "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E\\sketch\\eeprom_clear.ino.cpp.o" "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E/..\\..\\cores\\arduino_avr_uno_3787d44bd03907b8ac24e18ea823d4de\\core.a" "-LC:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E" -lm
"C:\\Users\\DilipKumar\\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\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E/eeprom_clear.ino.elf" "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E/eeprom_clear.ino.eep"
"C:\\Users\\DilipKumar\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E/eeprom_clear.ino.elf" "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E/eeprom_clear.ino.hex"
Using library EEPROM at version 2.0 in folder: C:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\EEPROM
"C:\\Users\\DilipKumar\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\DilipKumar\\AppData\\Local\\arduino\\sketches\\BD31EB21B19B67A6371A1FF40E9B494E/eeprom_clear.ino.elf"
Sketch uses 766 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:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\DilipKumar\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM12" -b115200 -D "-Uflash:w:C:\Users\DilipKumar\AppData\Local\arduino\sketches\BD31EB21B19B67A6371A1FF40E9B494E/eeprom_clear.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\DilipKumar\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM12
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=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x77
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x77
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1