Nano Every, Error Uploading

Hello Forum,

Just got a new Nano Every board from Mouser Electronics
https://www.mouser.com/ProductDetail/782-ABX00028
Using Windows 10 on Dell laptop.

Plug Nano in using mini USB to USB cable.
Green LED lights on Nano steady. Orange LED blinks at one hertz.

At Tools choose Board: Arduino Nano.
At Tools choose Processor: ATMega328P4.
At tools choose Port: COM5

In IDE service tray displays Arduino Nano Atmega328P on COM5

Click Compile. Returns 'Compiling sketch.' then 'Done Compliling'
Click Upload. Returns 'Uploading' then 'An error occurred while uploading the sketch'

Tried different cables. Different computers.
Tried loading the Blink sketch from the Examples folder.

Tried loading Blink sketch and MySketch onto Arduino Uno 3
Expected result: Blink sketch and MySketch loads onto microcontroller Uno 3
Actual result: Blink sketch and MySketch loads onto microcontroller Uno3

Have tried the troubleshooting guide at

Have read

Have read about ten forum posts on 'upoading error'.
The support seems to consist of a lot of questions about the post instead
of 'Try X. If out come is Y then check Z.'

The Nano platform is useless if a sketch cannot be loaded
onto it.

Full error message copied herewith below.

Thanks.

Allen Pitts, Dallas TX

++++++++ Begin error message++++++++++++
>Arduino: 1.8.15 (Windows 10), Board: "Arduino Nano, ATmega328P"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools 
C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr 
-built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\14697\OneDrive\Documents\Arduino\libraries 
-fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=0000_0000 -ide-version=10815 -build-path C:\Users\14697\AppData\Local\Temp\arduino_build_305173 
-warnings=none -build-cache C:\Users\14697\AppData\Local\Temp\arduino_cache_828372 -prefs=build.warn_data_percentage=75 
-prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware 
-tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr 
-built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\14697\OneDrive\Documents\Arduino\libraries 
-fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=0000_0000 -ide-version=10815 -build-path C:\Users\14697\AppData\Local\Temp\arduino_build_305173 
-warnings=none -build-cache C:\Users\14697\AppData\Local\Temp\arduino_cache_828372 -prefs=build.warn_data_percentage=75 
-prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 
-verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino

Using board 'nano' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\\Program Files (x86)\\Arduino\\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=10815 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "
-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "
-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" 
"C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173\\sketch\\Blink.ino.cpp" -o nul

Generating function prototypes...

"C:\\Program Files (x86)\\Arduino\\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=10815 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "
-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "
-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs"
"C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173\\sketch\\Blink.ino.cpp" 
-o "C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173\\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\\14697\\AppData\\Local\\Temp\\arduino_build_305173\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Program Files (x86)\\Arduino\\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=10815 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-
IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "
-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs"
"C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173\\sketch\\Blink.ino.cpp" 
-o "C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173\\sketch\\Blink.ino.cpp.o"

Compiling libraries...

Compiling core...

Using precompiled core: C:\Users\14697\AppData\Local\Temp\arduino_cache_828372\core\
core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a

Linking everything together...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,
--gc-sections -mmcu=atmega328p -o "C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173/Blink.ino.elf"
"C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173\\sketch\\Blink.ino.cpp.o"
"C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173/.
.\\arduino_cache_828372\\core\\core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a"
"-LC:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173" -lm

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom 
--set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma 
.eeprom=0 "C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173/Blink.ino.elf" 
"C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173/Blink.ino.eep"

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R 
.eeprom "C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173/Blink.ino.elf" 
"C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173/Blink.ino.hex"

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\14697\\AppData\\Local\\Temp\\arduino_build_305173/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:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude 
-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM5 -b115200 
-D -Uflash:w:C:\Users\14697\AppData\Local\Temp\arduino_build_305173/Blink.ino.hex:i 

An error occurred while uploading the sketch



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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM5

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

@pert

It is not a ATmega328P.
In the menu, find the Nano Every, then select the COM port.

I think you have to install that board.
In the Arduino IDE, go to the "Board Manager" and install the "Arduino MegaAVR Boards".
Then select in the menu: Tools / Board / Arduino megaAVR boards / Arduino Nano Every

Walk through this page: https://www.arduino.cc/en/Guide/NANOEvery

1 Like
++++++++ Begin error message++++++++++++
>Arduino: 1.8.15 (Windows 10), Board: "Arduino Nano, ATmega328P"

