Hi
I am debugging my own arduino board(which layout by myself). Now I want to program the atmega328p which bought newly.
I am using arduino IDE and AVRISP mkii, but it does not work. It shows this
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Double check chip, or use -F to override this check.
I am using Atmega328P, and checked the schematic. can not find any problem.
what's wrong?
please help me. Thanks very much.
that is what i have done and it is working now. you can try it.
Hi,
thanks for your answer.
but my chip is Atmega328p.not atmega328.
there is a trick for using 328p instead of 328. below the workaround.
I have just worked out how to use avrdude at the command line to program the bootloader and set the chip fuses for it. I am doing this with blank Atmega328Ps plugged into a Uno R3 board. In my case I downloaded a separate copy of avrdude and I am using the USBASP programmer. I put a copy of the .hex bootloader file in the same folder as avrdude for convenience; the original was in C:\Program Files\Arduino\hardware\arduino\bootloaders\optiboot
Program the bootloader code:
avrdude -B 4 -C avrdude.conf -p m328p -P usb -c usbasp -e -U flash:w:optiboot_atmega328.hex
Program the fuses:
avrdude -B 4 -C avrdude.conf -p m328p -P usb -c usbasp -U lfuse:w:0xFF:m
avrdude -B 4 -C avrdude.conf -p m328p -P usb -c usbasp -U hfuse:w:0xDE:m
avrdude -B 4 -C avrdude.conf -p m328p -P usb -c usbasp -U efuse:w:0x05:m