-
Notifications
You must be signed in to change notification settings - Fork 13.3k
section .text' will not fit in region
iram1_0_seg'
#88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you post your work-in-progress code somewhere? I suspect the reason is that the code from .cpp files is automatically placed into .irom0.text (see linker script), whereas code from .c files does not. |
I'll post the code when I get home tonight. |
Turned out that I needed to add ICACHE_FLASH_ATTR to all of the functions to move them out of region. |
Thought id give compiling the u8glib now that the iram has been increased. Guess what.. this error has gone. Only to be replaced by a new one... error below...
|
Nodemcu has u8glib running on ESP8266; maybe it can be ported to ESP8266/Arduino? In the meantime, I am using https://gist.github.com/probonopd/bb7e1c04fb07bfad6034 to drive the OLED display. |
I tried Adafruit_SSD1331 ad found similar problem with portOutputRegister() function
It is some common problem or ESP8266 ex port? |
the ESP is a 32Bit system the pointer can not match the 8Bit of the AVR- may this verion of SSD1331 is working |
Sorry to comment on an old issue, but @igrr you said:
Is this still a true statement? As a library developer I develop in C++, so do I have to add |
That's not true now. This has been fixed somewhere after 2.0.0 i think, so now all code goes into flash by default. You can use ICACHE_RAM_ATTR for functions which have to be in RAM (like interrupt handlers). |
So all these occurences are redundant? Thanks for your answer! |
Not all of them. Some come from lwip header files, and those are irrelevant. Some files (like umm_malloc.c) are placed into IRAM by linker script, so there ICACHE_FLASH_ATTR works as an override. Some are redundant and will be cleaned up. |
I'm trying to adapt https://github.com/cnlohr/ws2812esp8266 for use with the Arduino IDE, but I keep running into this error: section
'.text' will not fit in region 'iram1_0_seg'
I'm using the latest code from this repo compiled myself, so I should have the latest fixes.
The text was updated successfully, but these errors were encountered: