cancel
Showing results for 
Search instead for 
Did you mean: 

UART never in ready state for transmit function

Raahul Jagannathan
Associate II
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?

2 REPLIES 2
Posted on June 19, 2018 at 07:51

Rather than play these guess what's wrong games, show the code and it might be more apparent.

Make sure not to miss MSP code, or IRQ handlers

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 19, 2018 at 07:55

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6vm&d=%2Fa%2F0X0000000by9%2FytxXC73dQZyn3xtU.S5iwceLN8Y1NqQWq5T2SuP.rTc&asPdf=false