I have some fairly simple Arduino code that is allocating a couple of buffer structures like this:
Code: Select all
typedef struct
{
int len;
uint8_t buff[INTERRUPT_BUFFER_SIZE];
} Buffer, *Buffer_ptr;
Buffer
bufferA,
bufferB;
Code: Select all
Sketch uses 700270 bytes (53%) of program storage space. Maximum is 1310720 bytes.
Global variables use 123436 bytes (37%) of dynamic memory, leaving 204244 bytes for local variables. Maximum is 327680 bytes.
Code: Select all
c:/users/gcorson/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\gcorson\AppData\Local\Temp\1\arduino_build_508386/SPI_IMU_Test_Telemetry.ino.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
c:/users/gcorson/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/gcorson/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg' overflowed by 864 bytes
collect2.exe: error: ld returned 1 exit status