ATMEGA328-PU

Hello,

I tried everything I know to install a bootloader in a lot of atmega328-pu chip I have, but I always had errors, in Arduino IDE and with the command line of avrdude... the signature of the diveces are 0x010305. My programmer is a AVRISPMKII.

Anyone can help me please... Tkx.

So please describe what you tried and how it's connected :slight_smile:

The ATmega328 (non p) isn't originally supported by the IDE. That's because the ATmega328 and the ATmega328p have different device signatures. If you want to use the ATmega328 with Arduino IDE, you'll have to install MiniCore, which have support for the non p version, as well as the rest of the family. simply select the correct versions in the variants menu.

I'm using the Arduino board and the AVRISPMKII to program the bootlader... since it have the crystal ans the suplly to the chip.
With avrdude I get this error:

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x010305
avrdude.exe: Expected signature for ATmega328P is 1E 95 0F
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "C:\Users\Neves\Desktop\arduino-1.6.12\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex"
avrdude.exe: input file C:\Users\Neves\Desktop\arduino-1.6.12\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex auto detected as Intel Hex
avrdude.exe: writing flash (32768 bytes):

Writing | ################################################## | 100% 0.00s

avrdude.exe: 32768 bytes of flash written
avrdude.exe: verifying flash memory against C:\Users\Neves\Desktop\arduino-1.6.12\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex:
avrdude.exe: load data flash data from input file C:\Users\Neves\Desktop\arduino-1.6.12\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex:
avrdude.exe: input file C:\Users\Neves\Desktop\arduino-1.6.12\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex auto detected as Intel Hex
avrdude.exe: input file C:\Users\Neves\Desktop\arduino-1.6.12\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex contains 32768 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 0.00s

avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x7e00
0x00 != 0x11
avrdude.exe: verification error; content mismatch

avrdude.exe done. Thank you.

Try @hansibull's suggestion first, then...

Try Google