Configuring Arduino Nano

FQBN: arduino:avr:nano
Using board 'nano' from platform in folder: C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\Admin\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\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE\sketch\Blink.ino.cpp -o nul
Generating function prototypes...
C:\Users\Admin\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\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE\sketch\Blink.ino.cpp -o C:\Users\Admin\AppData\Local\Temp\845629163\sketch_merged.cpp
C:\Users\Admin\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\Admin\AppData\Local\Temp\845629163\sketch_merged.cpp
Compiling sketch...
"C:\Users\Admin\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\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs" "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE\sketch\Blink.ino.cpp" -o "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE\sketch\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Admin\AppData\Local\Temp\arduino\cores\arduino_avr_nano_cpu_atmega328_6be783227e5bc0d57f51230f0c71f584\core.a
Linking everything together...
"C:\Users\Admin\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\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/Blink.ino.elf" "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE\sketch\Blink.ino.cpp.o" "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/..\..\cores\arduino_avr_nano_cpu_atmega328_6be783227e5bc0d57f51230f0c71f584\core.a" "-LC:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE" -lm
"C:\Users\Admin\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\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/Blink.ino.elf" "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/Blink.ino.eep"
"C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/Blink.ino.elf" "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/Blink.ino.hex"

"C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/Blink.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\Admin\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Admin\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -patmega328p -carduino "-PCOM6" -b115200 -D "-Uflash:w:C:\Users\Admin\AppData\Local\Temp\arduino\sketches\B2CE95513589078BF2C18EC919A1C5DE/Blink.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\Admin\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: ser_open(): can't open device "\.\COM6": The system cannot find the file specified.

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

Please help me resolve the above error as I am totally new to this.

having trouble opening COM6
are you sure you have the correct port?
if you run the windows device manager does the port disappear/appear when you unplug/plugin the nano USB cable?

Hello, do yourself a favour and please read How to get the best out of this forum and post accordingly (including code tags and necessary documentation for your ask).


the important line in the long text you posted is this

➜ your Nano cannot be found on COM6

so the question are

  • is it on that port really?
  • is the USB cable working fine?
  • have you tried with the "old boot loader" option?
  • do you have a genuine Nano or a clone requiring a driver?
    •••
1 Like

Thank you for the suggestion will remember from now onwards.

Ya so few days ago the code was running properly but after I tried yesterday I encountered the above error.

The USB cable is fine.
Yes I tried the old boot loader option.
I don't know how to check whether it's a genuine or a clone.

What else can I try to resolve the error.

No the port does not disappear and the display name is: Communications port (COM6)

I'm not a windows guy but shouldn't that be just \COM6 ?

more discussion here..

if nothing happens when you plug/unplug the Nano USB cable sounds like you have a faulty cable or USB port
some USB cables are "charge only" for charging USB devices such as mobile phones, etc - you require a "charge + data cable"
try changing the USB cable
currently my Device manager displays
image

COM4 is a Nano, COM10 a ESP32 and COM11 an Arduino Due

I used the same cable before and I was able to run programs successfully but since 3-4 days I am encountering such an error

do you have any other Arduino modules ? do they work OK?

I find this invaluable (ie very useful) for these issues

Not trying to be the bearer of bad news but you might have damaged your Arduino Nano with wrong connections or overvoltage. Can you give a description of the project that you were working on?

Look at the bottom of your Nano; this is from a clone with CH340

A real one would have a chip with the letters FTDI.

Have you tried just uploading a basic example program , such as blink ?

I don’t believe it’s certain that just because a given Arduino board showed up as COM6 yesterday, it will still show up as COM6 today, especially if you’ve rebooted or possibly been “upgraded.”

Check the device manager to see what com ports are currently in effect.

1 Like

I've had weeks, maybe months, at a stretch where one by one my USB ports go into some kind of early retirement phase and simply do not work.

So have you tried turning your computer off, then back on again?

This always brought back the ports I'd lost.

I've had I've had weeks, maybe months, at a stretch where nothing like that happens.

Now I've probably jynxed it and my current long run of success will end…

a7

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