The prompt is displayed after a readme file that contains guidelines on use, is closed.įill the information requested by the prompt, select the “ On the Web” option (if you are connected to the internet), and click on done.
Stm8 cosmic assembler install#
The STVD IDE should install without a fuss, but the Cosmic C compiler will request that you get a free license key, with a prompt that asks for your email address.
Stm8 cosmic assembler software#
With both software downloaded, run the installation, following the on-screen instructions displayed by the setup wizard. Both software is free to use and will only require you to sign up on the websites to download. Head over to Cosmic and ST websites and download the software. Unfortunately, both software is only available in the Windows OS version so you will need a windows based machine or a partition to install and use them. As mentioned during the introduction, we will use the Cosmic C compiler and the ST Visual Develop (STVD) IDE. To program the microcontroller, we need an IDE and a compiler. With this done, we can now proceed to set up the software side of the project. Connect both of them as shown in the schematics below: SchematicsĪ pin-pin map showing how the ST-Link V2 is connected to the dev board is also provided below to make the connection easy to follow. SchematicsĪsides schematics for folks who will not be using the onboard LED, the only schematics associated with this project is for the connection between the STM8sblue and the ST-Link V2 programmer. The resistor and LED are only important if you will prefer to use an LED other than the one onboard the STM8sBlue. The STM8sBlue and the ST-Link programmer can be bought from the attached links, while others can be easily obtained from your favorite electronics component store. The components required to replicate and follow this project includes:
Stm8 cosmic assembler how to#
Our goals for today’s tutorial will be to examine how to set up the tools, and for a demo, we will flash the microcontroller with the hardware hello world LED blink example. It will be used to upload firmware from the PC to the microcontroller. In addition to the STM8sBlue development board, we will need the ST-LINK programmer, preferably the ST-LINK v2 programmer. The popularity of the STM8S103F3P6 makes it a perfect microcontroller for beginners as you can easily find support for it across several forums on the internet.įor easy prototyping, we will use the STM8sBlue development board which is essentially a breakout board for the STM8S103F3P6 MCU with a USB interface, breadboard compatibility, and a few other components to facilitate the development of prototypes for projects based on the MCU. There are several members of the STM8s microcontroller out there but for this tutorial, we will work with the STM8S103F3P6 microcontroller which is one of the cheapest, and most popular member of the family. Thus for today’s tutorial, we are going to examine how to use traditional tools like the Cosmic C compiler along with STVD to program the STM8s microcontrollers. This way may work for developers who are familiar with the IDE and want to build quickly, and professional projects, but there are more ways to get the same result. Last time we examined how to program the STM8s microcontroller using the Arduino IDE.