Skip to main content
Oct 28, 2024 12:57 PM UTC
Solved

How to use printf in stm32f429i-disc2

Hello,

How to use printf in stm32f429i-disc2 board and my MCU is stm32f103cbt6

This topic has been closed for replies.
Andrew Neil
Andrew NeilBest answer
Super User
Oct 28, 2024 1:01 PM UTC

Before getting into printf, do you have the basic HAL UART (or bare-metal) comms working?

printf relies upon that, so you need to have that working first:

https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/733964/highlight/true#M56212

 

Then read this Knowledge base article:

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

 

And here's a 3rd-party article on the same:

https://shawnhymel.com/1873/ 

 

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.

3 replies

Andrew Neil
Andrew NeilBest answer
Super User
Oct 28, 2024 1:01 PM UTC

Before getting into printf, do you have the basic HAL UART (or bare-metal) comms working?

printf relies upon that, so you need to have that working first:

https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/733964/highlight/true#M56212

 

Then read this Knowledge base article:

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

 

And here's a 3rd-party article on the same:

https://shawnhymel.com/1873/ 

 

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.
Oct 28, 2024 1:03 PM UTC

You can refer to the web for that. 
I hope it will be helpful.

Cheers :)

mƎALLEm
ST Technical Moderator
Oct 28, 2024 1:03 PM UTC

Hello,

Same thread as https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/736424.

It's the same content but not the same user!

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.