cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S-Discovery USB communication

ib_gaus
Associate II
Posted on February 03, 2010 at 19:02

STM8S-Discovery USB communication

3 REPLIES 3
patocheham2
Associate
Posted on May 17, 2011 at 15:07

Hello;

The USB to SWIM protocol is proprietary, this is something ST doesn't want to disclosure.

There are other ways to program the device . there is a bootloader embedded to be uses with the USART.

ib_gaus
Associate II
Posted on May 17, 2011 at 15:07

I know the embedded bootloader, but this is not suitable for my purpose.

I would like to find an easy way to be able to communicate from a PC to the STM8 on the Discovery board using the already available USB connection. This would be possible, if I could send a USB command that sends a SWIM command for writing data into the RAM of the STM8 on-the-fly during normal program execution without stopping STM8. According to UM0470 ''STM8 SWIM communication protocol and debug module'', this should be possible using command WOTF (write on the fly).

http://www.st.com/stonline/books/pdf/docs/14024.pdf

 

But how to trigger such a WOTF over USB?

Unfortunately there seems to be neither a tool nor a description of the used USB protocol. What a pity. This would offer much more possibilities for easy data exchange with a PC.

sramsauer9
Associate II
Posted on May 17, 2011 at 15:07

Hello,

maybe STVP programming toolkit can do the job.

See documentation section 4.4.4 ''Reading the device''

http://www.st.com/stonline/products/support/micro/files/um0151.exe

http://www.st.com/stonline/books/pdf/docs/11472.pdf

Regards,

Stefan