Issues with CH340 Arduino Nano

Hey all,

Recently picked up an Arduino Nano CH340 and have been having issues with using it. Once I hooked it up to my PC, I uploaded an empty sketch to the board to get the annoying "L" light to spot flashing at me, then let it sit for a bit. After coming back to it, the PC seemingly didn't recognize the board via the COM port which I found was strange; I changed cables and it started to work again, however. After a while, the same issue occurred and I managed to fix it, but to my dismay, the board stopped allowing me to upload code to it, spitting out this error message, whilst still showing/knowing that the Nano was located at COM3 on both the IDE and Device Manager:

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\User\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\User\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\User\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=1A86_7523 -ide-version=10818 -build-path C:\Users\User\AppData\Local\Temp\arduino_build_121856 -warnings=none -build-cache C:\Users\User\AppData\Local\Temp\arduino_cache_117719 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\User\AppData\Local\Temp\untitled544227059.tmp\sketch_may28a\sketch_may28a.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\User\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\User\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\User\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=1A86_7523 -ide-version=10818 -build-path C:\Users\User\AppData\Local\Temp\arduino_build_121856 -warnings=none -build-cache C:\Users\User\AppData\Local\Temp\arduino_cache_117719 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\User\AppData\Local\Temp\untitled544227059.tmp\sketch_may28a\sketch_may28a.ino
Using board 'nano' from platform in folder: C:\Users\User\AppData\Local\arduino15\packages\arduino\hardware\avr\1.8.5
Using core 'arduino' from platform in folder: C:\Users\User\AppData\Local\arduino15\packages\arduino\hardware\avr\1.8.5
Detecting libraries used...
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\sketch\\sketch_may28a.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\sketch\\sketch_may28a.ino.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"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\\User\\AppData\\Local\\Temp\\arduino_build_121856\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\sketch\\sketch_may28a.ino.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\sketch\\sketch_may28a.ino.cpp.o"
Compiling libraries...
Compiling core...
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\wiring_pulse.S" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_pulse.S.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\wiring_digital.c" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_digital.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\hooks.c" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\hooks.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\wiring_pulse.c" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_pulse.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\wiring_analog.c" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_analog.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\WInterrupts.c" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\WInterrupts.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\wiring_shift.c" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_shift.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\wiring.c" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring.c.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\HardwareSerial2.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial2.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\IPAddress.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\IPAddress.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\PluggableUSB.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\PluggableUSB.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\CDC.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\CDC.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\HardwareSerial0.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial0.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\HardwareSerial.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\HardwareSerial3.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial3.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\HardwareSerial1.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial1.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\Print.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\Print.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\Stream.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\Stream.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\Tone.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\Tone.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\USBCore.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\USBCore.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\WMath.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\WMath.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\WString.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\WString.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\abi.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\abi.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\main.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\main.cpp.o"
"C:\\Users\\User\\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=10818 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\eightanaloginputs" "C:\\Users\\User\\AppData\\Local\\arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino\\new.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\new.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_pulse.S.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\WInterrupts.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\hooks.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_analog.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_digital.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_pulse.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\wiring_shift.c.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\CDC.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial0.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial1.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial2.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\HardwareSerial3.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\IPAddress.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\PluggableUSB.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\Print.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\Stream.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\Tone.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\USBCore.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\WMath.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\WString.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\abi.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\main.cpp.o"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\core.a" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\core\\new.cpp.o"
Archiving built core (caching) in: C:\Users\User\AppData\Local\Temp\arduino_cache_117719\core\core_arduino_avr_nano_cpu_atmega328_46118dba23c55ca0c0c8760f30dc16aa.a
Linking everything together...
"C:\\Users\\User\\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\\User\\AppData\\Local\\Temp\\arduino_build_121856/sketch_may28a.ino.elf" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856\\sketch\\sketch_may28a.ino.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856/core\\core.a" "-LC:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856" -lm
"C:\\Users\\User\\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\\User\\AppData\\Local\\Temp\\arduino_build_121856/sketch_may28a.ino.elf" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856/sketch_may28a.ino.eep"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856/sketch_may28a.ino.elf" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856/sketch_may28a.ino.hex"
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_121856/sketch_may28a.ino.elf"
Sketch uses 444 bytes (1%) 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.
An error occurred while uploading the sketch
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x94
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfc
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x94
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x0c
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x84
avrdude: stk500_getsync(): can't communicate with device: resp=0x8c

