Hello, i just bought a atmegap-pu and im trying to brun the bootloader on it but with no success. Im using an arduino uno to burn it. I tried the standard arduino guide for burning, but i get an error message: Failed chip erase: uploading error: exit status 1 when i try to burn the bootloader...
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.
Failed chip erase: uploading error: exit status 1
I also tried Nick Gammons method but i get:
08:28:09.077 -> Attempting to enter ICSP programming mode ......................................................
08:28:15.428 -> Failed to enter programming mode. Double-check wiring!
08:28:15.474 -> Programming mode off.
At this moment it looks like something with the wiring. Check these 6 wires carefully.
I hope you have the ISP sketch uploaded.
Post the picture of your setup.
Hey, thank you for the quick response. I've connected everything right but I noticed i actually have Atmega328P U, and avrdude tells me:
avrdude: Device signature = 0xff00ff
avrdude: Expected signature for ATmega328P is 1E 95 0F
Does having Atmega328P U instead of Atmega328P PU make a difference?
Now every guide i have seen says to edit the avrdude.conf file, but i cant seem to find it.
@krpreistoric
The 328-PU is the old version of the 328P-PU but the markings on the IC will be different.
If it says 328P U then it is the newer 328P- PU IC.
Don' mess with avrdude.conf unless you know what you are doing.
As @Budvar10 pointed out you probably have a wiring error.
I would say GND on right side is incorrect, blue wire.
What is the resistor value?
If you have DMM, try to check wires, their resistance. Check the power voltage on the target MCU.
The reset pin should have +5V and as the reset pulse arrives at the beginning of the upload process, it should be perfectly visible on DMM as short time voltage drop to 0V.
Can't say the correct orientation of the 328P from this photo.
Resistor is 10k and the wires are no more than 0.5ohms, I changed the GND wire to the correct position(not sure if the incorrect wiring damaged it, but still get the avrdude: Device signature = 0x000000, the avrdude: Device signature = 0xff00ff was because one pin didnt have contact i but changed it). The voltage between the reset pin and GND is 4.88v, drops to 0v for a quarter of a second when i hit run "Burn Bootloader", then back to 4.88v.
If you are sure the connections are correct then I would think that the 328 is no good.
Do you have another you could try?
From where did you by the 328?
I bought it on a online marketplace, similar to ebay but based in my country. Buying it from legit vendors from amazon is too expensive, because of the shipping cost, which can be up to 3x the price of the product.