ESP8266 Developer Zone The Official ESP8266 Forum 2017-04-06T00:38:35+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1762 2017-04-06T00:38:35+08:00 2017-04-06T00:38:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1762&p=12025#p12025 <![CDATA[Re: Linking Libraries to Flash ICACHE_FLASH_ATTR]]>
dkinzer wrote:
You can write a different linker script that will force code from specific libraries into the Flash section. Go look at the Arduino code base where they use the technique to ensure that library routines are in Flash.

I compile third_party/lwip myself, and the same problem(segmentled section `.text' will not fit in region `iram1_0_seg') happened, can you explain a little about how to force the lib into flash section.
thx

Statistics: Posted by tobewinner — Thu Apr 06, 2017 12:38 am


]]>
2017-01-18T18:15:28+08:00 2017-01-18T18:15:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1762&p=11130#p11130 <![CDATA[Re: Linking Libraries to Flash ICACHE_FLASH_ATTR]]>

You can write a different linker script that will force code from specific libraries into the Flash section


Is there any chance this process is explained somewhere? What needs to be modified in linker script in order for the library to go to flash.

Thanks

Statistics: Posted by russus — Wed Jan 18, 2017 6:15 pm


]]>
2016-03-07T09:01:07+08:00 2016-03-07T09:01:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1762&p=5990#p5990 <![CDATA[Re: Linking Libraries to Flash ICACHE_FLASH_ATTR]]>
dkinzer wrote:
You can write a different linker script that will force code from specific libraries into the Flash section. Go look at the Arduino code base where they use the technique to ensure that library routines are in Flash.


Thanks.

Statistics: Posted by EliteScientist — Mon Mar 07, 2016 9:01 am


]]>
2016-02-19T00:18:10+08:00 2016-02-19T00:18:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1762&p=5781#p5781 <![CDATA[Re: Linking Libraries to Flash ICACHE_FLASH_ATTR]]> Statistics: Posted by dkinzer — Fri Feb 19, 2016 12:18 am


]]>
2016-02-12T00:19:13+08:00 2016-02-12T00:19:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1762&p=5726#p5726 <![CDATA[Linking Libraries to Flash ICACHE_FLASH_ATTR]]> xtensa-lx106-elf/bin/ld: .output/eagle/debug/image/eagle.app.v6.out section `.text' will not fit in region `iram1_0_seg' error.

are there any options to link static libs directly to flash?

Statistics: Posted by EliteScientist — Fri Feb 12, 2016 12:19 am


]]>