Chat freely about anything...

User avatar
By mgrunt
#43589 Hello, can you anybody help me? I have ESP-12E (32Mbit flash) and I neeh help with LD and makefile configuration for this large flash. In makefile I have:

# SPI_SIZE_MAP
# 0 : 512 KB (256 KB + 256 KB)
# 1 : 256 KB
# 2 : 1024 KB (512 KB + 512 KB)
# 3 : 2048 KB (512 KB + 512 KB)
# 4 : 4096 KB (512 KB + 512 KB)
# 5 : 2048 KB (1024 KB + 1024 KB)
# 6 : 4096 KB (1024 KB + 1024 KB)
SPI_SIZE_MAP ?= 6
LD_SCRIPT = eagle.app.v6.new.2048.ld

And in LD script I have:

MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
iram1_0_seg : org = 0x40100000, len = 0x8000
irom0_0_seg : org = 0x40201010, len = 0xE0000
}

It is OK this settings? Can I use all of the 32Mbit flash?

Bud when I try compile project I get this error:
section `.text' will not fit in region `iram1_0_seg'

It is problem with small RAM or small FLASH for program+data?

Thanks, MG