2010-07-02 06:04 AM
Error in Initializing ST-Link device
2011-05-17 04:57 AM
Solved: I think I was confused by the fact that I had apparenty got 2-wire SWD debug working between TrueSudio and ST-Link. Because of this I focussed on the hardware as the cause of the problem. But in my haste to regain the JTAG lines in my program code I used:
AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE; But now I see that the three SWJ_CFG bits in AFIO_MAPR register are only writable so the read/modify/write instruction I used to set them would give unpredictable results. I got lucky for long enough to distract me from the proper operation: GPIO_PinRemapConfig(GPIO_Remap_SWJ_NoJTRST, ENABLE);