ATMEGA328P-PU boatload

Hello everyone ... It been a while I'm trying to bootload 2 micro controllers ATMEGA328P-PU but unsuccessfully ... I have no electronic issue because I've disconnected & reconnected the whole system more than 10 times but still I have the exact same error ... I've seen all topics and tried everything but I still have the same following error, can you please help me ? :

System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/adamboukhssimi/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/cu.usbmodem1411
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.03s

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.
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.

Zero response means no connection to the target. It can caused by several reasons: bad wiring, USB cable, incorrect port or configuration...
The hint is in the log: "Double check connections and try again...", but do not obey the second part of it "use -F to override".
This could be potentially another problem: "User configuration file does not exist or is not a regular file, skipping".

I checked again, and added external power,now it's giving me this :

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.03s

avrdude: Device signature = 0x0000f0
avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.

avrdude done. Thank you.

Error while burning bootloader.

Maybe I should get another configuration file of my 328P-PU with external 16MHz oscillator ?

No, a different file will still get you the same error message. You need to find out why the device isn't responding or is responding with 0x0000f0.

Check the wire, did you get the pin 1 from correct corner of the IC chip? Is all the wires good? Is the USB cable good? Is the reset pin not locked to ground by accident? Is the GND and VCC wiring correct? If you used external power and not USB power, make sure GND from both are connected.

Provide more info about the setup. Which programmer, schematics...? Eventually, post the photo of your setup.

Maybe I should get another configuration file of my 328P-PU with external 16MHz oscillator ?

This leads me to question whether the MCU has external crystal or resonator?

The wiring is just fine, I over checked it so many times ...
Here is the electronic configuration, and the errors I got :

1

2

3

Electronic configuration

thanks !!

Wires look right to me. You did upload Arduino ISP to the Uno board first?

"The wiring is just fine, I over checked it so many times ..."

You should try .1uF capacitors across VCC and Gnd on the atmega328p-pu.

You could also try selecting Arduino Uno instead of "Arduino on a breadboard" since you have a 16MHz crystal on the chip.

You did upload Arduino ISP to the Uno board first?
Yes I did, and switch programmer to Arduino as ISP

You should try .1uF capacitors across VCC and Gnd on the atmega328p-pu.
Already done

You could also try selecting Arduino Uno instead of "Arduino on a breadboard" since you have a 16MHz crystal on the chip.
Already done :confused:

Check continuity on each lead you are using. Use the led and resistor on your board if you don't have a volt meter.

Hi !
I have exactly the same problem, and I managed to solve it very simply : by removing a capacitor from the quartz. Incomprehensible, but it works!
(however, the length of the wires adds capacity, and the value of the quartz capacities is very small (22pF), so this can maybe have consequences...and I saw that you used long cables to connect your quartz)
Hoping that it helped you !

Korentin >> I'm so grateful and thankful to you dude, it's exactly the solution, I have no explanation (and wires can't add capacity because the global capacity of C1 and C2 in serie is C1*C2/(C1+C2) so it's smaller) but it finally worked, I tested my chip by importing a program into it (blink) and it works just fine, THANK YOU ALL GUYS !

I just had to remove the 2x22pF between quartz and gnd ... It works !!

Cool ! I'm glad that it could help you, I also spent time on this problem, and the solution is not marked in the books !

That makes sense. Short bits of wire adds capacitance to the signal and combined with 22pF the total value ended up higher and rendered the clock useless in the end. I wouldn't have caught this since I usually have mine much closer to the chip. Maybe make a tiny PCB board with 2 angled pin header at 0.1" spacing and a jumper wire to connect to ground? Since not all chips have convenient ground pin next to the xtal pin. ATTiny84 for example, if one wished to use external clock, those pins are next to VCC and the nearest GND pin is on other side of the chip.