cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32h745zi UART DMA issue

Navaneeth kumar
Associate III

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).

4 REPLIES 4

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
Up vote any posts that you find helpful, it shows what's working..

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 

TDK
Guru

Should be several examples to choose from. Here is one:

https://github.com/STMicroelectronics/STM32CubeH7/blob/c94252df7cec24a8fef67b28933353476a1edd3c/Projects/STM32H7B3I-EVAL/Examples/UART/UART_HyperTerminal_DMA/Src/main.c

If you feel a post has answered your question, please click "Accept as Solution".

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..