Yikes! Invalid device signature. Fail to burn bootloader and read fuses

Hello guys, i know this problem is kinda common but i had to post it anyway.

Before anything i inform you guys that i change the fuse of my arduino pro 3v3@8MHz to allow 1,8V brownout and also programmed CKDIV8 AND CLKOUT. In others words the configuration is this: E:FE, H:DA, L:3F.

The hardware wire i used is this (ArduinoISP to Arduino pro 3v3@8MHz)

I also used a cap 0,1uF between reset and gnd

After a good time using the Arduino pro without problem some random problems begin to appear when i try to uploading the program with the programmer(Arduino as ISP). So i tried to burn the bootloader again and the follow message appears ""avrdude: Yikes! Invalid device signature."

The same occurs when i try to communicate with avrdude using this command "avrdude -c arduino -p m328p -P COM3 -b 19200 -v"

Some tests i did:

1 - Continuity test directly at uC pins between those signais:
ArduinoasISP | Arduino pro
SCK | SCK,
MISO | MISO,
MOSI | MOSI
/SS | /RESET

No problem good connection

2 - Verified the clock in XTAL1 and XTAL2

XTAL1

XTAL2

3 - Verified the clock in CKOUT (arduino pro pin 2) and measured 1MHz

I also made another's measures using the command "avrdude -c arduino -p m328p -P COM3 -b 19200 -v" in the pins 13(SCK), 12(MISO), 11(MOSI) and /RESET

Pin 13 (SCK)

Pin 12 (MISO)

Strange, is it right ?

Pin 11 (MOSI)

Pin RST (conectado ao pino do ArduinoISP)

4 - Later i tried to use the program "Atmega_board_programmer" from Nick Gammon which before saved my board without clock signal. This time no luck but, for curious i take some measures again using his program in these pin 13(SCK), 12(MISO), 11(MOSI) e /RESET

Pin 13 (SCK)

Pin 12 (MISO)

This signal again :confused:

Pin 11 (MOSI)

Pin RST (connected to arduinoISP pin 10)

4 - I also tried to delay the avrdude using -B5, B10 and another values. With a quick search on google some people are saying that those delays dont work with the arduino as isp

5 - i used some sketchs for slow clocks which i dont remember and no luck

6 - External power and no luck again

Which detail i'm losing ?

Thanks

avr dude log:

avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "c:\dude\avrdude.conf"

Using Port : COM3
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.02s

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 (retrying)

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.

Gabriel1989:
Hello guys, i know this problem is kinda common but i had to post it anyway.

Before anything i inform you guys that i change the fuse of my arduino pro 3v3@8MHz to allow 1,8V brownout and also programmed CKDIV8 AND CLKOUT. In others words the configuration is this: E:FE, H:DA, L:3F.

The hardware wire i used is this (ArduinoISP to Arduino pro 3v3@8MHz)

https://www.arduino.cc/en/Tutorial/ArduinoISP

I also used a cap 0,1uF between reset and gnd

After a good time using the Arduino pro without problem some random problems begin to appear when i try to uploading the program with the programmer(Arduino as ISP). So i tried to burn the bootloader again and the follow message appears ""avrdude: Yikes! Invalid device signature."

The same occurs when i try to communicate with avrdude using this command "avrdude -c arduino -p m328p -P COM3 -b 19200 -v"

Some tests i did:

1 - Continuity test directly at uC pins between those signais:
ArduinoasISP | Arduino pro
SCK | SCK,
MISO | MISO,
MOSI | MOSI
/SS | /RESET

No problem good connection

2 - Verified the clock in XTAL1 and XTAL2

3 - Verified the clock in CKOUT (arduino pro pin 2) and measured 1MHz

I also made another's measures using the command "avrdude -c arduino -p m328p -P COM3 -b 19200 -v" in the pins 13(SCK), 12(MISO), 11(MOSI) and /RESET

Pin 13 (SCK)

Pin 12 (MISO)

Strange, is it right ?

Pin 11 (MOSI)

Pin RST (conectado ao pino do ArduinoISP)

4 - Later i tried to use the program "Atmega_board_programmer" from Nick Gammon which before saved my board without clock signal. This time no luck but, for curious i take some measures again using his program in these pin 13(SCK), 12(MISO), 11(MOSI) e /RESET