I suspected a driver issue, so I went out and installed this CH340 driver, but despite this, I still got hit with the same error message spat back out at me. I then tried connecting it to a different USB port (COM4), but this time it failed to even recognize the board, listing it as "Unknown USB Device (Device Descriptor Request Failed)". I tried to move it back but now it's failing to recognize it at this port as well! After a bit of unplugging and replugging, I got it to work again, but it leaves me as confused as before.

I know for a fact, however, that this isn't a cable issue, as I have used both cables and each of them worked periodically, then stopped working as I've explained. On top of this, I've used both cables on my FTDI programmer with no issue, so I'm 99% sure that this isn't a cable issue.

I've tried a good amount of options, with no luck, would anyone here have any other ideas for me to try which would be able to hopefully help me get my Nano to work?

I moved all my projects to another computer as my original, circa 2005 laptop, USB ports have been making all my project components look broken. The slightly newer computer (circa 2010) is working like a <3 champion <3.

I'm currently having this kind of trouble with a new non-genuine Nano. It disappears from Device manager. I pull out the USB cable and re-insert and it generally re-appears.

Annoying.

We never know what you tried so with the risk that you already tried it I would like to ask if you have tried the different options under tools/processor in the IDE.

Surprisingly, I hadn't! I checked where I purchased the board, and they actually did mention needing to use the old bootloader option for the ATmega328P; unfortunately, however, upon attempting to upload a sketch the IDE stalls for about 2 minutes, then it spits out the same error as beforehand:

An error occurred while uploading the sketch
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe1
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe1

Any other ideas besides that one?

if you go into the upload settings if using that board make sure you select
tools>board>"arduino nano"
tools >processor > atmega328p(old bootloader)

then try uploading and if you have a data transfer able equiped you should be good

Is CH340 driver installed properly?

Detailed how I've already done this in my above reply with no luck.

I've uninstalled and reinstalled the driver, so I should be good.

Disconnected the RX and TX pins and it's still refusing to work. I checked the board info and it showed up as "Unknown Board" so I don't know whether this could be connected to my issues. I'm honestly confused about what else I can do at this point other than try using a different PC. Wish me luck

To identify the board, the IDE relies on the VID/PID. Original Nanos and clones use a generic chip FT232 or CH340, so can't be identified and "unknown board" is the result.

Ah, thank you for the clarification

Have you tried with any other USB cable? If you tried that too, sounds like it's a bad board.

look carefully at the USB connector on the Nano. I had one with a bad solder joint, appeared and disappeared when it felt like it(when I breathed, when I moved the cable, etc. etc.). resoldered that, and no further problems.
C

Yep, both the one it came with and the one I've been using with my FT232 adapter. I've just shot the seller a message to see whether I can return it, or if they can help me

Looking at it, there are no visible issues with the solder job, is there anything I should look out for? Also, even if I did find something, I bought the Nano pre-soldered as I currently lack a soldering iron, so I wouldn't be able to fix it

if its just a nano i would cut my losses to be honest with you,i wish i would have realized this a long time ago but it hurts a little but when you think about it in the long run it helps tremendously.a 5-6 dollar (usd) board is taking up at least 5(?) hours of your time and its just to get a sketch up and running not even any program debugging yet its all hardware at this point if you multiply how much time you've put into this by your hourly rate it take up alot of time and money you dont see when in turn you could buy a new one if i were you and i spent like at least 5 hours on the board included all the research and forum searching (and sleepless nights) it would have cost my over 100.00(usd) for just 5 hours of trouble shooting now if you do the same math in your life ask yourself what is worse wasted time and money or cutting the loss and buying another one?

That equation is different for everyone, but in general is true. Even if you're cash strapped, if you have any opportunity for odd jobs in your area you can make that back in 10-20 minutes. But there's always that niggling "but what if I missed something trivial" in the back of your mind, and the hope that just one more hint on the internet will solve it.
C

Thanks to both of you. Unfortunately, I live in the UK, and due to my lack of soldering iron, was forced to purchase a pre-soldered Nano. This means I was forced to pay something like £12 ($15) as well as wait almost a week for the board to arrive, so I was just trying to make sure I'd checked every single possible option before cutting my losses. I'll shoot the seller a message and ask them to possibly refund me the money but if they don't, it's not too big a deal

Exactly! The voice that makes you better and drives you to success or insanity. I understand that side of the coin very well

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.