我有一個Atmel的ATXMega16a4u單片機,並嘗試用avr-gcc 4.7.2(Fedora 4.7.2-1.fc17)編譯代碼。我得到這個錯誤:AVR-GCC支持ATXMega16a4u
Unrecognized argument in option '-mmcu=atxmega16a4u'
於是,我就編譯-mmcu = atxmega16a4代碼(不到底「U」)。並得到一些'未申報'的錯誤:
error: 'ADC_CH_GAIN_DIV2_gc' undeclared (first use in this function)
我的微控制器還不支持avr-gcc?有沒有可能使它在Fedora上工作,避免使用avr studio(和windows)?
感謝 龍