cancel
Showing results for 
Search instead for 
Did you mean: 

How to use printf

syedhashmiraza
Visitor

hey how to use printf in stm32f429i-disc1 board and my mcu is stm32f103cbt6

6 REPLIES 6
STTwo-32
ST Employee

Hello @syedhashmiraza and welcome to the ST Community :smiling_face_with_smiling_eyes:.

I suggest you to take a look at this article. It should be helpful.

Best Regards.

STTwo-32 

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.

syedhashmiraza
Visitor

hey how to use printf in stm32f429i-disc1 board and my mcu is stm32f103cbt6

as @STTwo-32 already said, see this 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/ 

 

Tip:

Get the basic direct UART output working before adding the printf stuff. 


@syedhashmiraza wrote:

 in stm32f429i-disc1 board and my mcu is stm32f103cbt6


That doesn't make sense!

As its name suggests, the stm32f429i-disc1 board contains an stm32f429i microcontroller - not an stm32f103cbt6.

 

But, anyhow, the method to get printf working is the same irrespective of what microcontroller you use.

iam using stm32f429i-disc1 microcontroller for debug reason how to use printf

i treid this one but still printf is not working