ESP8266 Developer Zone The Official ESP8266 Forum 2016-01-27T16:34:26+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1685 2016-01-27T16:34:26+08:00 2016-01-27T16:34:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1685&p=5540#p5540 <![CDATA[Re: out section `.rodata' will not fit in region `dram0_0_seg'????]]>
If you have to define an array that is very large, please put it into Flash, like:

Code:

static const char XXXX[] ICACHE_RODATA_ATTR = { ........ }


Notice that Flash Read/Write has to be 4 bytes aligned so the array has to be type uint32.

Thanks for your interest in ESP8266!

Statistics: Posted by ESP_Faye — Wed Jan 27, 2016 4:34 pm


]]>
2016-01-25T23:35:28+08:00 2016-01-25T23:35:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1685&p=5527#p5527 <![CDATA[out section `.rodata' will not fit in region `dram0_0_seg'????]]> there are my questions:
1.Is dram_seg in the SPI Flash???
2.Can I change the "eagle.app.v6.ld" file to fix the error??
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 = 0x40240000, len = 0x32000
}
I've tried to change the dram0_0_seg's "len" from 0x14000 to 0x2000,it can be compiled successfully but the .bin file can not run in my chip。 3.can I define a large arry in my source file which is larger than 100K?(cause I have 4MB SPI Flash on the board )
4.how can I fix this problem.
Thank you very muck if you can answer my question.

Statistics: Posted by Garvey — Mon Jan 25, 2016 11:35 pm


]]>