raphschwarz / Circuit-Abbey-G8-DIY-EDIT

diy edit for Circuit Abbey G8 clock divider eurorack module
4 stars 1 forks source link

Flashing HEX with AVRDUDE(SS) #3

Open flaminggarlic opened 3 years ago

flaminggarlic commented 3 years ago

I tried to flash the hex using avrdude and ran into the issue that the ATMega164A is not a supported chip. This can either be addressed by changing the part in the bom to ATMega164P (which is supported and is identical in function with better power usage specs) or editing the avrdude.conf file from the AVRDUDE directory (or the AVRDUDESS directory if you use that GUI) and adding the following entry to support the chip:

#------------------------------------------------------------
# ATmega164A  ---- .kbv add a modified 164P entry
#------------------------------------------------------------

# close to ATmega16

part parent "m16"
    id               = "m164a";
    desc             = "ATmega164A";
    signature        = 0x1e 0x94 0x0f;

    progmodedelay       = 0;
    latchcycles         = 5;
    togglevtg           = 1;
    poweroffdelay       = 15;
    resetdelayms        = 1;
    allowfullpagebitstream = no;
    chip_erase_delay = 55000;

    ocdrev              = 3;
  ;

I was unable to add the extended fuse settings for some reason (greyed out field when the chip is selected), but that just governs brownout voltage, so I don't expect that to be much trouble. The Low and High fuses wrote as expected.