Pin 13 (SCK)

Pin 12 (MISO)
This signal again :confused:

Pin 11 (MOSI)

Pin RST (connected to arduinoISP pin 10)

4 - I also tried to delay the avrdude using -B5, B10 and another values. With a quick search on google some people are saying that those delays dont work with the arduino as isp

5 - i used some sketchs for slow clocks which i dont remember and no luck

6 - External power and no luck again

Which detail i'm losing ?

Thanks

What are your VCC voltages?

is the target 3.3V?

Is your programmer 5V?

The ArduinoISP(UNO) is only 5V. If your target is not 5V you need to use a different programmer, like this one for Pololu USB AVR Programmer
It will work with both 5V and 3.3V, Autoswitching.

If you need other voltages look for a AVRISPmkII (it will support from 1.6V to 5.5V, from 50Hz to 8MHz SCK freq).

also, your MISO signal looks ok, you had you 'scope at 5ns, That pin was floating. MISO is only driven after the target starts responding. It won't respond until after the first command byte is received. The ArduinoISP's clock rate was 250KHz so !RST, then 8+ clocks, so at a minimum 32us after the First Clock. Unless that display was delay triggered 6,400 (5ns) periods, you are just seeing a floating pin coupled to either MOSI or SCK. Or may !RST.

Chuck.

chucktodd:
What are your VCC voltages?

is the target 3.3V?

Is your programmer 5V?

The ArduinoISP(UNO) is only 5V. If your target is not 5V you need to use a different programmer, like this one for Pololu USB AVR Programmer
It will work with both 5V and 3.3V, Autoswitching.

If you need other voltages look for a AVRISPmkII (it will support from 1.6V to 5.5V, from 50Hz to 8MHz SCK freq).

also, your MISO signal looks ok, you had you 'scope at 5ns, That pin was floating. MISO is only driven after the target starts responding. It won't respond until after the first command byte is received. The ArduinoISP's clock rate was 250KHz so !RST, then 8+ clocks, so at a minimum 32us after the First Clock. Unless that display was delay triggered 6,400 (5ns) periods, you are just seeing a floating pin coupled to either MOSI or SCK. Or may !RST.

Chuck.

The programmer is 5V (Arduino 2009)
The Arduino with problem is Arduino pro mini 3v3 8MHz)

I tested with both voltages at the vcc pin of arduino pro. But is there a problem doing this ? I saw in the datasheet that atmega328p can work with both voltage if respect the relation between frequency vs voltage.

edit:

Gabriel1989:
The programmer is 5V (Arduino 2009)
The Arduino with problem is Arduino pro mini 3v3 8MHz)

I tested with both voltages at the vcc pin of arduino pro. But is there a problem doing this ? I saw in the datasheet that atmega328p can work with both voltage if respect the relation between frequency vs voltage.

edit:

If you are running the target at 3.3v, and the ArduinoISP(UNO) at 5V, you are sending 5V into the Target, SCK,MOSI,!RST. The Arduino (AVR atmega328p) can source up to 40mA on each I/O pin. There is the equivalent of overvoltage protection diodes on each pin. Basically a Diode from pin to VCC, with the cathode connected to VCC. So, if Vcc is 3.3v and you drive MOSI, SCK, !RST with 5v it will shunt any voltage above 3.3V+diode (0.3 .. 0.7V) to Vcc, if your 3.3v power supply cannot sink any over voltage your 3.3V Vcc will vary from 3.3V to (4.3 ..4.7V) depending on the data values presented.

I would be interested to see a screen grab of your targets VCC bus while you are attempting to program it! If my wild speculations are correct, :grinning: you should see a very bad (spiky) signal. Instead of the the steady 3.3V.

I don't have any familiarity with MiniPro's, but I would try to determine if it could handle 5V directly connected to it's 3.3v Vcc bus. Looking at the Arduino-Mini-Pro schematics REV 14 data 2014/04/09 09:19:34am, It looks like you could unsolder SJ1 to isolate the voltage regulator from the AVR chip and directly connect 5V Vcc to its VCC bus.

Chuck.

humm