2010-02-03 10:02 AM
STM8S-Discovery USB communication
2011-05-17 06:07 AM
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.2011-05-17 06:07 AM
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). 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.2011-05-17 06:07 AM
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