Skip to main content
Senior II
December 4, 2024
Solved

What is "Serial Wire" for under SYS

  • December 4, 2024
  • 3 replies
  • 3179 views

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?

Best answer by Pavel A.

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.

 

3 replies

Andrew Neil
Super User
December 4, 2024

@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
December 4, 2024

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
December 4, 2024

>  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
December 4, 2024

If it is SWD, it is the debug access.

Carl_GAuthor
Senior II
December 4, 2024

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
Super User
December 4, 2024

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.