ICACHE_FLASH_ATTR #10617
-
|
Bonjour, I'm working on esppwm.c. Most functions have the attribute ICACHE_FLASH_ATTR . Merci :-) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
This is a bit subtle... So |
Beta Was this translation helpful? Give feedback.
-
|
Merci, I understand. I put esppwm.o in esp8266_common.ld and It's work. |
Beta Was this translation helpful? Give feedback.
@benoitLecuppe
This is a bit subtle...
esp8266_common.ldwill place anything by default intoiram1_0_seg. However there are a list of specific object files above that are explicitly placed inirom0_0_seg. (This includeshspi.obut does not includeesppwm.o).So
ICACHE_FLASH_ATTRis used explicitly inesppwm.cto place certain functions into.irom0.text(i.e.irom0_0_seg) because by default everything in that file is going intoiram1_0_seg. When you undefine that macro, everything in that file now goes toiram1_0_seg, overflowing it.