One forum post mentioned editing components/esp32/ld/esp32.ld in the IDF, which I have also tried and that seems to work. I changed 0x20000 to 0x28000 and it built okay.
- What is the limit, and any caveats, on increasing this value?
Is there a way to have a local *.ld file in my project to override this value without editing the actual IDF file?
Code: Select all
[100%] Linking CXX executable knt.elf
/home/se/Esp_Idf_Versions/4_0rel_b0d6c01b0/tools/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: knt.elf section `.iram0.text' will not fit in region `iram0_0_seg'
/home/se/Esp_Idf_Versions/4_0rel_b0d6c01b0/tools/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: IRAM0 segment data does not fit.
/home/se/Esp_Idf_Versions/4_0rel_b0d6c01b0/tools/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: region `iram0_0_seg' overflowed by 205 bytes
collect2: error: ld returned 1 exit status
Code: Select all
/* IRAM for PRO cpu. Not sure if happy with this, this is MMU area... */
iram0_0_seg (RX) : org = 0x40080000, len = 0x20000