cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-H753ZI: Stuck Waiting For Flag Timeout Reading Serial Data In Interrupt

I0nizer
Associate II

Hello,

I am working with the NUCLEO-H753ZI board and currently trying to work with one of the USART peripherals configured to get LIN working. I am trying to set up the communications in such a way that the messages will be read when receiving a message from another board. However, I have not been able to get success with this. I know that the HAL_UART_Receive_IT() function must be called after each triggering of the interrupt so that the next message may cause an interrupt. However, this does not save the message data to the array passed into the function.

 

I tried also placing in the HAL_UART_Receive() function into the interrupt to try and use that to save the data, but that will stick my code into the UART_WaitOnFlagUntilTimeout() forever. Is there anything I am misunderstanding about the purpose of these functions? I also wish to mention that my current test setup involves another board constantly sending LIN messages to the receiving board.

 

Thanks & Regards

0 REPLIES 0