cancel
Showing results for 
Search instead for 
Did you mean: 

What is "Serial Wire" for under SYS

Carl_G
Associate II

In STM32CubeIDE in the SYS tab there is a checkbox called "Serial Wire". When I check it, it highlights the two ports used for serial wire debugging. But that's all it seems to do. Is this just a helper to let me know where the debug pins are?

1 ACCEPTED SOLUTION

Accepted Solutions

Yes basically SWD pins are marked in the Cube to let you know where are the debug pins (and avoid touching them in the program). The debugger configures them automatically.

> I don't see any SWO on this mcu so it can't have SWV right? This is Cortex M0+ I believe.

Yes. It is M0+ and it does not have SWO.

 

View solution in original post

7 REPLIES 7

@Carl_G wrote:

In STM32CubeIDE in the SYS tab 


You mean in the Device Configuration view?

Here:

AndrewNeil_2-1733305883969.png

 

What IDE version are you using, and what chip?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

Uwe Bonnes
Principal III

If it is SWD, it is the debug access.

Yes, thats the place. I have STM32G071. It doesn't have SWV. I thought it was for that at first. My IDE is 1.16.1

>  I have STM32G071. It doesn't have SWV.

Oh yes, it does.
This is the debug interface, a reduced variant of JTAG.
The respective pins have SWD functionality by default after reset, you would need to reconfigure them at startup to change that.


@Carl_G wrote:

I have STM32G071. It doesn't have SWV. I thought it was for that at first. My IDE is 1.16.1


swv = Serial Wire Viewer:

https://developer.arm.com/documentation/ddi0314/h/Serial-Wire-Viewer/About-the-Serial-Wire-Viewer 

 

The STM32G071 has SWD - Serial Wire Debug - as its programming & debug interface:

AndrewNeil_0-1733314910926.png

AndrewNeil_1-1733315026049.png

 

But, indeed, no SWO for use with the Serial Wire Viewer.

Carl_G
Associate II

But SWD works without this setting. And it doesn't seem to change the source at all. Does this enable attach while running or something?

I don't see any SWO on this mcu so it can't have SWV right? This is Cortex M0+ I believe.

Yes basically SWD pins are marked in the Cube to let you know where are the debug pins (and avoid touching them in the program). The debugger configures them automatically.

> I don't see any SWO on this mcu so it can't have SWV right? This is Cortex M0+ I believe.

Yes. It is M0+ and it does not have SWO.