Hey,
I've downloaded the AVR 8-bit Toolchain 3.5.4 - Linux 64-bit from Microchip. The information / data regarding the ATmega328PB isn't included. Therefore I've downloaded Atmel ATmega Series Device Support (1.2.209) and copied some files into my toolchain folder:
"toolchain folder"/avr/lib/avr5/libatmega328pb.a
"toolchain folder"/avr/lib/avr5/crtatmega328pb.o
"toolchain folder"/avr/include/avr/iom328pb.h
"toolchain folder"/lib/gcc/avr/4.9.2/device-specs/specs-atmega328pb
Compiling works fine but avr-size tells me: "Device: Unknown". Command line:
"toolchain folder"/bin/avr-size -C --mcu=atmega328pb "project folder"/main.elf
Output
AVR Memory Usage ---------------- Device: Unknown Program: 1288 bytes (.text + .data + .bootloader) Data: 7 bytes (.data + .bss + .noinit)
It works for example if I tell avr-size that I'm working with an ATmega8 instead of the ATmega328PB.
"toolchain folder"/bin/avr-size -C --mcu=atmega8 "project folder"/main.elf
Output
AVR Memory Usage ---------------- Device: atmega8 Program: 1288 bytes (15.7% Full) (.text + .data + .bootloader) Data: 7 bytes (0.7% Full) (.data + .bss + .noinit)
It's clear that avr-size can't find the needed information regarding the ATmega328PB. Unfortunately I don't know how I can give avr-size the needed information. Please point me in the right direction :-) Thanks!