Discussion:
[Openocd-development] SWD vs. SWIM
CeDeROM
2010-02-19 21:55:07 UTC
Permalink
Ive just found an interesting STM8Discovery DevelKit with STM8S105C6T6
microcontroller (8-bit, 32 KB Flash, 2 KB RAM, 1 KB EEPROM) onboard
for extremely low price (~$10) with supplied JTAG programmer (Embedded
ST-LINK). Anyone knows/use this St-Link cable? Is this SWIM a SWD
implementation? More details at:
http://www.kamami.pl/dl/stm8sdiscovery.pdf

Regards,
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Michel Catudal
2010-02-19 23:12:28 UTC
Permalink
Post by CeDeROM
Ive just found an interesting STM8Discovery DevelKit with STM8S105C6T6
microcontroller (8-bit, 32 KB Flash, 2 KB RAM, 1 KB EEPROM) onboard
for extremely low price (~$10) with supplied JTAG programmer (Embedded
ST-LINK). Anyone knows/use this St-Link cable? Is this SWIM a SWD
http://www.kamami.pl/dl/stm8sdiscovery.pdf
Regards,
Tomek
SWIM, it is a single wire protocol fully described in ST App note. It is
for the STM8.
You could modify the software to make it a SWD device. You need to bring
an extra line from somewhere on the board like stealing the pin of a LED.
It uses an STM32 for the Raisonnance programmer.

Michel
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
simon qian
2010-02-20 05:05:20 UTC
Permalink
Hi,
I have implemented SWIM interface in Versaloon.
So I know SWIM is NOT SWD, SWIM is more complex.
Post by Michel Catudal
Post by CeDeROM
Ive just found an interesting STM8Discovery DevelKit with STM8S105C6T6
microcontroller (8-bit, 32 KB Flash, 2 KB RAM, 1 KB EEPROM) onboard
for extremely low price (~$10) with supplied JTAG programmer (Embedded
ST-LINK). Anyone knows/use this St-Link cable? Is this SWIM a SWD
http://www.kamami.pl/dl/stm8sdiscovery.pdf
Regards,
Tomek
SWIM, it is a single wire protocol fully described in ST App note. It is
for the STM8.
You could modify the software to make it a SWD device. You need to bring
an extra line from somewhere on the board like stealing the pin of a LED.
It uses an STM32 for the Raisonnance programmer.
Michel
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
_______________________________________________
Openocd-development mailing list
https://lists.berlios.de/mailman/listinfo/openocd-development
--
Best Regards, SimonQian
http://www.SimonQian.com
Michel Catudal
2010-02-20 15:52:17 UTC
Permalink
Post by simon qian
Hi,
I have implemented SWIM interface in Versaloon.
So I know SWIM is NOT SWD, SWIM is more complex.
By modifying the software at the TM8Discovery Devel Kit I meant reflash
the whole thing. The JTAG interface is present on the STM32 board so you
can debug and reflash your new application.
To make this a SWD only debugger would be easy. If you would want to
make it a JTAG debugger then you would have to use SWD to debug and
reflash your code since you would need some of the pins from the JTAG
interface. Most unused pins are not easily accessible. There is the port
for the LED that can be borrowed.

Michel
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
simon qian
2010-02-21 08:49:24 UTC
Permalink
Hi,
As I know, ST-Link supports JTAG for STM32 and SWIM for STM8, but it doesn't
support SWD.
If you want to reflash STM32 of ST-Link to be supported by OpenOCD, you can
try Versaloon driver, but you will lost ST-Link's functionality.
Hi,
Post by simon qian
I have implemented SWIM interface in Versaloon.
So I know SWIM is NOT SWD, SWIM is more complex.
By modifying the software at the TM8Discovery Devel Kit I meant reflash
the whole thing. The JTAG interface is present on the STM32 board so you can
debug and reflash your new application.
To make this a SWD only debugger would be easy. If you would want to make
it a JTAG debugger then you would have to use SWD to debug and reflash your
code since you would need some of the pins from the JTAG interface. Most
unused pins are not easily accessible. There is the port for the LED that
can be borrowed.
Michel
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
--
Best Regards, SimonQian
http://www.SimonQian.com
CeDeROM
2010-02-21 09:55:50 UTC
Permalink
Hi,
As I know, ST-Link supports JTAG for STM32 and SWIM for STM8, but it doesn't
support SWD.
If you want to reflash STM32 of ST-Link to be supported by OpenOCD, you can
try Versaloon driver, but you will lost ST-Link's functionality.
Ok ok, I was just wondering if this is the cheapest JTAG/SWD/SWIM
dongle on the market :-) Now I see that it does not support SWD, but
if we get SWD working in OpenOCD then firmware of this ST-LINK could
be upgraded and so it could become multifunction-lowestprice device
(if needed) :-) I wonder also about speed of this cable - is there a
change to be faster than FT2232H based interface?

