2024-12-03 08:51 PM
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?
Solved! Go to Solution.
2024-12-04 07:29 AM - edited 2024-12-04 07:30 AM
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.
2024-12-04 01:51 AM
@Carl_G wrote:In STM32CubeIDE in the SYS tab
You mean in the Device Configuration view?
Here:
What IDE version are you using, and what chip?
2024-12-04 01:56 AM
If it is SWD, it is the debug access.
2024-12-04 03:59 AM
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
2024-12-04 04:09 AM
> 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.
2024-12-04 04:27 AM
@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:
But, indeed, no SWO for use with the Serial Wire Viewer.
2024-12-04 04:34 AM
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.
2024-12-04 07:29 AM - edited 2024-12-04 07:30 AM
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.