UHCI- Uart DMA

eng.m_mahmoud
Posts: 4
Joined: Mon Apr 27, 2020 8:32 pm

UHCI- Uart DMA

Postby eng.m_mahmoud » Mon Apr 27, 2020 8:53 pm

Hello Team Support and esp32 developers,

Can you provide me with a sample code or a driver library for using the UART for Tx and Rx over the DMA (uhci).!
The uhci driver is still not available in esp-idf, but I found before post about some one who had contact the support team for the uhci and sample code and they sent it to him which runs OK for him as he stated.
please, I need this uart dma library and sample code.

Thanks,

eng.m_mahmoud
Posts: 4
Joined: Mon Apr 27, 2020 8:32 pm

Re: UHCI- Uart DMA

Postby eng.m_mahmoud » Tue May 05, 2020 6:59 pm

Hello guys,

any help or support ?! :?:

ESP_houwenxiang
Posts: 118
Joined: Tue Jun 26, 2018 3:09 am

Re: UHCI- Uart DMA

Postby ESP_houwenxiang » Fri May 29, 2020 2:18 am

Hi, @eng.m_mahmoud
This is the UHCI example, but please know that this is just an example, it may be unstable. you can refer to it and rewrite your own driver
thanks !!
Attachments
uhci_test.tar.gz
(19.2 KiB) Downloaded 804 times
wookooho

moefear85
Posts: 41
Joined: Sun Sep 05, 2021 4:55 pm

Re: UHCI- Uart DMA

Postby moefear85 » Fri Jul 15, 2022 9:30 pm

Dear ESP,

by "unstable", do you mean that the open source implementation of hal functions can be unstable (where using the registers directly could still result in stable functionality if coded right), or do you mean there is silicon errata that would make dma uart access inherently unstable/unreliable?

it is not clear to me if currently known dport/ahb/apb issues or uart errata only apply to esp32 rev 1, or also esp32 rev 3, and possibly also to s2 , s3, or even c3 chips?

masoudshahrabi
Posts: 1
Joined: Mon Oct 17, 2022 5:51 am

Re: UHCI- Uart DMA

Postby masoudshahrabi » Mon Oct 17, 2022 5:56 am

@ESP_houwenxiang the file is damaged. Could you provide a new one?
Last edited by masoudshahrabi on Sat Oct 29, 2022 8:02 am, edited 1 time in total.

Serdar
Posts: 17
Joined: Fri Sep 02, 2022 7:33 pm

Re: UHCI- Uart DMA

Postby Serdar » Thu Oct 20, 2022 2:14 pm

Hi, I tried to make the same example for esp32-s3.
As far as I can see, some of the UHCI register features are transferred to the GDMA registers.

*Do we have a better choice than register-level programming to use DMA for UART?
*Or is there a sample code for esp32-s3?
*And finally, is there an ESP_IDF API that uses the UART DMA feature?

Thank you for your time, and have a nice day!

jstoefer
Posts: 3
Joined: Tue Nov 27, 2018 4:02 pm

Re: UHCI- Uart DMA

Postby jstoefer » Wed Nov 02, 2022 4:39 pm

Hi,

We need esp32-s3 uart with dma here as well.
So my questions are:

* Can the uhci_test code you posted be used with esp32-s3, too ?
* What does the normal uart driver do under the hood ?
(Maybe the driver already employs dma ?)

Best Regards,
jstoefer

Who is online

Users browsing this forum: Google [Bot] and 135 guests