cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 use scanf with usart

VYoun
Associate III

Hello,

There is an example to use printf with usart. However, I need to find a way to use scanf with usart. I am using STM32H7, STM32Cubemx, and Atollic Truestudio.

Your help is much appreciated.

10 REPLIES 10

I didn't know what else to try to get scanf to work in my program until I found your answer and it works correctly.

Thank you very much.