Skip to main content
Viki
Associate II
Jun 5, 2023 6:49 AM UTC
Question

Receiving data over STM32F407 or STM32L476's USB OTG using DMA?

Hello!

I am working on a project and I need to receive data over USB OTG using DMA, but I could not find any channel link to it. I have configured DMA but I don't know which channel to link with it ( __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__), somebody help me please....

Regards,

Waqas A

This topic has been closed for replies.

4 replies

mohamed.ayed
ST Employee
Jun 6, 2023 10:44 AM UTC

Hi @Viki

Could you please provide more details Device/Host which MCU are you using?

Best Regards,

Mohamed

Viki
VikiAuthor
Associate II
Jun 9, 2023 3:45 AM UTC

Hello

Viki
VikiAuthor
Associate II
Jun 9, 2023 3:46 AM UTC

I mistakenly typed my comment in the answer section.

Viki
VikiAuthor
Associate II
Jun 9, 2023 3:38 AM UTC

Thank you for the response. I am using STM32F4 Discovery and STM32L476RG Nucleo, USB CDC on both. I want to receive data from PC over CDC using DMA but I could not find any resources.