when linking an application for the ESP8266 using the xtensa toolchain (GCC) I get the following error message:
/home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: src/ARTApp/ARTApp.out section `.text' will not fit in region `iram1_0_seg'
What can I do to solve this problem?
Please do not get confused because of the "arduino" in the given path. I am just using the toolchain, but not the framework. However, the code I am compiling/linking here is some existing code that does not state any specific linkage. My glue code has the typical entry point:
void ICACHE_FLASH_ATTR user_init()
{
/* calling my code here */
}
Do I have to provide the ICACHE_FLASH_ATTR to all my functions in oder to make them go into flash memory?
Thanks for any hints and your help in advance!
Rainer