cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S103F3P6 Programming

nathon
Associate
Posted on March 17, 2016 at 16:31

I am a software engineer, but I have been working with various development boards as a hobbyist. My latest purchase was a minimum STM8 board off ebay (

http://r.ebay.com/YaYe2P

) so I could start learning that platform.

0690X00000602lFQAQ.jpg

It comes with a micro USB port. However, the posts I'm seeing show you need a separate programmer (ST-Link) to program it (SWIM). I'd appreciate some insight on how you get up and running programming one of these on Windows.

1. I've got COSMOS and STVP setup on my system. Anything else needed?

2. Do I need to have an ST-Link or other programmer or can it be done over USB with a USB-to-TTL device?

3. If it must have a separate programmer, what is the best choice?

Thank you for your help!

#stm8s103f3p6-programming
2 REPLIES 2
Ian Legg
Senior
Posted on March 18, 2016 at 10:45

Hi Nathon,

I too am a software engineer the messes with such boards as a hobbyist :) I've also ordered a few of these but also have the STM8L Discovery board. These minimum boards don't have a programmer built in like the Discovery boards. Therefore, you will need an ST-Link to program and debug it over SWIM. You can get them very cheap and they're basically an STM32. There are other options for increased cost and flexibility.

Development wise I use STVD with the COSMIC C compiler. STVD supports the ST-Link all in one environment. Don't know if it's the best but it works. I'd quite like to see it all work in an Eclipse environment but there is no such thing as yet.

Hope that helps.

Ian

loder
Associate II
Posted on March 30, 2016 at 18:26

You will need a STLINK v2 Debugger and Programmer: http://www.ebay.com/itm/NEW-brand-Mini-ST-Link-V2-stlink-Emulator-Downloader-STM8-STM32-With-Metal-Shell-/381374353224?hash=item58cbaecf48:g:hYYAAOxyeR9THIUU

and you will need a compiler. Cosmic's STM8 compiler is now free available without any code restrictions: http://www.cosmicsoftware.com/download.php#stm8

But you have to send them an E-Mail to get the license file (takes 1 day usually)

And then you have to install STVD & STVP from here: http://www.st.com/web/catalog/tools/FM147/CL1794/SC1808/SS1767/PF210567?sc=internet/evalboard/product/210567.jsp

i currently use the same board :)