2026-03-25 12:12 AM - last edited on 2026-04-15 7:59 AM by Sara BEN HADJ YAHYA
when you enable SWD in CubeMX2 it automatically blocks the SWO pin as well (tested using C531FBP6), but I only need SWCLK / SWDIO to debug. please add a way to disable the use of SWO.
2026-03-26 9:24 AM
Hello @av500 and welcome to the ST community,
I’m currently checking this with the dev team and will get back to you as soon as I have an update.
2026-03-26 12:49 PM
You can right click and reset the pin state so it's no longer SWO.
2026-03-26 2:20 PM
sorry, but I cannot, as you can see, "Reset Pin State" is disabled
2026-03-26 2:24 PM
Must be a bug on your selected part. I was able to do it on the C562RE
2026-03-26 2:27 PM
also disabled in my CubeMX2 (v1.0.0 / Linux)
2026-03-26 2:55 PM
Hi @av500 @Karl Yamashita
Regarding the "Reset Pin State" option is available and clickable only for reserved pins and pins configured as GPIO.
It is greyed out (disabled) for pins configured with functional (non‑GPIO) signals such as SWD, I2C or SPI....
2026-03-26 3:18 PM
Yes, I understand that, still SWD config should allow to not use/block SWO.
going even further, CubeMX(2) should allow to override any assigned pin, e.g. in the past I have used I2S TX with only the SDO (MOSI) line, not using/muxing CLK or WS, but CubeMX does not allow such a setup...
2026-03-26 3:24 PM - edited 2026-03-26 3:30 PM
I can reset the SWO, at least on the C562RE
SWO pin is reset while SWDCLK and SWDIO are still enabled.
I can also reset SWDIO and SWCLK
As for @av500, he mentions C531FBP6, but I can't find that part. But I tried with the C531CBT6 and yes the Reset Pin State is disabled.
EDIT: I actually found the C531FB. I didn't pay attention to the multiple page selection.
But yeah, that part you can't reset the SWO pin.
2026-03-26 3:35 PM
It looks like if I select as a Board project with the C562RE, i am able to reset the SWD pins.
If i create as an MCU project with C562RE, I can't reset the pins.