You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Esp32c6 on build get some error like dmxTest/dmxTest/components/esp_dmx/src/dmx/hal/uart.c:346:5: error: 'LP_CLKRST' undeclared (first use in this function)
The text was updated successfully, but these errors were encountered:
Ensure you have the latest esp_dmx vs 4.1 with the fix:
#158
and also the latest ESP-IDF > = 5.3
This was a uart.c change for the C6 with the 3rd UART being a LP UART
Ensure you upgrade to the latest esp-idf, mine is 5.3
There have been a lot of changes in the recent esp-idf from 5.1 onwards for the support for the LP UARTS, hence all the changes
This is the code that is flagging the issue:
#if CONFIG_IDF_TARGET_ESP32C6
// UART2 on C6 is a LP UART, with fixed GPIO pins for tx, rx, and rts
if (dmx_num == 2) {
LP_CLKRST.lpperi.lp_uart_clk_sel = 0; // Use LP_UART_SCLK_LP_FAST
} else {
uart_ll_set_sclk(uart->dev, UART_SCLK_DEFAULT);
}
uart_get_sclk_freq(UART_SCLK_DEFAULT, &sclk_freq);
#else
Esp32c6 on build get some error like dmxTest/dmxTest/components/esp_dmx/src/dmx/hal/uart.c:346:5: error: 'LP_CLKRST' undeclared (first use in this function)
The text was updated successfully, but these errors were encountered: