cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect Printf and Scanf to interrrupt driven UART

David_
Senior

This example work perfectly using non interrupt driven UART HAL library, HAL_UART_Receive and HAL_UART_Transmit

Any idea on changing to HAL_UART_Receive_IT and HAL_UART_Transmit_IT?

Many thanks

 

https://forum.digikey.com/t/easily-use-scanf-on-stm32/21103

1 REPLY 1

Use ring buffers to hold the data and service the interrupts. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..