cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_UART_RxCpltCallback not getting triggered when getting large data from USART

BadEngineer
Associate II

My interrupt is able to be triggered when my variable SIZE_OF_ARRAY is 10. However i want to be listening for large amounts of data so i change it to 1000 and my HAL_UART_RxCpltCallback function doesn't get called. 

Any idea why this is? I am using STM32U575ZITxQ. I have attached my main file to this post 

 

 

1 REPLY 1
TDK
Guru

Probably it just hasn't received 1000 characters yet. It won't call the callback until it received the full buffer.

If you want to get a callback after every transmission when the line goes idle, use HAL_UARTEx_ReceiveToIdle instead.

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