Skip to main content
Neel
Associate II
July 27, 2020
Question

printf on STM32L562-edk using stm32cubeide IDE

  • July 27, 2020
  • 3 replies
  • 1767 views

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?

This topic has been closed for replies.

3 replies

EJOHA
Associate
August 12, 2020

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
NeelAuthor
Associate II
August 13, 2020

Hi EJOHA,

Thanks for reply,

Issue has been resolved.

Thanks

PYada.1
Associate III
August 27, 2021

@Neel​ ,

How You have resolved this issue?