2023-05-07 07:03 AM
2023-05-07 08:33 AM
Yes, that's the way to do. If you work with HAL, you define your own HAL_UART_RxCpltCallback which overrides the weak "do nothing" callback in HAL. Alternatively, you find the native interrupt handlers like USART2_IRQHandler in a generated *_it.c file.
hth
KnarfB
2023-05-07 08:47 AM
You have ALL the source, you can implement it any way you want.
Most STM32 interrupt on every received character.
You don't need to call into the HAL call-back mechanics.