I cannot get my project to upload FOR THE LIFE OF ME!
Things I've Tried:
Using the Arduino Nano, ATmega328P (Old Bootloader)
Different USB Cables
Different USB Ports
Restarting Board
Resetting Board
Restarting Arduino IDE
Reinstalling IDE
Restarting Computer
Disabling firewall
Pressing the reset switch at different intervals before upload
My Setup:
The light is blinking, which means the factory test with the sample "Blink" program worked. None of my uploads do.
Can't get more-detailed reports with verbose modes, so the codes below are all I have.
OS: MacOS 10.14.6 (Latest)
Type of Board: Arduino Nano Every With Headers Mounted (Not a Clone or Knockoff)
Arduino IDE Version 1.8.9
Never been able to upload to board. Not once!
Arduino: 1.8.9 (Mac OS X), Board: "Arduino Nano, ATmega328P"
Sketch uses 930 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.
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=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I am not familiar with the Arduino Nano Every. However, it has completely different MCU: ATmega4809, so hard to suppose that Nano setup with 328P will work. BTW, the response 0x00 means that there is not connection to target device at all.
BudVar10 is right about the problem. The Tools > Board menu selection you're trying to use is for the classic Arduino Nano. That will never work for the Nano Every.
Here is how you solve it:
Select Tools > Board > Boards Manager from the Arduino IDE's menus.
Wait for the updates to finish.
Scroll down through the list of boards platforms until you see "Arduino megaAVR Boards". Click on it.
Click the Install button.
Wait for the installation to finish.
Click the Close button.
Select Tools > Board > Arduino megaAVR Boards > Arduino Nano Every from the Arduino IDE's menus.
I just attempted to use the Nano Every for the first time today. First thing I did was write a quick test sketch, next I verified that the Nano Every was a compatible board. It wasn't in the list of boards so I opened up board manager and searched for Nano Every. Found it as part of the Arduino megaAVR boards.
Once that was installed I selected the Nano Every for Board, Registers Emulation: None (ATMEGA4809), and COMxx(Arduino Nano Every).
However, when I go to load the sketch, it just sits there for some time. A good 4/5 minutes and then throws an error.
Using Port : COM28
Using Programmer : jtag2updi
Overriding Baud Rate : 115200
An error occurred while uploading the sketch
I followed the instruction #2 and "megaavr Core" package is now 1.8.5.
IDE recognizes "nano every" when I get the Board Info as
BN: Arduino Nano Every
VID: 0x2341
PID: 0x0058
SN: A7E7A31E514D355936......
And the port shows COM6(Arduino nano every)
But when I tried to upload the sketch(which is based on Blink sketch with just a little delay value modification) and got this error.
Sketch uses 1146 bytes (2%) of program storage space. Maximum is 49152 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
Forcing reset using 1200bps open/close on port COM6
C:\Users\<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega4809 -cjtag2updi -PCOM6 -b115200 -e -D -Uflash:w:C:\Users\<MyUserName>\AppData\Local\Temp\arduino_build_202215/Blink.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m {upload.extra_files}
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\<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
avrdude: can't open config file "C:\Users\<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf": No such file or directory
avrdude: error reading system wide configuration file "C:\Users\<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
avrdude: error reading system wide configuration file "C:\Users\<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
So I make an empty file at \6.3.0-arduino17\etc\avrdude.conf. And now I got this error
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\<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
avrdude: Can't find programmer id "jtag2updi"
Valid programmers are:
An error occurred while uploading the sketch
When I switched from Arduino 1.8.10 to Arduino IDE 1.8.9 it recognized "jtag2updi" and got an error like this after waiting for a few minutes. LED does not blink like uploading something.
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino Nano Every, None (ATMEGA4809)"
Sketch uses 1118 bytes (2%) of program storage space. Maximum is 49152 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
Forcing reset using 1200bps open/close on port COM6
C:\Users\<MyUserName>\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\<MyUserName>\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega4809 -cjtag2updi -PCOM6 -b115200 -e -D -Uflash:w:C:\Users\<MyUserName>\AppData\Local\Temp\arduino_build_176849/Blink.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m {upload.extra_files}
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\<MyUserName>\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM6
Using Programmer : jtag2updi
Overriding Baud Rate : 115200
An error occurred while uploading the sketch
I tried on another machine and this one writes without any problem.
The difference is the avrdude.conf file path.
Does not work: C:\Users<MyUserName>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf
Does work: C:\Users<MyUserName>\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf
There is an actual avedude.conf file with 496kbytes of content. I will copy this file into AppData\Local\Arduino15... and try again on a machine with the problem.(This one is in my office and I'm home today)