In my source code I have tried to allocate a huge buffer exceeding the
RAMSIZE value (RAM of my component (ATmega324PB) is 2k).
volatile char buffer;
This buffer is in bss section. What I understand is that both data and bss goes to RAM. So it is not possible to do that. But I have no error of avr-gcc (gcc version 5.4.0 (GCC)).
RAMSIZE value in
iom324pb.h, but it seems ok.
The error only occurs if I exceed 32767 bytes.
Why not having an error here with a 4000 bytes buffer ?
(NB: compilation and upload works, but not execution).