Chat freely about anything...

User avatar
By eriksl
#24563 I agree with that partially.

- if you're going to place all functions from .text in .irom.text, you'd be easier off making a few changes in de load script ;
- but actually you don't want that as it makes several sdk functions also end up in .irom.text while they can only run in iram -> crash
- you may have functions yourself that can only run in iram

My suggestion: #define your own irom __attribute__(__section__,.irom.text)) so you don't have to type and read that ugly ICACHE_FLASH_ATTR that also doesn't make sense anyway. Then define an empty iram and you're done, now you can never forget to place a function in irom because it either has irom or iram in front of it.