ESP8266 Developer Zone The Official ESP8266 Forum 2015-10-20T16:27:40+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1244 2015-10-20T16:27:40+08:00 2015-10-20T16:27:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1244&p=4182#p4182 <![CDATA[Re: section `.text' will not fit in region `iram1_0_seg' 编译出错,怎么调整段空间划分]]>
Espressif_Faye wrote:
您好,

内存有限,iram 无法再调整。

请在您自定义的函数前加上 ICACHE_FLASH_ATTR 定义,将其存放在 Flash 中,仅调用时才加载到 cache 运行。
例如,

Code:

void ICACHE_FLASH_ATTR
user_test_start(void)
{
   ... ...
}


感谢您对 ESP8266 的关注!

Statistics: Posted by clough2004 — Tue Oct 20, 2015 4:27 pm


]]>
2015-10-20T09:58:27+08:00 2015-10-20T09:58:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1244&p=4170#p4170 <![CDATA[Re: section `.text' will not fit in region `iram1_0_seg' 编译出错,怎么调整段空间划分]]>
内存有限,iram 无法再调整。

请在您自定义的函数前加上 ICACHE_FLASH_ATTR 定义,将其存放在 Flash 中,仅调用时才加载到 cache 运行。
例如,

Code:

void ICACHE_FLASH_ATTR
user_test_start(void)
{
   ... ...
}


感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Tue Oct 20, 2015 9:58 am


]]>
2015-10-19T12:02:30+08:00 2015-10-19T12:02:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1244&p=4157#p4157 <![CDATA[[Resolved]section `.text' will not fit in region `iram1_0_seg' 编译出错,怎么调整段空间划分]]> .output/eagle/debug/image/eagle.app.v6.out section `.text' will not fit in region `iram1_0_seg'
应该是text段划分空间不够吧,不知怎么调整,当前使用1MB的flash。

Statistics: Posted by clough2004 — Mon Oct 19, 2015 12:02 pm


]]>