Skip to main content
Visitor II
October 4, 2019
Question

How to disable SWO pin?

  • October 4, 2019
  • 1 reply
  • 1562 views

Hi all,

I am using STM32F103C8T6 but would like to maintain if possible processor neutral discussion on how to disable SWO pin while debugging.

So in the case with STM32F103C8T6 SWO pin is also shared with SPI CLK and while debugging this pin becomes unusable to SPI which is problematic. While I am not using SWO trace output I would like to maintain SPI CLK functionality , how can I disable that transition to SWO pin with original ST-Link?

It seems that Segger has possible solution with command SWOStop:

https://github.com/sudolee/embedded/blob/master/dl-debug/JLink-commands-list.txt

Tnx in advance!

    This topic has been closed for replies.

    1 reply

    Graduate II
    October 4, 2019

    Aren't there multiple SWD-DP mapping options on the F1? Been a while since I checked. Turn the AFIO clock on. JTAG-DP Disable, SW-DP Enabled

    0690X000009k4f1QAA.jpg