Skip to main content
J.Park
Associate II
June 27, 2019
Solved

STM32CubeIDE-- how to use SWV data trace timeline graph

  • June 27, 2019
  • 24 replies
  • 26620 views

Hello, now I'm using F429IDiscovey and STM32CubeIDE to grahp via SWV.

I refre to this official video(URL: https://www.youtube.com/watch?v=eumKLXNlM0U)

In the STM32CubeIDE, I configured same like video.

(Please see the attached file named 'SWV_Config' and 'Debug Config')

After configuration, I can run debug mode normally.

Also I can check variable(LED_state) that get value 1 and 0 per 500ms as I coded.

But I cannot any graph on the SWV Data Trace Timeline Graph...

(Please see the attached file named 'LED_State=0' and 'LED_State=1')

Do I miss something? How can I fix?

Thank you in advance

This topic has been closed for replies.
Best answer by NBinh

I found my problem. It cause by the st link v2 device from china so it's not enough function.

Now Im trying to solve it follow that https://engenhariaegambiarras.wordpress.com/2017/06/25/using-swd-and-swv-with-stm32-ucontrollers-printf-and-logic-analyzer-into-debbug-mode/

24 replies

Markus GIRDLAND
ST Employee
June 28, 2019

Is the variable "LED_State" a global variable?

Do you get any SWV data in any other view?

J.Park
J.ParkAuthor
Associate II
June 29, 2019

Yes, LED_State is a global variable.

But I can not see any data in SWV graph..... :(

NBinh
Visitor II
August 4, 2019

Yes, I have the same problem when used SWV graph. Have anybody solve this problem?

J.Park
J.ParkAuthor
Associate II
August 5, 2019

No, I haven't...:(

If I solve this problem, I will commet.

If you solve this problem, please let me know.

NBinh
Visitor II
August 5, 2019

Of course. I'm still trying

xpress_embedo
Associate III
November 24, 2019

Hello All,

I am new to this forum and wanted to start with ST devices and that's why I purchased STM32F769 Discovery Board.

I started from the basics, and as a first task I tried to blink the on-boards LED's, which works fine.

But when I tried to use the SWV Trace Timeline feature to plot the graph, it's not working.

I watched the official video and based on that I tried to perform these steps.

https://www.youtube.com/watch?v=eumKLXNlM0U

I configured everything as per the video.

In Debug Configuration --> SWV is Enabled, Live Configuration is also Enabled.

Apart from this, I don't see anything in SWV Trace Logs, and SWV Data Trace.

I am attaching the compressed zip folder of my project.

Thanks in advance for your help.

TMaia.1
Associate
June 17, 2020

I'm facing the same issue. Does anyone got it working?

Daniel Lin
Visitor II
November 13, 2020

I am using STM32CubeIDE and a Nucleo-68 board from the Nucleo pack (P-NUCLEO-WB55) with the same problem. I can see the variable is changing but nothing can be seen on the SWV Data Trace Timeline Graph. Do I have to use a jumper or solder bridge etc. to take care of SWO?

Daniel Lin
Visitor II
November 15, 2020

I have root caused the reason: My variable is only updated in the while 1 loop but not read by the software at all. If I set Access as "Read", then no waveform is shown because the variable is never read. Once I change the access to "Read/Write" or "Write", I am able to see the graph because the data trace is triggered with each write.0693W000005BPiAQAW.png

TMaia.1
Associate
November 15, 2020

Check if your jumpers are in the correct spot.

Daniel Lin
Visitor II
November 15, 2020

Thank you for your suggestion. I have root caused the reason: I did not setup the variable correctly. My variable is updated in the while 1 loop but not read by the software. If I set Access as "Read", then no waveform is shown. Once I change the access to Read/Write or Write, I am able to see the graph

MMult.1
Visitor II
October 8, 2021

Have you set correct HCLK frequency in Run Configuration -> Debugger -> SWV (Enable)-> Core Clock? On YouTube examples show 80MHz but your board may have different default set - for example 216MHz. Check it in *.ioc -> Clock Configuration -> HCLK (MHz)

0693W00000FBwvWQAT.png

Associate II
July 19, 2022

In my case the debugging settings are grayed out. Does somebody know what this means? And the SWV Data Trace cannot be configured, no window opens. Thank you for any suggestions. I am using a J-Link debugging probe and I have the Version:

Version: 1.10.0

Build: 12671_20220627_1643 (UTC)

with: stm32g071CBUx

0693W00000QLWRUQA5.png

Associate II
January 3, 2023

Just as an information: I found out that this G0-MCU does not support SWV.

DMolo
Associate III
December 31, 2022

December 2022, and this really does not work, following the exact instructions, with a genuine stlink v3, or a segger jlink, with CubeIDE, and any of F303CB, F405RG or L431RC.

The graph. simply does not respond, and on the odd occasion where it does, the data is garbage - reports values like 4500000000000000000000000000 on a float that the live expressions viewer sees is about 0.0234234 (a current reading in A).

Would be really useful to have a plotter of some sort. Doesn't sound like it should be very complicated...

DMolo
Associate III
December 31, 2022

Here is an example.0693W00000Y79LIQAZ.png 

0693W00000Y79LDQAZ.png 

I think at this stage I must have tried every single option box and combination there is.

AScha.3
Super User
December 31, 2022

you have "core clk" at 8 MHz -- but isnt it more 80 or 100 MHz ?

+

btw

i just tried my new stlink V3 (mods) , but this actual shows no swv data.

my old stklink V2 (clone :) ) working fine (almost - sometimes overflow exception logged)

If you feel a post has answered your question, please click on " Best Answer ".