2019-01-22 03:25 PM
We are using the NUCLEO-F091RC and need help establishing a working demo of a USART-Rx interrupt. We have put much effort into this with no success, here is the process we are at:
Demo Attempt Process:
Source Code: (GitHub)
This is not working for Rx, what is missing here?
2019-01-22 11:43 PM
If you want to use HAL, then you don't interact with the USART interrupt directly, you use the *_IT (IT = interrupt) family of functions, for example HAL_UART_Transmit_IT, which will do the work using interrupts.
Otherwise, use the LL drivers (you can configure Cube to generate code with LL drivers instead of HAL) or CMSIS. [Click Show More]
There are many examples available in Cube repository for the LL driver and in STM32Snippets for CMSIS.
Repository - under STM32Cube_FW_F0_V1.9.0\Projects\STM32F072RB-Nucleo\Examples_LL\USART