Cached Code (irom0) RTOS_SDK Issue
-
- Posts: 14
- Joined: Sat Nov 29, 2014 5:03 am
Cached Code (irom0) RTOS_SDK Issue
Postby ivanroberto » Thu Sep 03, 2015 2:39 am
Hi comunity,
I am developing a product using the SDK RTOS.
According to the documentation 20A, it is no longer needed using and enjoying ICACHE_FLASH_ATTR before each function so that they are in IROM memory region.
However I noticed that after the last update (ESP_IOT_RTOS_SDK_V1.1.0_15_08_21) all functions are being allocated in IRAM memory even if you add ICACHE_FLASH_ATTR before each function.
Anyone else noticed this problem?
I am developing a product using the SDK RTOS.
According to the documentation 20A, it is no longer needed using and enjoying ICACHE_FLASH_ATTR before each function so that they are in IROM memory region.
However I noticed that after the last update (ESP_IOT_RTOS_SDK_V1.1.0_15_08_21) all functions are being allocated in IRAM memory even if you add ICACHE_FLASH_ATTR before each function.
Anyone else noticed this problem?
Last edited by ivanroberto on Sun Sep 06, 2015 12:37 pm, edited 1 time in total.
-
- Posts: 14
- Joined: Sat Nov 29, 2014 5:03 am
Re: Cached Code (irom0) RTOS_SDK Issue
Postby eriksl » Sun Sep 06, 2015 3:38 pm
They are right in that it is not REQUIRED. If you have little code, it will work. If you're going to have a not-completely-tiny program, you will have to put it in the irom section anyway, that will always remain.
-
- Posts: 14
- Joined: Sat Nov 29, 2014 5:03 am
Re: Cached Code (irom0) RTOS_SDK Issue
Postby ivanroberto » Tue Sep 08, 2015 8:10 pm
Thanks for your replay,
Ok I understood, but my point is that I can't put my code in irom section (the ICHACHE_FLASH_ATTR doesn't work any more on v1.1.0_15_08_21). But it worked on old releases.
Thanks
Ok I understood, but my point is that I can't put my code in irom section (the ICHACHE_FLASH_ATTR doesn't work any more on v1.1.0_15_08_21). But it worked on old releases.
Thanks
Re: Cached Code (irom0) RTOS_SDK Issue
Postby khgoh » Wed Sep 09, 2015 4:41 pm
I also have the same problem. After further investigation, I found out that in c_type.h,
The original line in previous release,
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
has change to,
#define ICACHE_FLASH_ATTR
After I change it back according to the previous release, my program can compile without problem.
The original line in previous release,
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
has change to,
#define ICACHE_FLASH_ATTR
After I change it back according to the previous release, my program can compile without problem.
-
- Posts: 14
- Joined: Sat Nov 29, 2014 5:03 am
Re: Cached Code (irom0) RTOS_SDK Issue
Postby ivanroberto » Thu Sep 10, 2015 10:21 pm
Hi khgoh,
Thanks dude, it works for me too!!!
Now i get more than 5KB of free RAM
Just one new issue, my ESP8266 (station mode) doesn't connect with my router any more, I have to disable wifi encryption on the router...
Do you face it too? (this only happened after RTOS SDK update)
Thanks friend
Thanks dude, it works for me too!!!

Now i get more than 5KB of free RAM

Just one new issue, my ESP8266 (station mode) doesn't connect with my router any more, I have to disable wifi encryption on the router...
Do you face it too? (this only happened after RTOS SDK update)
Thanks friend
Who is online
Users browsing this forum: No registered users and 84 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.