2009-04-27 09:11 AM
Rempap SWO to use Alternate SPI1 and debug with SWD
2011-05-17 04:10 AM
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 ?