2012-04-25 05:51 PM
Hi,
I've made my own STM32-based development board. I was using the ST-Link built into the VL Discovery board to program it, and so I made my board with a 4 pin SWIM connector. It's been working fine with my toolchain (Eclipse + Atollic's ST-LINK_gdbserver.exe). Now I've bought an ST-Link V2, installed the latest ST-Link V2 driver, and connected its SWIM connector (which, admittedly, is labeled 'STM8') to my board. When I try to debug, I get ''Error in Initializing ST-Link device''. Is the SWIM connector functional with an STM32, or do I need to pick out the signals from the JTAG connector? Or is ST-LINK_gdbserver incompatible with ST-Link V2? Do I need to change some configuration when switching between the VL Discovery's ST-Link and the ST-Link V2? How can I troubleshoot this? Thanks, Bob2012-04-26 01:54 AM
Hello,
SWIM is the interface for STM8 MCUs. The port you are using is the SWD (Serial Wire Debug). And on the ST-Link V2 you have to take it from the 20 pin JTAG connector (Pin 1, 7, 9 and 12 IIRC). Thomas.2012-04-28 08:58 AM
Thank you Thomas. That did the trick.
- Bob