For all of the timers i have an alarm interrupt enabled declared this way
Code: Select all
static bool IRAM_ATTR x_timer_callback(gptimer_handle_t timer, const gptimer_alarm_event_data_t *edata, void *args)
{
...
return high_task_awoken == pdTRUE;
}
if all 4 interrupts are installed using
Code: Select all
gptimer_event_callbacks_t cbs = {.on_alarm = &x_timer_callback,};
ESP_ERROR_CHECK(gptimer_register_event_callbacks(x_timer, &cbs, NULL));
I hit this error when console is initialized
E (11:53:42.405) uart: uart_driver_install(1614): Could not allocate an interrupt for UART
If i comment out the call of gptimer_register_callbacks() the uart is working.
Is there any coflict or limitation which prevents using uart console and 4 gptimers at the same time?
My environment is using ESP32 - WROOM32 dev board and esp-idf 5.1.2