cancel
Showing results for 
Search instead for 
Did you mean: 

printf on STM32L562-edk using stm32cubeide IDE

Neel
Associate III

Hi,

I have used STM32L562-edk for my project. So, I have used stm32cubeide for software development and flashing the EVK. I have added printf for debugging my code.

But I am not getting any debug message on SWV ITM window.

Can someone will help me to debug the printf issue?

3 REPLIES 3
EJOHA
Senior

Hi, to make SWV work the debugger needs to be setup correctly. E.g. correct core clock frequency setting.

Before solving the SWV ITM issue it may be best to verify that some other SWV views can be populated. E.g. try the "SWV statistical profiling" view.

When this is working continue with ITM printf configuration.

Please read the new "STM32CubeIDE User manual" for more information about SWV and ITM usage. It is available here:

https://www.st.com/resource/en/user_manual/dm00629856-description-of-the-integrated-development-environment-for-stm32-products-stmicroelectronics.pdf

Neel
Associate III

Hi EJOHA,

Thanks for reply,

Issue has been resolved.

Thanks

@Neel​ ,

How You have resolved this issue?