Skip to main content
Tobe
Senior III
October 27, 2024
Question

SWV ITM (printf) - sometimes works, sometimes not

  • October 27, 2024
  • 2 replies
  • 1812 views

Hi,

i got quite some difficulties, having this run in a reliable way on a NUCLEO G431KBT6.

It more often does not work, as it would work. It often just wouldnt print anything (But it had before, without issues!). Sometimes the swv debugger couldnt be enabled on debugger start, or the arm-none-eabi*.exe crashed. (i did not made a screenshot - foolish me).

Anyone has some experience with this and could give me some tipps?

 

Edit:
The red record button behaves a little strange: It wont turn off sometimes, but when clicked, it wont turn on. But after having opened the settings, it is turned on.

2 replies

AScha.3
Super User
October 27, 2024

Hi,

just from your shown settings: you have to enable SWV (and set: real core clock ) to use it...

AScha3_0-1730022820437.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Tobe
TobeAuthor
Senior III
October 27, 2024

I have. I accidently switched the configuration. I have reuploaded it.

ST Employee
November 4, 2024

Hello @Tobe ,

Could you take a look at this article which may help you with your issue.

Also, could you mention the CubeIDE version which gives you this described behavior.
Regards

Tobe
TobeAuthor
Senior III
November 4, 2024

Hi,

what part of this article could be helpful? Its not that detailed.

Version: 1.12.0
Build: 14980_20230301_1550 (UTC)

ST Employee
November 4, 2024

Hello @Tobe ,

the part that could be helpful is the part related to the configuration and enabling of SWV if you are having issues with that.

also, I would recommend you use the latest version of CubeIDE  v1.16.1 STM32CubeIDE - Integrated Development Environment for STM32 - STMicroelectronics 
as lots of fixes related to plugins such as SWV have been made. From my side the feature works fine on the latest version of CubeIDE.
Regards