cancel
Showing results for 
Search instead for 
Did you mean: 

Rempap SWO to use Alternate SPI1 and debug with SWD

dpereverzoff
Associate II
Posted on April 27, 2009 at 18:11

Rempap SWO to use Alternate SPI1 and debug with SWD

1 REPLY 1
dpereverzoff
Associate II
Posted on May 17, 2011 at 13:10

I am trying to debug the alternative SPI1 port using IAR with Jlink connected to a STM32F103RB over the SWD wires.

The problem is the SPI1 Clock shares the SWO pin and I cannot seem to disable the SWO interface and Keep the SWD.

The Single Wire Debug works fine without the Single Wire Output connected.

The SPI1 SCLK works fine if I completely disable all the debugging ports with:

GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable, ENABLE);

But not if I disable only the Jtag with: GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);

I even set the TRACE_IOEN bit off (by editing the debugger configuration file) but this did not help.

Does anybody know how to configure this to work ?

Maybe it is a mater of just turning off the HW Trace for SWO Setup but this only seems to take effect after the debugger is loaded.

Am I missing something ?