Skip to main content
SKris.13
Associate
July 2, 2019
Question

Error in UART Reception

  • July 2, 2019
  • 2 replies
  • 811 views

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.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
July 2, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
SKris.13
SKris.13Author
Associate
July 25, 2019

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