I'm hitting some crashes when I write to SPI, so I suspect that I'm calling some FLASH-based functions in an ISR. Is there some list of functions that are called by ISRs?
ISR functions:
- HW timer callbacks
- GPIO ISR callbacks (using ETS_GPIO_INTR_ATTACH())
- UART ISR callbacks (using ETS_UART_INTR_ATTACH())
Non-ISR functions
- SW timer callbacks
- espconn callbacks
- Posted tasks (using system_os_task and system_os_post)
Anyone else want to add to this list?
Functions called from ISRs
Re: Functions called from ISRs
Postby pratik » Sun Nov 27, 2016 1:28 pm
Timer ISRs are the ones where you have to be careful!
If you suspect that you're hitting something somewhere, use IRAM_ATTR marked functions in RTOS SDK. In nonOS SDK, just don't add ICACHE_FLASH_ATTR, which defaults it to iRAM.
If you suspect that you're hitting something somewhere, use IRAM_ATTR marked functions in RTOS SDK. In nonOS SDK, just don't add ICACHE_FLASH_ATTR, which defaults it to iRAM.
Who is online
Users browsing this forum: No registered users and 58 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
-
- All times are UTC+08:00
- Top
- Delete all board cookies
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.