Skip to main content
VPant.7
Associate II
March 25, 2026
Question

CubeMX2, allow to use SWD without SWO

  • March 25, 2026
  • 4 replies
  • 824 views

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.

4 replies

ST Employee
March 26, 2026

Hello @VPant.7 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.

Karl Yamashita
Principal
March 26, 2026

You can right click and reset the pin state so it's no longer SWO.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
VPant.7
VPant.7Author
Associate II
March 26, 2026

sorry, but I cannot, as you can see, "Reset Pin State" is disabled

Screenshot_20260326_221746.png 

Karl Yamashita
Principal
March 26, 2026

Must be a bug on your selected part. I was able to do it on the C562RE

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
Karl Yamashita
Principal
March 26, 2026

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.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
VPant.7
VPant.7Author
Associate II
March 26, 2026

yes, when you open the C652 NUCLEO board, the 3 SWD pins are reserved and can be reset, but once debug is configured, you cannot reset any of them...

Karl Yamashita
Principal
March 26, 2026

@VPant.7 @Oussama_TROUDI 

I see now, I didn't Activate the SWD. Because it was highlighted and labeled when the project was opened, I assumed it was enabled. I didn't look at the legend.

 

 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
Technical Moderator
March 30, 2026

Hello @VPant.7 

Thank you for bringing this issue to our attention.

I reported this internally.

Internal ticket number: CDM0061153

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"