cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429 HAL_UART_Receive_DMA problems

fb2
Associate II
Posted on November 25, 2015 at 19:08

Hello,

I have an issue to which I cant find a solution.

I'm working with different UARTs, and I find a problem. If I use them using HAL_UART_Receive_IT, everything works ok, HAL_UART_RxCpltCallback is called, etc etc.

But when using HAL_UART_Receive_DMA, some UARTs work (ie UART5), but some others dont work, and I cant figure out why (ie: UART6, UART7).

Does anyone know something about this issue?

Thank you very much.

Fernando

#stm32-uart-dma
2 REPLIES 2
Posted on November 25, 2015 at 23:20

I have some example projects that demonstrate using CubeMX with Coocox's CoIDE free development environment.  One of them is specifically targeted at using all of the UARTs with DMA.  you should be able to fins it here:

https://www.dropbox.com/sh/yg4iy7h6xmca7lk/AACouu73L44JaYNdtgqSV0pna?dl=0

In my examples I run the receive DMA in circular buffer mode and extract data from the buffer, comparing pointers.  Perhaps this will help.

Best of luck

fb2
Associate II
Posted on November 26, 2015 at 12:05

Thank you very much Aaron!

I will try and see whats my problem... I beleive that my problem has to be something related to certain flags not been cleared before starting the DMA RX call... because this problem happens in UARTs where the other side of the UART sends data all the time, even before I start the DMA call... what do you think?

Thank you again, I will check this later.

Fernando