Different memory mapping for ESP32 and ESP32S3 (section `.dram0.bss' will not fit in region `dram0_0_seg')
Posted: Thu Mar 21, 2024 6:39 am
I have a project that is compiled and run with no problems when target is ESP32S3, but won't compile when I set ESP32.
It sais
Is it possible to fix generally? I mean to make it compile not just for me, but for anybody. AFAIK ESP32 has even slightly more RAM than S3.
It sais
Code: Select all
c:/users/x/appdata/local/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.exe: C:\Users\x\AppData\Local\Temp\arduino\sketches\FB7E891079563933D93E7E44B6280E7E/x.ino.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
c:/users/x/appdata/local/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.exe: DRAM segment data does not fit.
c:/users/x/appdata/local/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.exe: DRAM segment data does not fit.
c:/users/x/appdata/local/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.exe: region `dram0_0_seg' overflowed by 41496 bytes
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1