I have my uno with the arduino as isp sketch loaded. I have the ICSP header connected to the pins on the UNO. Everything is connected properly. I have Nano as the board selected, port is the one for the uno, programmer is arduino as isp. I click burn bootloader and get the following error:
avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.
Failed chip erase: uploading error: exit status 1
Here is the verbose output:
"C:\Users\*****\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\*****\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -patmega328p -cstk500v1 -PCOM7 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m
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\*****\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM7
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATmega328P
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 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 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 : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
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.02s
avrdude: Device signature = 0x1e940b (probably m168p)
avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.
avrdude done. Thank you.
Failed chip erase: uploading error: exit status 1
You have a Nano with an Atmega168p processor, not with an Atmega328p processor.
You can still use that (though half the memory capacity), but you will need to install the "MiniCore" boards package via "Boards Manager". As that package supports also the 168 processor.
[edit] I forgot that the standard Nano support in the Arduino IDE also has the option to select the 168 processor. That's even simpler
I can't upload sketches to the board. I have two of these and this one won't work. I had a couple other boards that would not take a sketch and burning the bootloader fixed them. One UNO I took the chip out and burned it with a breadboard and it works. One pro mini I was able to burn and it works now. I assure you everything is connected as it should be according to the guides I have read.
As for the 168P, I got the same error as if I had chosen 328P.
So I kinda feel dumb right now. I forgot about installing the minicore package above. I selected it and the bootloader burned successfully. However, when trying to upload a sketch the normal way it fails. I again selected minicore and the sketch uploaded. Why can't it all just work as intended? Is it due to the clone boards out there? Or does it have to do with the 168 chip on the nano?
Odd that the Arduino Nano with atmega168 setting cannot even read the signature, but MiniCore works.
If you burn the bootloader using MiniCore, then you may need to use MiniCore when uploading the sketch. The baud rate for uploading may be different than that used by the Arduino board package.
It works as intended A 168P is not an 168 nor a 328P. Note that there have been official Arduino boards that were manufactured with the 168; the Nano is one of them else there would not have been a 168 option in the processor menu.
@hmeijdam already pointed out that Minicore uses a different bootloader so you can not upload using a normal Arduino Nano.
Which is contradicted by avrdude: Device signature = 0x1e940b (probably m168p).
The 168A is a 168; so the signature should be 0x1e9406. What you more than likely have is a 168P that was relabelled by some crappy manufacturer to meet their needs (sales).