ATMEGA328p AU can't upload bootloader

Hi,

I have been burning bootloaders onto blank atmega328p-pu chips. When I try to repeat the same process on a ATMEGA328p-AU SMD chip I get this error;

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

I have re-wired the parts 100's of times without avail, the same setup works on the PU chip with no issues. I have tried using lillypad and another board configuration which I downloaded from this fourm which is apparently designed for the SMD. My circuit is using the UNO to upload the bootloader and I am using the pin configuration from the arduino to breadboard instructional from the arduino page. I have tried with and without a 16Mhz clock (with 22pf capacitors) but I still get the same error. I am connecting to the SMD pins using a TQfp32 socket https://www.waveshare.com/qfp32-to-dip32.htm.

Any help with this would be greatly appreciated as I am beginning to lose the plot trying to solve this.

full error code:

Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"

avrdude: Version 6.3-20171130
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 : COM8
Using Programmer : arduino
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 : Arduino
Description : Arduino
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.00s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000 (retrying)

An error occurred while uploading the sketch
Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

Hi,

I have now got a USB asp and I am recieving this error:

avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

Any help would be greatly appreciated, can't make any progress.

Using Port : COM8
Using Programmer : arduino
Overriding Baud Rate : 19200

Arduino as ISP needs either the programmer type stk500v1 or to place large capacitor ~10uF between RESET and GND on the UNO which is a programmer.

Clock source on the target can be needed. Fuses are programmed first before the bootloader and if there is setting for external clock then ATmega stops working until an external clock source is connected. Raw ATmega is shipped with an internal clock source set.

Chinese USBasp need to set slow SCK with jumper if the chip has slow clock source like by default. However, it is highly likely that the pins for jumper are not soldered.

Note that in the newly released Arduino AVR Boards 1.8.1, the protocol of the Arduino as ISP programmer was changed back to stk500v1 from arduino. A new programmer named "Arduino as ISP (ATmega32U4)" was added that still uses the arduino protocol, which is required to use the ATmega32U4-based boards as an Arduino as ISP on Windows.

pert:
Note that in the newly released Arduino AVR Boards 1.8.1, the protocol of the Arduino as ISP programmer was changed back to stk500v1 from arduino. A new programmer named "Arduino as ISP (ATmega32U4)" was added that still uses the arduino protocol, which is required to use the ATmega32U4-based boards as an Arduino as ISP on Windows.

Per, I missed the release of 1.8.1 (or I forgot about it). I think I recommended some weeks ago to someone with the 'segmentation fault' error to revert to 1.6.21 from IDE default 1.6.23. Is the 'segmentation fault' error resolved in 1.8.1?

@pert
I am not using the newest release but I already noticed this change in some topic and I thought so. Thank you for highlights.