2014-09-11 08:24 AM
Dear Friends,
Hi,I want to get an interrupt by receiving each character on UART port. How can I use HAL_UART_Receive_IT() and HAL_UART_RxCpltCallback() functions? When I call HAL_UART_Receive_IT() function its call USART1_IRQHandler I want to know is it a
correct approach
to call HAL_UART_Receive_IT() function before each receiving character?
Thanks. #stm32cube-interrupt-uart
2015-12-15 02:29 AM
Hi HankB,
thank you for your help. I have found online that example but interrupts configuration code wasn't available. Do you or someone else know where I could find it?Thanks again.Cel2016-01-07 03:27 AM
Thank you Mas.sam for your suggestions.
Cel2016-11-30 02:38 PM
Hello,
I followed your steps for UART2, but it didn't work. I am using STM32F072RB eval board. I got the UART1 working using HAL_UART_Receive_IT and HAL_UART_RxCpltCallback. I added code for UART2 the same way I did for UART1. When I send data on the UART2 Rx pin, the callback is not getting triggered. I have no idea why? Everything is same as the UART1.