gpio interrupt fail after wifi enable
Posted: Sun Mar 03, 2019 10:47 am
I'm new to ESP32-IDF.
I wrote a DHT11 driver using GPIO interrupt for edge timing measurement. ANYEDGE interrupt occurs every 25us, 54us, or 70us, and esp_timer_get_time is used in interrupt to time data.
After 80 ISR done, Interrupt is disable, and my code starts to process the timing data in a FreeRTOS task handler.
This parts works well in expectation.
HOWEVER, after I turning on WIFI, i cannot get 80 interrupts anymore (maybe even none of it).
I tried to assign CPU 1 to driver task with xTaskCreatePinnedToCore, but no luck.
any suggestion to debug? any best practice to use ESP32-IDF?
I wrote a DHT11 driver using GPIO interrupt for edge timing measurement. ANYEDGE interrupt occurs every 25us, 54us, or 70us, and esp_timer_get_time is used in interrupt to time data.
After 80 ISR done, Interrupt is disable, and my code starts to process the timing data in a FreeRTOS task handler.
This parts works well in expectation.
HOWEVER, after I turning on WIFI, i cannot get 80 interrupts anymore (maybe even none of it).
I tried to assign CPU 1 to driver task with xTaskCreatePinnedToCore, but no luck.
any suggestion to debug? any best practice to use ESP32-IDF?