On Jan 23, 2012, at 2:16 , Bob von Knobloch wrote: > On 23/01/12 09:40, Rick Mann wrote: >> Is it possible to specify multiple IDs for a part in avrdude.conf? It's a >> pain to specify two parts in the Makefile, one for GCC, and one for avrdude. >> I don't want to duplicate the entire entry in avrdude.conf, but I do want to >> be able to look up a part with "atmega644a" instead of "m644a". >> >> Thanks, >> Rick >> >> >> _______________________________________________ >> AVR-chat mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/avr-chat >> > As far as I am aware, avrdude also accepts the processor descriptions defined > as 'MCU_TARGET' by avr-gcc. > All my projects '#define MCU_TARGET [processor_name e.g. atmega1284p]' > somwhere near the top and I then use awk to extract that long name for the > Makefile and also for a bash script which calls avrdude, also using the long > name. > This way, the processor definition is only in one place, the source.
Huh. For me, it complains if I supply that. Oh, wait, maybe it's complaining because I specified atmega644a, and didn't have an "m644a" in my file... -- Rick _______________________________________________ AVR-chat mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avr-chat
