Skip to main content
Associate III
November 25, 2024
Solved

How to redirect printf to a UART on stm32f429i-disc1

  • November 25, 2024
  • 3 replies
  • 2046 views

how to use printf in stm32f429i-disc1?

Best answer by mƎALLEm

+ You asked the same question in this thread: https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/td-p/733254

And I provided you a project on which printf is used on stm32f429i board.

So the question is, are you reading our posts/comments?

3 replies

Andrew Neil
Super User
November 25, 2024

You posted this as a reply to the Knowledgebase article:

https://community.st.com/t5/stm32-mcus/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages/ta-p/49865

Have you actually read that article?

As noted here:

The first thing you need to do is to get basic, direct UART output working:

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_UART

 

You need to get that done before you start thinking about redirecting printf to it!

See also:

https://community.st.com/t5/stm32-mcus-embedded-software/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages/m-p/740284/highlight/true#M56711

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
Technical Moderator
November 25, 2024
"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."
mƎALLEm
mƎALLEmBest answer
Technical Moderator
November 25, 2024

+ You asked the same question in this thread: https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/td-p/733254

And I provided you a project on which printf is used on stm32f429i board.

So the question is, are you reading our posts/comments?

"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."
Andrew Neil
Super User
November 25, 2024

@mƎALLEm wrote:

I provided you a project on which printf is used on stm32f429i board.


@syedhashmiraza you even marked that as The Solution!

 

And that thread has already covered the importance of getting basic, direct UART output working first.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.