ahmetsemihparlak / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

AvrdudeUploader sub-string hack doesn't work for some processors. #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example, at90can128 becomes mn128.  We need a better way of converting from 
the avr-gcc 
version of the name to the avrdude one.  (Or can avr-gcc use the avrdude 
versions?)

Original issue reported on code.google.com by dmel...@gmail.com on 15 Oct 2009 at 4:49

GoogleCodeExporter commented 9 years ago
Hmm, it looks like avrdude can you use the normal (long) names (e.g. 
atmega168), so maybe we can remove the 
sub-string from AvrdudeUploader.java.

Original comment by dmel...@gmail.com on 15 Oct 2009 at 4:52

GoogleCodeExporter commented 9 years ago
I would play it safe for any future hardware support and simply add a new 
property to
boards.txt to be used for AvrDude.  

#define mcu for avr-gcc
atmega328.build.mcu=atmega328p
#define mcu for avrdude
atmega328.upload.mcu=atmega328p

Original comment by e.fa...@wayoda.org on 16 Oct 2009 at 10:38

GoogleCodeExporter commented 9 years ago
Not a bad idea, but for now, I'm just passing the same strings to both avr-gcc 
and avrdude.

Original comment by dmel...@gmail.com on 23 Oct 2009 at 11:29