Skip to main content
romain2
Associate II
May 29, 2019
Question

SWO debug issue

  • May 29, 2019
  • 2 replies
  • 793 views

Hi,

I am currently working on an STM32L4S5 attached to a ST-LINK/V2. I am using Attolic TrueStudio to compile, flash and debug.

The STM32 is running at 120Mhz and I have configured the SWO clock to 125kHz thanks to the STlink utility software.

I am using the ITM_SendChar to sent data on port 0.

The issue is that I don't see any data on the SWV Console. I can observe and decode the data sended by the STM32 on the SWO port using an oscilloscope. I can confirm that I see the right data on the SWO port.

As far I can see, the issue should be between the STLink V2 and the Attolic TrueStudio sofware.

Have you ever experienced this issue or do you have ideas I could use to debug my issue ?

Thanks,

Regards,

Romain

This topic has been closed for replies.

2 replies

TClar.8
Associate II
May 29, 2019

Hi romain2,

Did you enable Serial Wire Viewer (SWD) in the debug configurations, with the correct core clock ?

Did you enable port 0 in the trace configurations ?

Did you click 'Start Trace' before launching your debug ?

Hope it could help a little bit.

Tristan

romain2
romain2Author
Associate II
May 29, 2019

Hi tristan,

Thanks for your answer,

Yes everything you said as been set-up.

I have also tried another STLinkV2, no success.

Romain