cancel
Showing results for 
Search instead for 
Did you mean: 

SWO debug issue

romain2
Associate III

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

2 REPLIES 2
TClar.8
Associate II

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
Associate III

Hi tristan,

Thanks for your answer,

Yes everything you said as been set-up.

I have also tried another STLinkV2, no success.

Romain