Skip to main content
Associate III
Nov 25, 2024 11:35 AM UTC
Solved

How to redirect printf to a UART on stm32f429i-disc1

how to use printf in stm32f429i-disc1?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Nov 25, 2024 11:51 AM UTC

+ 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 "Best answer" on the reply which solved your issue or answered your question.

4 replies

Andrew Neil
Super User
Nov 25, 2024 11:41 AM UTC

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
ST Technical Moderator
Nov 25, 2024 11:43 AM UTC
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Nov 25, 2024 11:51 AM UTC

+ 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 "Best answer" on the reply which solved your issue or answered your question.
Andrew Neil
Super User
Nov 25, 2024 11:57 AM UTC

@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.