cancel
Showing results for 
Search instead for 
Did you mean: 

Print logs in stm32cubeide debug console

harshpanchal_6
Associate II

Hello,

I am trying to print my logs in Cube-Ide debug session using printf. But i cannot see the logs in the console.

So, is there any solution to this.

Thank you, 

Harsh

 

1 REPLY 1

@harshpanchal_6 wrote:

I am trying to print my logs in Cube-Ide debug session using printf.


How, exactly, are you trying to do that?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 


@harshpanchal_6 wrote:

is there any solution to this.


Fix whatever it is you've done wrong, and/or do whatever you've omitted to do.

As we have no idea what you have done, there's no way to say how to fix it!

 

https://community.st.com/t5/stm32-mcus/using-the-itm-console-for-printf-redirects-and-lwip-debug/ta-p/723472

https://community.st.com/t5/stm32-mcus/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages/ta-p/49865?search-action-id=38275067393&search-result-uid=49865

If you're trying to redirect printf over a UART, make sure that you have the basic, raw UART comms working first:

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_UART

https://community.st.com/t5/stm32-mcus/implementing-uart-receive-and-transmit-functions-on-an-stm32/ta-p/694926