使用DMA接收STM32F407或STM32L476的USB OTG数据?

huangapple go评论46阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月5日 14:49:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/76404066.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定