AnsweredAssumed Answered

What could stop SWD from working?

Question asked by danielsson.henrik on Dec 28, 2012
Latest reply on Dec 29, 2012 by Clive One
Im running an application on a STM32F103R8T6. The debug interface works as expected most of the time. But occasionally I can't connect neither with an ST-Link nor IAR I-jet. The code runs normally while trying to connect.
 
I now know that pulling BOOT0 high is the only way I can connect again.

In my code I only disable JTAG:
 GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable,ENABLE);
 
As the board completely powers down before I make a new attempt to connect, there must have been some kind of alternation of the flash memory? Anyone with an idea what is happening and where to start looking to find what is causing this?

Best regards

Henrik Danielsson

Outcomes