2016-03-17 08:31 AM
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 (
) so I could start learning that platform. 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-programming2016-03-18 02:45 AM
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. Ian2016-03-30 09:26 AM
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#stm8But 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.jspi currently use the same board :)