Question
UART never in ready state for transmit function
Posted on June 19, 2018 at 07:41
I am trying to include UART into a sample program without using cubeMX. To my knowledge I have added everything it needs, but when I get to the transmit command, it checks the statement:
huart->gState == HAL_UART_STATE_READY
which is always false. It then goes into the else part of the execution, which returns that HAL is busy. What must I include for it to be in the ready state?
