Skip to main content
NPal.2
Associate III
August 27, 2021
Solved

DMA for USART

  • August 27, 2021
  • 2 replies
  • 1479 views

Hi all,

I am trying assign DMA to USART3 channel on STM32MP1.

I assigned it appropriately in the CubeMX but it looks like it was not able to auto-generate any code regarding the DMA assignment to the USART3.

The device-tree bindings look pretty confusing to me. How can I assign it correctly?

I checked option use MDMA in the CubeMX and I can see a mdma block generated which is empty. So any directions on how to assign dma to USART3 will be really helpful and appreicated.

Thanks.

This topic has been closed for replies.
Best answer by PatrickF

I'm not Linux expert, but I understand the DMA channels assignment and configuration is not done statically at DT level but rather in your application.

See https://wiki.st.com/stm32mpu/wiki/Dmaengine_overview

At DT level, DMA1 (usually) will just be define as 'okay' to assign it on Linux side.

MDMA is not used directly, except for USART1 in secure mode (OpTEE)

Regards.

2 replies

PatrickF
Technical Moderator
August 27, 2021

Hi,

please precise in which context you are requesting DMA with USART3. Is it for Cortex-M4 code generation with CubeMX ?

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
NPal.2
NPal.2Author
Associate III
August 27, 2021

Hi @PatrickF​  I am trying to use the USART3 in A7 context.

PatrickF
PatrickFBest answer
Technical Moderator
August 27, 2021

I'm not Linux expert, but I understand the DMA channels assignment and configuration is not done statically at DT level but rather in your application.

See https://wiki.st.com/stm32mpu/wiki/Dmaengine_overview

At DT level, DMA1 (usually) will just be define as 'okay' to assign it on Linux side.

MDMA is not used directly, except for USART1 in secure mode (OpTEE)

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
Olivier GALLIEN
Technical Moderator
October 13, 2021

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.