cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube HAL_UART_Transmit_DMA strange behaviour

jesper
Associate II
Posted on January 27, 2015 at 21:17

I have built a system using STM32CubeMX 4.5 and STM32Cube v1.1.0 for a F072 CPU.

I just started implementing the UART parts. I want to run using DMA, but I can't get it to work.

A call like

HAL_UART_Transmit_DMA( &huart3, string, size )

always outputs

size

characters of

string[0]

. In other words, the correct number of characters are transmitted, but they are all repeats of the first character in the string.

If I use the blocking version of the call (without

_DMA

but with a timeout) all is fine and the output is correct.

...any pointers???
3 REPLIES 3
Posted on January 27, 2015 at 22:14

Did you configure the DMA controller to autoincrement the memory pointer?

kudiarasum
Associate II
Posted on December 22, 2015 at 11:47

Hi,

I too facing same issue, did you solved the issue?

Posted on December 22, 2015 at 18:56

Hi murugesan.kudiarasu,

Which version of STM32CubeMx and STM32 firmware package are you using?

Did you enable the DMA IRQ handler (HAL_DMA_IRQHandler() )?

-Shahrzad-