Skip to main content
Visitor II
November 21, 2025
Question

Why is HAL_UART_Receive_IT not triggering the callback function on STM32F103?

  • November 21, 2025
  • 3 replies
  • 239 views

I’m using HAL_UART_Receive_IT() on an STM32F103 to receive serial data asynchronously. The UART initialization appears correct, and I can send data successfully, but the HAL_UART_RxCpltCallback() function never gets triggered. I’ve confirmed the interrupt is enabled in NVIC and the buffer size is correct.

Is there something I might be missing in configuration or code structure that prevents the callback from firing?
Any sample code or debugging steps would be greatly appreciated. Thanks!

    This topic has been closed for replies.

    3 replies

    Explorer
    November 21, 2025

    What UART interrupts do you configure, and do they fire ?
    Assuming RxNE, set a corresponding breakpoint in the interrupt handler.

    Do you see any signal on the Rx pin when the other side transmits ?

    Super User
    November 21, 2025

    Welcome to the forum.

    Please see How to write your question to maximize your chances to find a solution for best results.

     


    @timdavid0812 wrote:

    Is there something I might be missing 


    We can't see your code, so we can't say what might be missing or incorrect!

    See: How to insert source code.

    Technical Moderator
    November 21, 2025