Issues with atmega32 chip.

I am using arduino uno as a programmer and atmega32 as a target. I uploaded arduinoISP sketch with the programmer "AVRISP mkll". Then hooked up a 22 uf capacitor on reset and ground. I connected to atmega32 with vcc to vcc(pin 10 in target) and gnd to gnd(pin 11 and 31), pin 10, 11, 12, 13 to target pins 9, 6, 7, 8 which are reset, sck, mos0, mos1. Opened blink sketch with pin mode 13 output, selected board "atmega32 8mhz" then selected programmer "Arduino as ISP", and uploaded using a programmer.

Then this error shows up: avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

What did I do wrong though?

Verbose output:

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "E:\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM4
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATmega32
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 4 10 64 0 no 1024 4 0 9000 9000 0xff 0xff
flash 33 6 64 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 4 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 = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

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

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.

Also posted at:
https://stackoverflow.com/questions/49639049
If you're going to do that then please be considerate enough to add links to the other places you cross posted. This will let us avoid wasting time due to duplicate effort and also help others who have the same questions and find your post to discover all the relevant information. When you post links please always use the chain links icon on the toolbar to make them clickable.

Device signature = 0x000000 usually indicates a wiring problem. You should have a 0.1 uF decoupling capacitor on the power lines of the chip. You should also do a Tools > Burn Bootloader before Sketch > Upload using Programmer. The reason is this will set the fuses of the microcontroller according to the board you have selected. Note that if you set fuses for an external clock source and you have no external clock source then you will "brick" your ATmega32 until you connect a clock source to it.

YES! Thank you so much, this error was storming over me now it's resolved! :slight_smile:
I also deleted that stack overflow post.