cancel
Showing results for 
Search instead for 
Did you mean: 

uart delay

giwonKIM
Associate III

 

Hello

Do I need delay when I use HAL_UART_Transmit multiple times?

How much do I need if I need it?

Thank you.

1 REPLY 1
TDK
Guru

HAL_UART_Transmit is blocking, which means it will not return until the transmission is done. There is no need to wait between calls.

HAL_UART_Transmit_IT and HAL_UART_Transmit_DMA happen asynchronously. You will need to wait for the transmission to complete and the state to return to ready before calling them again. Calling them too soon will result in them returning HAL_BUSY.

If you feel a post has answered your question, please click "Accept as Solution".