UART DMA Channel UHCI_NUM_1 is not working for any UART

RajaniSureja
Posts: 2
Joined: Wed Sep 12, 2018 9:09 am

UART DMA Channel UHCI_NUM_1 is not working for any UART

Postby RajaniSureja » Wed Sep 12, 2018 11:10 am

Hi Support Team,

We are using ESP32 IDF version 2.1 and want to use UART DMA. here in this IDFversion 2.1 not provided support for UART DMA. So in earlier discussion with support team we got some sample code for UART DMA. here attached received uhci.tar.gz file from support team.

In ESP32 Technical Reference Manual version 3.7 chapter 6.4 given information like ESP32 has three UART interfaces that share two UDMA (UART DMA) controllers.

here in this example it use channel UHCI_NUM_0 and its working fine for UART0 . So we have ported given driver files in our driver library of ESP32 IDFversion 2.1.

But if i use channel UHCI_NUM_1 for UART0 then example code not working. So can you please help me on this?

Is ESP32 IDF version 2.1 + added supported driver file has support for UART DMA with UHCI_NUM_1?

what should i do for using UHCI_NUM_1 for UART0 or any other UART?
Attachments
uhci.tar.gz
sample code received by esp support team
(5.26 KiB) Downloaded 536 times

L_Stout
Posts: 2
Joined: Tue Nov 25, 2025 9:45 am

Re: UART DMA Channel UHCI_NUM_1 is not working for any UART

Postby L_Stout » Tue Nov 25, 2025 9:49 am

Hello,

many years later, i am facing the same issue. Did you fix it ?

L_Stout
Posts: 2
Joined: Tue Nov 25, 2025 9:45 am

Re: UART DMA Channel UHCI_NUM_1 is not working for any UART

Postby L_Stout » Wed Nov 26, 2025 2:02 pm

For information i found the problem:
in esp_err_t uhci_config(uhci_config_t *config)

replace the line
periph_module_enable(PERIPH_UHCI0_MODULE);
by
periph_module_enable(uhci_num==0?PERIPH_UHCI0_MODULE:PERIPH_UHCI1_MODULE);

Who is online

Users browsing this forum: Applebot, ChatGPT-User, PetalBot and 10 guests