Go Down

Topic: Burining Bootloader via AVRISP-MKII onto ATMEGA328-AU (Read 12 times) previous topic - next topic


having issues with using an AVRISP-MKII to burn a bootloader for an ATMEGA328-AU (the same as on the Pro and Pro Mini)

Code: [Select]
avrdude: Expected signature for ATMEGA328P is 1E 95 0F

I have a schema here

any thoughts?


'avrdude' checks the signature bytes in the target processor against what it expects, given the processor that you told it about.  So, if the actual processor is a 328-AU and it's expecting a 328P, the signature won't match.  Can you select a different processor from the menu?


i take it i can add a new board to the boards.txt file.
like so

Code: [Select]

[new board name].build.mcu=atmega328p

where can i change the mcu listing type. i can't find how to add the AU


Aug 09, 2011, 06:01 pm Last Edit: Aug 09, 2011, 11:04 pm by dc42 Reason: 1
Looks like the atmega328 (without the P) isn't in the config file for avrdude. Locate file avrdude.conf, open it in an editor and locate the atmega328p section, which starts like this:

# ATmega328

   id              = "m328p";
   desc            = "ATMEGA328P";
    has_debugwire = yes;
    flash_instr   = 0xB6, 0x01, 0x11;
    eeprom_instr  = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
                0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
                0x99, 0xF9, 0xBB, 0xAF;
   stk500_devcode  = 0x86;
   # avr910_devcode = 0x;
   signature       = 0x1e 0x95 0x0F;

If you change the final signature byte from 0x0F to 0x14 then it should recognise your chip (but not a atmega328p). Or you could try copying the whole atmega328p definition and in the copy change the id, desc and signature byte fields, then use the new id or desc to identify the chip in boards.txt, but I don't know whether this works.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.


Okay, so turns out i actually have an ATMEGA328-AU-ND not an ATMEGA328P-AU-ND   

any suggestions?

Go Up