Which board have you got selected ?
The Nano Every does not use an ATmega328P
See Arduino Nano Every — Arduino Official Store

Hello @Koepel , @UKHeliBob and the Arduino forum,

Your replies are appreciated.

"I think you have to install that board."
Went to Tools>Board>Board Manager>
At the section marked Arduino AVR Boards selected Update.
Update ran. Now says 'Installed'
Is there something else needed for the IDE to recognize the Nano?

"The Nano Every does not use an ATmega328P"
At Tools> Processor the only three options available are
ATmega328P
ATmega328P (Old bootloader)
ATmega 168

Tried the Atmega 168. Same result: "Error occurred while uploading the sketch."
If the Nano does not use the Atmega328 which processor does it use? How to choose in the IDE?

It is agreed that the problem seems to be between the IDE and the board because the sketch will upload to the Uno R3 but not upload to the Nano.

How to troubleshoot?

Thanks.

Allen in Dallas

The Arduino Nano board is also called the "classic" Nano board, that board has nothing to do with your board.

Your Nano Every is not a AVR board and does not have a ATmega328P and not a ATmega168. I did not tell to install the AVR boards.

You have to select your board like this:

The Arduino Team decided to make new boards with the same size and pins like the classic Nano boards and they put the "Nano" in the name of the new boards. That is confusing. Please don't call your board a "Nano" board, because it is not a classic Nano board, it is a newer board called the Arduino "Nano Every".

It is not your fault, others are confused as well with the "Nano" names, and the term "MegaAVR" versus "AVR" is also confusing.

Hello @Koepel and the Arduino forum,

The info on the Nano Classic and the Nano Every is most edifying.
(If they are not the same thing why did they give them the same
first name?)

The Nano Every is not available on the IDE menu.

Oh, wait a minute I found in the Board Manager: 'Arduino megaAVR boards'.
Installed Arduino megaAVR boards. Nano Every now recognized.

There are two Registers Emulation available: ATMEGA 328 and None(ATMEGA4809).
Both return:
avrdude: error reading system wide configuration filE "C:\Users\14697|\AppData\LocalArduino15\packages\arduinotools\avrdude\6.3.017/etc/avrdude.conf

Is this an error in trouble shooting or an error in uploading?

Thanks.

Allen in Dallas
469 713 4147

There is a pencil icon at the bottom of your message. You can use it to fix something. I suggest to remove the phone number.

The Registers emulation is not important. You can select "None". It can emulate register instructions from older code, but that has some flaws anyway.

Perhaps you have to uninstall the Arduino IDE and re-install it.
The 'avrdude' is the program that connects to the Arduino board.
Did you install the Arduino IDE on a normal local drive ? Then 'avrdude' should be able to run.

Here is what I did:

  1. Started Windows 11
  2. Downloaded the exe-file from here : https://www.arduino.cc/en/software
  3. Ran the exe-file to install the Arduino IDE 1.8.16 and gave permission for something.
  4. Connected my "Nano Every" board to a USB port.
  5. Started the Arduino IDE.
  6. A message showed that I had to install the Nano Every board.
  7. Clicked to install. Gave permission for something.
  8. Selected the Nano Every from the menu.
  9. Checked the COM port from the menu, COM3 was the only serial port and was already selected.
  10. Choose the Blink example from the menu.
  11. Clicked on Upload and it worked.

They are similar in that they have the same form factor and compatible pinouts. This is a good thing because it means that accessories can work for a whole family of boards. For example, a "carrier" PCB designed for the classic Nano to plug in to can also be used with the Nano Every.

This sort of standardization has already proven to be hugely beneficial in that the form factor established by the original Arduino boards, which was used on the Uno, Leonardo, Uno WiFi Rev2, Mega, Due, Zero, and others has allowed the creation of a huge selection of shields and other accessories that can be mixed and matched with those boards.

So in the case of the Nano Every, the "Nano" is referring to the form factor. It is unfortunate that the classic Nano board and the Nano form factor share the same name, but I don't have any ideas about a better name for the form factor. I don't know know that the form factor of the Uno et al boards has ever been given an official name by Arduino, but I find myself calling it "the Uno form factor" anyway.

It should be called the "Ant" board or the "Enhjørning" board or the "BlackCoffeeOnASundayAfternoon" board or whatever, with a note somewhere that it has the same form factor as the Nano board.