Skip to main content
Aarra.1
Associate III
December 1, 2021
Solved

How to use printf and scanf using uart for stm32h7 boards

  • December 1, 2021
  • 6 replies
  • 4819 views

Hello,

I have been using the stm32h757i-eval board for a while. And I want to redirect the printf and scanf functions to the uart. I have referred the forum for the solution but couldn't find any helpful answers . I'm using stm32 cube ide (1.7.0).

Kindly help me to perform the same.

This topic has been closed for replies.
Best answer by Javier1

i guess you already tried this https://shawnhymel.com/1873/how-to-use-printf-on-stm32/

I never used a H7 board , i guess you issues come from having two M4 and M7 cores?

6 replies

Javier1
Javier1Best answer
Principal
December 1, 2021

i guess you already tried this https://shawnhymel.com/1873/how-to-use-printf-on-stm32/

I never used a H7 board , i guess you issues come from having two M4 and M7 cores?

hit me up in https://www.linkedin.com/in/javiermuñoz/
Aarra.1
Aarra.1Author
Associate III
December 1, 2021

Thank you so much for your response @Javier Muñoz​ 

This article helps alot!

Michael E
ST Technical Moderator
December 3, 2021

Hello @Aarra.1​ , you can also try with the STM32 step by step on the wiki.

The Step 3 explain how to print a debug message through UART.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.