ESP8266 Developer Zone The Official ESP8266 Forum 2016-01-05T17:59:12+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=1266 2016-01-05T17:59:12+08:00 2016-01-05T17:59:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=5249#p5249 <![CDATA[Re: 关于ICACHE_FLASH_ATTR的用法]]>
user_rf_pre_init 和 user_init 可以添加 ICACHE_FLASH_ATTR 宏,如果您有相关需求,自行添加即可。

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Tue Jan 05, 2016 5:59 pm


]]>
2016-01-05T16:39:58+08:00 2016-01-05T16:39:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=5245#p5245 <![CDATA[Re: 关于ICACHE_FLASH_ATTR的用法]]>
Espressif_Faye wrote:
您好,

ICACHE_FLASH_ATTR 是 ESP8266_NONOS_SDK 才需要添加的宏,ESP8266_RTOS_SDK 默认使用这个宏,无需特别添加。

如果是一开始就加载到 RAM 的函数,将始终在 RAM 中。在 CACHE 中的函数,才是仅调用时才加载到 CACHE 中。

感谢您对 ESP8266 的关注!


加载到CACHE中的函数应该是用完了就会被置换出去的吧,那么user_rf_pre_init和user_init通常只需要运行一次,为什么你们给的例子中没有使用ICACHE_FLASH_ATTR?

Statistics: Posted by jinhucn — Tue Jan 05, 2016 4:39 pm


]]>
2015-12-28T14:36:56+08:00 2015-12-28T14:36:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=5166#p5166 <![CDATA[Re: 关于ICACHE_FLASH_ATTR的用法]]>
ICACHE_FLASH_ATTR 是 ESP8266_NONOS_SDK 才需要添加的宏,ESP8266_RTOS_SDK 默认使用这个宏,无需特别添加。

如果是一开始就加载到 RAM 的函数,将始终在 RAM 中。在 CACHE 中的函数,才是仅调用时才加载到 CACHE 中。

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Mon Dec 28, 2015 2:36 pm


]]>
2015-12-25T15:15:19+08:00 2015-12-25T15:15:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=5156#p5156 <![CDATA[Re: 关于ICACHE_FLASH_ATTR的用法]]> Statistics: Posted by jinhucn — Fri Dec 25, 2015 3:15 pm


]]>
2015-12-11T15:03:55+08:00 2015-12-11T15:03:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=5009#p5009 <![CDATA[Re: 关于ICACHE_FLASH_ATTR的用法]]>
Please refer to this topic http://bbs.espressif.com/viewtopic.php?f=7&t=1183&start=10#p5000.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Fri Dec 11, 2015 3:03 pm


]]>
2015-12-10T19:03:23+08:00 2015-12-10T19:03:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=4993#p4993 <![CDATA[Re: 关于ICACHE_FLASH_ATTR的用法]]>
1. Functions with ICACHE_FLASH_ATTR are in FLASH and downloaded to IRAM "on execution demand"

2. Functions without ICACHE_FLASH_ATTR are from the beginning in the IRAM

Questions to point 2:
- Are they there permanently ?
- or in the absence of memory erased and then re-loaded like ICACHE_FLASH_ATTR ?
- if they are still in memory and will be a lot of such functions does not run out of cache for ICACHE_FLASH_ATTR function ?

or the only difference is that the functions are loaded into the cache at the beginning and further there is no difference between functions with and without attribute ICACHE_FLASH_ATTR ?

Thanks for ansver :)

Statistics: Posted by mariuszb — Thu Dec 10, 2015 7:03 pm


]]>
2015-10-23T15:50:11+08:00 2015-10-23T15:50:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=4250#p4250 <![CDATA[Re: 关于ICACHE_FLASH_ATTR的用法]]>
请参考帖子:http://bbs.espressif.com/viewtopic.php?f=61&t=366

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Fri Oct 23, 2015 3:50 pm


]]>
2015-10-22T09:19:39+08:00 2015-10-22T09:19:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1266&p=4224#p4224 <![CDATA[关于ICACHE_FLASH_ATTR的用法]]> Statistics: Posted by Paulwu — Thu Oct 22, 2015 9:19 am


]]>