Skip to main content
Raahul Jagannathan
Associate III
June 19, 2018
Question

UART never in ready state for transmit function

  • June 19, 2018
  • 1 reply
  • 616 views
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?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 19, 2018
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Raahul Jagannathan
    Associate III
    June 19, 2018
    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