cancel
Showing results for 
Search instead for 
Did you mean: 

How to use printf in stm32f429i-disc2

Chandana1
Associate

Hello,

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

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Evangelist III

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/ 

 

View solution in original post

3 REPLIES 3
Andrew Neil
Evangelist III

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/ 

 

akawriter
Associate

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

Cheers :)

SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.