HAL_UART_Transmit_DMA() cannot send 2 as second shows busy
I have the following code:
HAL_UART_Transmit_DMA(Outgoinghuart, (uint8_t *)message, sizeOfMessage);
delay(10000);
HAL_UART_Transmit_DMA(Outgoinghuart, (uint8_t *)message, sizeOfMessage);The second DMA transmit is always busy, no matter how big the delay. (I checked the delay function is 100% working on the scope)
I have tried using:
/*##-3- Wait for the end of the transfer ###################################*/
while (UartReady != SET)
{
}
/* Reset transmission flag */
UartReady = RESET;and tried everything else in that GitHub example. It doesn't make any difference the gState
is always busy after the first transfer.
It works 100% if I use HAL_UART_Transmit().
Any ideas would be great (I have scanned every forum post on this and none of them work)
Even ideas on diagnosing the issue would be great! Thanks =)
