hack that gets the AVR device, only works for mega

In the fileAvrdudeUploader.java,
the function: "public boolean avrdude(Collection params) throws RunnerException {"

// XXX: quick hack to chop the "atmega" off of "atmega8" and "atmega168",
    // then shove an "m" at the beginning.  won't work for attiny's, etc.
    commandDownloader.add("-pm" + 
      Preferences.get("boards." + Preferences.get("board") + ".build.mcu").substring(6));
    commandDownloader.addAll(params);

This code only works for a atmega series
But if your using a other AVR, in my case at90can128
I get this error: avrdude: AVR Part "mn128" not found.

I have changed the "avrdude.conf" file the mcu id from c128 to mn128, and that works but its a very dirty hack.

Is it possible in a new release to make it support all AVR's?
Like adding in the file "boards.txt" a mcu id?
something like this:

commandDownloader.add("-p" + 
      Preferences.get("boards." + Preferences.get("board") + ".build.mcuid"));

Or even nicer would be to get it out the "avrdude.conf" file

I have recompiled the arduino with the ID in the boards.txt file

at90can128.build.mcuid=c128

works like a charm

Issue created: Google Code Archive - Long-term storage for Google Code Project Hosting.

Does anyone know if avr-gcc and avrdude can use the same names for the processors? For example, right now, we're passing atmega328p to avr-gcc and m328p to avrdude.

nothing but a guess, but isnt it possible to make aliases in make files?