XMegaForArduino / arduino

required (and optional) source files for the Arduino development environment, specifically the hardware/arduino sub-directory, to support xmega processors
19 stars 17 forks source link

Compilation fails for ATxmega128A1 #46

Open jpelletier opened 3 years ago

jpelletier commented 3 years ago

I'm trying to compile a simple blink program for the board AVR XMEGA-A1 XPLAINED

It can't find crtatxmega128a1.o It can't find -lm, -lgcc -lc and -latxmega128a1

However, they are here: arduino-1.8.13/hardware/tool/avr/avr/lib/avrxmega7

Possibly caused by deleting previous version 0.9.1 ?

physnoct commented 2 years ago

It seems the AVR tools installed by Arduino don't support the ATxmega128A1. By using an already installed avr compiler (using apt) it compiles without any problem.

To do that, modify this file: /home/$USER/.arduino/packages/XMegaForArduino/hardware/avr/0.9.2/platform.txt Remove the path in this line

compiler.path={runtime.tools.avr-gcc.path}/bin/

compiler.path=