AnsweredAssumed Answered

STM32F411 uart asynch

Question asked by Yasso.Eran.002 on Apr 2, 2017
Latest reply on Apr 3, 2017 by Guenael Cadier

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,

Outcomes