Skip to main content
October 28, 2024
Solved

How to use printf in stm32f429i-disc2

  • October 28, 2024
  • 3 replies
  • 900 views

Hello,

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

Best answer by Andrew Neil

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/ 

 

3 replies

Andrew Neil
Andrew NeilBest answer
Super User
October 28, 2024

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.
October 28, 2024

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

Cheers :)

mƎALLEm
ST Technical Moderator
October 28, 2024

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.