Skip to main content
Visitor II
August 5, 2024
Question

HAL_UART_RxCpltCallback not getting triggered when getting large data from USART

  • August 5, 2024
  • 1 reply
  • 763 views

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 

 

 

    This topic has been closed for replies.

    1 reply

    Super User
    August 5, 2024

    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.