I'm on linux, and prefer to use classic unix tools to cross compile for AVR.
My linux distro comes with avr-gcc 5.4.0, avr-libc-2.0.0, etc.
Has anyone found a way to cross-compile to the 4809? I have tried stuffing the associated spec file from microchip "pack" into the installed gcc/libc but it's not working.
$ make avr-gcc -DF_CPU=16000000 -mmcu=atmega4809 -Os -o main.elf main.c main.c:1:0: error: unknown core architecture 'avrxmega3' specified with '-mmcu=' #include <util/delay.h> ^ main.c:1:0: note: supported core architectures: avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega2 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny avr1
I can build gcc-8 and avr-libc from the sources, but I don't want to go down the trial-and-error path if someone else has the recipe already.