ESP32C6 stuck in uart_ll_update

floitsch_toit
Posts: 43
Joined: Wed Jun 29, 2022 4:25 pm
Location: Aarhus, Denmark
Contact:

ESP32C6 stuck in uart_ll_update

Postby floitsch_toit » Sun Oct 26, 2025 10:03 pm

A few years ago we wrote our own UART driver which does some low-level HAL calls (like `uart_hal_X...`).
Our driver uses the deprecated `driver/periph_ctrl.h` and we will have to rewrite it, but until the rewrite is finished we would like to continue using the driver for the C6 as well.

My suspicion is that some clock isn't running which makes the while-loop go infinite.

Code: Select all

FORCE_INLINE_ATTR void uart_ll_update(uart_dev_t *hw)
{
    hw->reg_update.reg_update = 1;
    while (hw->reg_update.reg_update);
}
Does anyone know what I can do to get this working?

The most similar issues I could find are:
- https://github.com/espressif/esp-idf/issues/14792
- https://github.com/espressif/esp-idf/issues/17723

Who is online

Users browsing this forum: Amazon [Bot] and 6 guests