cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link+SWIM = error?

rea5245-stm
Associate II
Posted on April 26, 2012 at 02:51

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,

   Bob

2 REPLIES 2
root
Associate II
Posted on April 26, 2012 at 10:54

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.
rea5245-stm
Associate II
Posted on April 28, 2012 at 17:58

Thank you Thomas. That did the trick.

- Bob