thomasonw / ATmegaxxM1-C1

Arduino IDE support files for CAN enabled Atmel AVR chips: ATmega64M1, ATmega32M1, ...
GNU Lesser General Public License v2.1
31 stars 18 forks source link

Warning: Board ATmegaM1-C1:avr:CanDuino doesn't define a 'build.board' preference #21

Open sebashb opened 4 years ago

sebashb commented 4 years ago

Hi I'm trying to use these board files to upload a blank sketch to the ATmega32M1 but I'm getting the following error:

Warning: Board ATmegaM1-C1:avr:CanDuino doesn't define a 'build.board' preference. Auto-set to: AVR_CANDUINO
fork/exec ~/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
Error compiling for board ATmegaxxM1/C1.

Arduino IDE Version: 1.8.12 macOS Version: 10.15.4

This is my board configuration: image

And finally programmer is a Polulu USB AVR Programmer V2.

sebashb commented 4 years ago

I have just tested on Windows and everything works fine. On macOS the board files are completely broken. avr-g++ returns bad CPU type.