AnsweredAssumed Answered

HAL UART transfer with DMA keeps busy

Question asked by Lukasz Przenioslo on Sep 29, 2015
Latest reply on Sep 30, 2015 by Lukasz Przenioslo
Hello there,
I am trying to write a logger application using uart4 and DMA on STM32F4 discovery. I am usinh HAL lib and I can send through uart using regular transfer funtion without problem:
HAL_UART_Transmit(&huart4, "mama_", 5, 1000);

But when I try to use the DMA version:
HAL_UART_Transmit_DMA(&huart4, "mama_", 5);

I can only send the message once, because after that this function returns status "HAL_UART_STATE_BUSY".
I am trying to send this message every 1 second. Why is DMA bussy in this time?

I have generated my config code using Cube software and when looking at the Hyperterminal examples its pretty similar. What am I doing wrong or what did i forget? I would apreciate all help.

Outcomes