Question
HAL_UART_Receive doesn't block execution
Helllo,
I'm working on the NUCLEO-F722ZE EVB.
I want my code to wait for a character to be received from UART 3 and do nothing.
This is what I wrote:
unibt8_t received_character = 0 ;
HAL_UART_Receive(&huart3, received_character, 1,1000) ;From what I understand "HAL_UART_Receive" is a blocking function so it should block the code execution until a character is received. But for some reason my code doesn't stop and proceeds to the next line although no data was sent to the UART.
What am I doing wrong ?