Page 1 of 1

Timer Groups issue

Posted: Fri May 17, 2019 12:50 pm
by vgonet
Hello

I try to use timer groups in my project and I have strange behaviors (I2C that crashes, program that crashes)...

Currently ISR are registred in my code in this way. Is this the right way to do it or should another interruption priority be used?

Code: Select all

if (timerNum == TIMER_GROUP_0) 
    { 
      timer_isr_register(TIMER_GROUP_0, timerIndex, ISR_TimerGroup0, 
                         (void*) timerIndex, ESP_INTR_FLAG_IRAM, NULL); 
    } 
    else 
    { 
      timer_isr_register(TIMER_GROUP_1, timerIndex, ISR_TimerGroup1, 
                         (void*) timerIndex, ESP_INTR_FLAG_IRAM, NULL); 
    } 


Are timer groups used by the following libraries?
- WIFI
- FreeRTOS
- High Resolution Timers
- MCPWM
- SPI
- I2C
- UART

If so, which ones?

Thank you and best regards,
Vincent