cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-U575: Not getting serial output data with DMA

nehaEmerson-123
Visitor

I am using STM32U575 Nucleo development board and I am trying to configure DMA through STMCube IDE. I have configured the DMA and generated code through it. Added required code but I am not getting data on serial through DMA. Is there any alternate way to get data on serial using DMA?

7 REPLIES 7
TDK
Super User

Maybe there is no data coming in.

Maybe the DMA can't access the memory where the buffer is.

Maybe you haven't called the function to read the data.

 

I suggest following an existing example or showing your code.

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

Welcome to the forum.

For best results, see How to write your question to maximize your chances to find a solution.

 


@nehaEmerson-123 wrote:

 I am not getting data on serial through DMA


How are you testing that?

Before adding the complications of DMA, have you got it working using just a basic HAL_UART_Transmit ?

 

You should find examples of UART comms with & without DMA via Cube MX

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

From where I can get existing example?

Yes I was able to get using basic HAL_UART_Transmit.

I will check the examples. Thanks @Andrew Neil.

Using the Example Selector in STM32CubeMX is probably the easiest way. Here is a relevant example:

TDK_0-1768325553374.png

 

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

Thanks @TDK.