Code: Select all
LINK build-pysmartnode_4M/firmware.elf
xtensa-lx106-elf-ld: build-pysmartnode_4M/firmware.elf section `.text' will not fit in region `iram1_0_seg'
xtensa-lx106-elf-ld: region `iram1_0_seg' overflowed by 764 bytes
make: *** [Makefile:216: build-pysmartnode_4M/firmware.elf] Error 1
So I changed the iram1_0_seg in esp8266_2m.ld to 36K (was 32K originally) and reduzed the irom0_0_seg by 4K:
Code: Select all
MEMORY
{
dport0_0_seg : org = 0x3ff00000, len = 16
dram0_0_seg : org = 0x3ffe8000, len = 80K
iram1_0_seg : org = 0x40100000, len = 32K+4K
irom0_0_seg : org = 0x40209000, len = 1M - 36K-4K
}
How do I fix this properly? How do I add more space to iram1_0_seg so I can add more native code?