STM32F411 uart asynch
Hi,
I am following STM32F411RE-Nucleo example for UART_HyperTerminal_IT.
My first TX_IT works great. The problem is in the second call to
HAL_UART_Transmit_IT()
which fails on
if(huart->gState == HAL_UART_STATE_READY)
So I looked on the code to see where huart->gState is set to HAL_UART_STATE_READY. I saw that it is called in
UART_EndTransmit_IT()
The problem is that this API is not being called. So what I did is setting
huart->gState = HAL_UART_STATE_READY
in
USART_CharTransmitComplete_Callback
is this the right way? Am I missing anything here?
Thanks,
#asynchronous #uart