![stm8 cosmic stm8 cosmic](https://firatdeveci.com/wp-content/uploads/2015/08/STM8S-Discovery.jpg)
#Stm8 cosmic registration#
You will need to register the compilers to be able to use them, and Cosmic's registration process is handled by a human so may take some time for you to receive your licence key. There is a document that accompanies the development package, Developing and debugging your STM8S-DISCOVERY application code, which contains instructions on setting up a project – confusingly, these directions don't appear to apply to Raisonance's tool chain, and rely on copying and pasting files from the demo programs.
#Stm8 cosmic manual#
The STM8S-Discovery evaluation board user manual (information specific to the evaluation board, including circuit diagrams and other specifications).The STM8S microcontroller family reference manual (a general overview of the STMS8 family, including documentation on the various on-board peripherals).The STM8S105C6 datasheet (invaluable device specifications/information).The application development package (this contains examples and relevant libraries to access the various peripherals of the chip).The ST MCU Toolset, which includes the ST Visual Develop IDE.A C compiler (I'm currently using Cosmic's, but it's worth installing the Raisonance compiler too).
#Stm8 cosmic software#
If you visit the STM8S-Discovery page, you will see options to download various pieces of software and development tools.
#Stm8 cosmic how to#
It doesn't go into any great detail my assumption is that if you can get some code you've written yourself running on your evaluation board and understand how to use the basic peripherals offered by the microcontroller to work with the board's LED and touch key you should be ready enough to dive into the official documentation and sample code yourself! The following code may not be the best, but it is simple and it should work (if I've missed anything out or not been clear enough anywhere, please let me know so I can fix it). I'm not an expert with ST's microcontrollers, but I have at least managed to get something running on the microcontroller after a few frustrating hours spent with the current documentation. I personally found the documentation quite baffling, and judging by a thread on Hack a Day I wasn't the only one.
![stm8 cosmic stm8 cosmic](http://we.easyelectronics.ru/uploads/images/00/32/49/2016/01/10/559aa92d10.gif)
Hopefully that will improve as more people get hold of these new kits, as their incredibly low price and self-contained nature makes them ideal for beginners (no need to build up a collection of parts or buy a programmer to get started, just plug and play). Unfortunately, what appears to be lacking at the moment – not surprisingly for a new product – is guidance for absolute beginners with ST's microcontrollers. It's solidly built and comes attractively packaged, with clear instructions on the back of the box on how to run the demo program (just plug it in to a USB port!) and where to go next for development tools. I really wasn't expecting much for £4.25, but am very impressed with the hardware. All you need to do is provide a USB A to USB B cable and download the various development tools (Windows only at the time of writing), datasheets and libraries. ST's recommended price is $7 I bought mine for £4.25 from Farnell. A jumper can be used to select 5V or 3.3V operation.Ī green LED and a touch sensitive key are built into the evaluation board the device comes pre-programmed with a demo program that flashes this LED at different rates when you touch the key.Īll in all, a decent piece of kit – but what really sets it apart is its price. Standard 0.1" pin headers are provided to permit you to connect the board to other components, and a small wrapping area is also present. The circuit board has been designed so that you can simply snap off the ST-LINK part if you'd like to use the microcontroller on its own. The evaluation board is pretty feature-packed, and includes an integrated ST-LINK for programming and debugging over USB.