Skip to main content
Navaneeth kumar
Associate II
March 18, 2022
Question

Stm32h745zi UART DMA issue

  • March 18, 2022
  • 4 replies
  • 949 views

Hi,

I am using stm32h745zi controller in my custom board. I want to use uart in DMA mode.

When i send data through uart i got an interrupt only for first time. How can i get Interrupt everytime. and how to use uart DMA in both cores(Both tx and Rx).

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
March 18, 2022

Watch what memory is being used, and whether the DMA is issuing a fault.

Perhaps use a debugger understand what​ state the UART and DMA are in, and what your code is doing.

See no code here.

Usually you'd pick one core to manage this, you should probably master using one before complicating things with ownership issues.

With DMA on M7 understand cache coherency issues.

The MCU is partitioned in a way that suggests using the M4 core for IO operation.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Navaneeth kumar
Associate II
March 18, 2022

Thanks for the reply,

Can u share the Uart DMA code with continous interrupt.

when i send data using HAL_UART_Transmit_DMA() i am getting interrupt for the first time but not for everytime .

you can see my code in below attachment.

0693W00000KdADNQA3.png 

0693W00000KdADhQAN.png 

Tesla DeLorean
Guru
March 18, 2022

You can't cast a character to a pointer like that.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TDK
March 18, 2022
"If you feel a post has answered your question, please click ""Accept as Solution""."