Hello all,
I ordered 20 Arduino Nanos with the ATMega168 chip (Link). I want to solder them on my PCB but noticed a strange behavior. When I am first soldering the nano (there is non code uploaded yet) on my PCB and than uploading my code, I receive the following error message:
avrdude: stk500_recv(): programmer is not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
When I first upload the code on the Nano and than soldering it to my PCB it works. I can upload new code afterwards. With my previous Nanos with a ATMega318 I did not have any issues. I can not imagine that my circuit of the PCB is the problem, because I can upload code to the Nanos when I first upload code and than soldering it to the PCB.
Does someone have an idea what is going on here?
Thank you,
Alex
Edit:
Here is the more detailed uploading log:
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 : COM17
Using Programmer : arduino
Overriding Baud Rate : 19200
AVR Part : ATmega168
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 512 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 16384 128 128 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
avrdude: stk500_recv(): programmer is not responding
Hardware Version: 2
Firmware Version: 1.4611299
avrdude: stk500_recv(): programmer is not responding
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : 3.686 MHz
SCK period : 0.1 us
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
And this is the log with the Nano where I first uploaded the code and than soldered to the PCB:
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 : COM17
Using Programmer : arduino
Overriding Baud Rate : 19200
AVR Part : ATmega168
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 512 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 16384 128 128 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9406 (probably m168)
avrdude: reading input file "C:\Users\***\AppData\Local\Temp\arduino_build_165041/SolenoidManagerv4.ino.hex"
avrdude: writing flash (6134 bytes):
Writing | ################################################## | 100% 4.11s
avrdude: 6134 bytes of flash written
avrdude: verifying flash memory against C:\Users\***\AppData\Local\Temp\arduino_build_165041/SolenoidManagerv4.ino.hex:
avrdude: load data flash data from input file C:\Users\***\AppData\Local\Temp\arduino_build_165041/SolenoidManagerv4.ino.hex:
avrdude: input file C:\Users\***\AppData\Local\Temp\arduino_build_165041/SolenoidManagerv4.ino.hex contains 6134 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.70s
avrdude: verifying ...
avrdude: 6134 bytes of flash verified
avrdude done. Thank you.