cancel
Showing results for 
Search instead for 
Did you mean: 

Error in UART Reception

SKris.13
Associate

We are using STM32F401RE for our people counting project. We need to receive a value using UART reception and tried several methods. For transmitting we are using printf() function, for reception we have tried with HAL_UART_Receive() api but it didn't work. For reception, if we want to use scanf(), what changes we need to do? We are attaching the project file.

2 REPLIES 2

You'd likely need to implement an fgetc() function, and address the potential issue with the polled HAL USART functions blocking.

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

Since I am new to ST programming, Can you please explain how to implement an fgetc() function using HAL USART functions.