Skip to main content
load2005
Associate III
August 17, 2017
Solved

How can i enable UART data registry not empty interrupt in Cube MX (UART_IT_RXNE)?

  • August 17, 2017
  • 2 replies
  • 1041 views
Posted on August 17, 2017 at 09:10

Hello,

I'm using the last version of Cube MX. 4.21.

I am using STM32F410RBT6 processor. I can't find in the CUbeMX graphical user interface how to enable UART data registry not empty interrupt. I have only found that there is a flash enable USART global interrupt in the NVIC controller settings. Maybe i miss something.

Thanks in advance,

    This topic has been closed for replies.
    Best answer by Tilen MAJERLE
    Posted on August 17, 2017 at 11:32

    Hello

    ‌,

    you can manually enable RXNE interrupt using approach below:

    __HAL_UART_ENABLE_IT(&huart, UART_IT_RXNE);�?�?�?

    If you will useHAL_UART_Receive_IT, function will automatically enable RXNE interrupt on UART.

    Best regards,

    Tilen

    2 replies

    Tilen MAJERLE
    Tilen MAJERLEBest answer
    ST Employee
    August 17, 2017
    Posted on August 17, 2017 at 11:32

    Hello

    ‌,

    you can manually enable RXNE interrupt using approach below:

    __HAL_UART_ENABLE_IT(&huart, UART_IT_RXNE);�?�?�?

    If you will useHAL_UART_Receive_IT, function will automatically enable RXNE interrupt on UART.

    Best regards,

    Tilen

    load2005
    load2005Author
    Associate III
    August 18, 2017
    Posted on August 18, 2017 at 07:49

    thanks,

    i was thinking that this should be implemented in CubeMX.