Skip to main content
Senior II
Solved

What is "Serial Wire" for under SYS

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?

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer

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.

 

7 replies

Andrew Neil
Super User

@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

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Carl_GAuthor
Senior II

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

Ozone
Principal

>  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.

Uwe Bonnes
Chief

If it is SWD, it is the debug access.

Carl_GAuthor
Senior 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.

Pavel A.
Pavel A.Best answer

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.