Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By ivanroberto
#29038
mav wrote:
ivanroberto wrote:Hi Cherts,

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.

So my code no longer fits on it...

Could you help me?


I ran into the same problem. Modify

C:\Espressif\ESP8266_RTOS_SDK\include\espressif\c_types.h

line 77 from:

#define ICACHE_FLASH_ATTR

to:

#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))

I don't know why they decided you don't need this anymore...


Hi Mav,

Thanks a lot, it works for me too! :D
User avatar
By fshah48
#29201
boseji wrote:Hello,

Thanks a lot for your support.

I have tried to put together a Portable package of all the things that would be needed to work with ESP8266 board (ESP-01 Module in my case).
This is based on the Orignial SDK posted plus the contributions from various other people taken together.
Only a single download is enough to get the things working.

The details of my packaging are given in the Github Repo - ESP8266-uof-windows-sdk-portable.
This package is done for 64bit Windows systems only.

Direct link to the Package - ESP8266-UofWin-SDK-portable-v01.zip.
Code: Select allFile Size: 635.55 MB
MD5-SUM = a46044025137ecbfc94bce0e0c57a6e1


Kindly let me know feedback, comments or issues on this Portable package.

Warm Regards,
Boseji



I downloaded it, checked its MD5 chksum which matched perfectly. Ran the updater to update the path and edited the required file to set to COM23 in my case. Had tested the NodeMCU board before using lualoader and everything worked perfectly.

Tried to test examples "hello_world", "blinky", "sysinfo", "wifi-sniffer"--all compile and build ok, flash ok but print garbage on the terminal. When I look at HEX it is nearly all examples emit the same output at reset.
Can you help resolve this problem, cannot proceed any further to take advantage of the wonderful build you have put together.
fshah