cancel
Showing results for 
Search instead for 
Did you mean: 

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

load2005
Associate III
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,

1 ACCEPTED SOLUTION

Accepted Solutions
Tilen MAJERLE
ST Employee
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

View solution in original post

2 REPLIES 2
Tilen MAJERLE
ST Employee
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
Associate III
Posted on August 18, 2017 at 07:49

thanks,

i was thinking that this should be implemented in CubeMX.