Best regards!
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
simon qian
2010-02-21 10:43:56 UTC
Permalink
SWD is working in my branch of OpenOCD, but ONLY on Versaloon dongle.
Official OpenOCD will maybe add SWD support in 0.5 release.
FT2232H is USB-HS device, I don't think there is any chance for USB-FS STM32
Device to be faster.
But it's almost impossible for FT2232H to support SWIM.

If you want STM32_JTAG/SWD and STM8_SWIM support, check here:
www.simonqian.com/en/Versaloon, software/firmware/hardware are all available
there.
It can support JTAG/SWD in OpenOCD, and SWIM in vsprog(programming ONLY).
For STM32_JTAG, the fastest downloading speed I tested in vsprog is 35KB/s.
Post by simon qian
Post by simon qian
Hi,
As I know, ST-Link supports JTAG for STM32 and SWIM for STM8, but it
doesn't
Post by simon qian
support SWD.
If you want to reflash STM32 of ST-Link to be supported by OpenOCD, you
can
Post by simon qian
try Versaloon driver, but you will lost ST-Link's functionality.
Ok ok, I was just wondering if this is the cheapest JTAG/SWD/SWIM
dongle on the market :-) Now I see that it does not support SWD, but
if we get SWD working in OpenOCD then firmware of this ST-LINK could
be upgraded and so it could become multifunction-lowestprice device
(if needed) :-) I wonder also about speed of this cable - is there a
change to be faster than FT2232H based interface?
Best regards!
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
--
Best Regards, SimonQian
http://www.SimonQian.com
Spencer Oliver
2010-02-21 20:52:49 UTC
Permalink
Post by simon qian
Hi,
As I know, ST-Link supports JTAG for STM32 and SWIM for STM8, but it
doesn't support SWD.
If you want to reflash STM32 of ST-Link to be supported by OpenOCD, you
can try Versaloon driver, but you will lost ST-Link's functionality.
The ST-LINK supports both JTAG and SWD for the stm32.

Cheers
Spen
Xiaofan Chen
2010-02-21 23:47:23 UTC
Permalink
Post by Spencer Oliver
Post by simon qian
Hi,
As I know, ST-Link supports JTAG for STM32 and SWIM for STM8, but it
doesn't support SWD.
If you want to reflash STM32 of ST-Link to be supported by OpenOCD, you
can try Versaloon driver, but you will lost ST-Link's functionality.
The ST-LINK supports both JTAG and SWD for the stm32.
It seems to be pretty new support. Maybe that is why Simon
did not see it.
www.st.com/stonline/products/literature/um/15285.pdf

Page 11 Revision History
20-Nov-2009: Rev 3: Added 3rd party Atollic and SWD support.
--
Xiaofan http://mcuee.blogspot.com
Michel Catudal
2010-02-23 01:52:12 UTC
Permalink
Post by simon qian
Hi,
As I know, ST-Link supports JTAG for STM32 and SWIM for STM8, but it
doesn't support SWD.
If you want to reflash STM32 of ST-Link to be supported by OpenOCD,
you can try Versaloon driver, but you will lost ST-Link's functionality.
The version on the STM8Discovery doesn't support SWD. It is designed for
the STM8 and brings out only the two pins needed to program the STM8.
It is a SWIM only programmer. The board costs $7.

Michel
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
Antonio Borneo
2010-02-24 00:26:56 UTC
Permalink
Just received this advertisement, interesting for who is in Germany
and plan to be at "embedded world 2010 in Nuremberg".
You could get one of the 5000 free STM8S kit. I think each kit
includes one ST-Link.
http://www.st.com/stonline/products/families/embedded_2010.htm

Best Regards,
Antonio

Loading...