cancel
Showing results for 
Search instead for 
Did you mean: 

not able to debug using st-link v2 for stm8s105c6 controller

AJosh.11
Associate II

Hello,

I am getting the below error. I am using the eclipse workspace for debugging.

xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-10-16-21:19)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

Error: Debug adapter doesn't support 'swim' transport

D:/work/Renu_Projects/Compiler/STM8S/xpack-openocd-0.11.0-2-win32-x64/xpack-openocd-0.11.0-2/bin/..//scripts/target/stm8s.cfg:7: Error: 

in procedure 'script' 

at file "embedded:startup.tcl", line 26

at file "tools/openocd-v0.10.0-scripts/stm8s105.cfg", line 8

at file "D:/work/Renu_Projects/Compiler/STM8S/xpack-openocd-0.11.0-2-win32-x64/xpack-openocd-0.11.0-2/bin/..//scripts/target/stm8s.cfg", line 7

4 REPLIES 4
Uwe Bonnes
Principal III

Your StlinkV2 must be a standalob product or an on-board product for a STM8 product. Perhasp you updated to a wrong firmware variant. Get into the update mode, start the updater and update to a SWIN enabled variant fitting to your dongle.

Thanks for reply,

My stlink v2 look like below.

0693W00000FE3PqQAL.pngcurrent version of my stlinkv2 is V2.J38.S7

0693W00000FE3HXQA1.png 

and my usb driver details are as below

Device USB\VID_0483&PID_3748\5&3478949&0&1 was configured.

Driver Name: oem38.inf

Class Guid: {88bae032-5a81-49f0-bc3d-a4ff138216d6}

Driver Date: 06/08/2017

Driver Version: 2.1.0.0

Driver Provider: STMicroelectronics

Driver Section: USB_Install

Driver Rank: 0xFF0001

Matching Device Id: USB\VID_0483&PID_3748

Outranked Drivers: oem71.inf:USB\VID_0483&PID_3748:00FF0001

Device Updated: false

Parent Device: USB\ROOT_HUB30\4&152da58&0&0

Do i need to upgrade firmware? Can you give me link?

Uwe Bonnes
Principal III

That is not a genuine STlink, but a clone. The cloner may have done anything and actually have broken swim functionality, or ST may have excluded cloned stlinks in recent firmware updates. Ask the real supplier. Double checking you setup is another thing to do,

AJosh.11
Associate II

May you please suggest which one I should buy? Please provide link.