英文:
Receiving data over STM32F407 or STM32L476's USB OTG using DMA?
问题
我正在进行一个项目,需要使用DMA通过USB OTG接收数据,但我找不到任何与之相关的通道链接。我已经配置了DMA,但我不知道要将哪个通道与之链接(__HAL_LINKDMA(HANDLE, PPP_DMA_FIELD, DMA_HANDLE)),请有人帮助我....
问候,
Waqas A
英文:
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
答案1
得分: 1
USB HS 外设已经是总线主控。实际上,它内置了 DMA,因此不需要使用通用 DMA。
在各自的 Cube 包中有示例。例如:对于 STM32F4xx,请参见 STM32CubeF4。
英文:
The USB HS peripheral is already a bus master. Effectively it has the DMA built in so it doesn't need to use the general purpose DMA.
There are examples in the respective Cube package. Eg: for STM32F4xx, see STM32CubeF4.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论