Code: Select all
/home/allacmc/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /tmp/arduino/sketches/A97C4C0294AB246878AAD8D4C7BC08FB/SNMP_Webserver.ino.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
/home/allacmc/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
/home/allacmc/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit.
/home/allacmc/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: region `dram0_0_seg' overflowed by 128 bytes
collect2: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
The fact is that I'm low on memory so I need to keep looking for things in my program to reduce the size of this specific memory region:
For example:
randomSeed(analogRead(0);
This instruction generates this error, if I remove this instruction I can compile.
Another example:
IPAddress targetIP[4] = { IPAddress(0,0,0,0), IPAddress(0,0,0,0), IPAddress(0,0,0,0), IPAddress(0,0,0,0) };
If I remove an item from this list, I can compile it.
My question is:
What are the instructions that consume this type of memory?
What command do I use to find out the occupation of this specific memory?
The use of memory in general is useless. That doesn't solve it.