If you have decided to use this environment then you might want to check out . Arron Chapman has also put together some additional files and templates together. These are available in his posting .
We will not cover setting up the environment as this is a standard Windows installer.
The development environment we are using is the environment. This allows the creation of small applications (8 KBytes) for the STM8S. At the time of writing, the licence allowed the creation of fully functional applications with no commercial restrictions on the applications you create. The only requirement for the developer is that you register for a licence key.
As you can see, all of the work setting up the hardware has been done for you . You will also note that the chip used is the STM8S105C6T6. This chip is a different series to the one I am targeting. It is also a larger package giving the developer access to more ports etc. This board also has the ST-Link programmer built into the board. The only thing we need in order to use this board is a USB cable.
Now compare this to the STM8S Discovery board:
When you have all this put together you will have something like the following:
The ST-Link/V2 should be connected to 3.3V and ground with the SWIM and NRST lines connected to the appropriate pins on the STM8S.
To put this together, place one of the 1uF capacitors between VSS and VCAP and a 100 nF capacitor is placed between VDD and VSS. An additional (this is the optional capacitor) 1uF capacitor is also placed across the +3.3V and ground of the power supply.
2 x 1uF capacitors (you can get away with only one for simple circuits)
I am using the STM8S103F3P3 in a TSSOP20 package. This has been mounted on a TSSOP20 to DIP board to allow me to insert the chip into a breadboard circuit. When mounting this on a breadboard you need the following components:
The first thing we will do is look at the hardware I am using and then compare this to the STM8S Discovery board.
For the purposes of this exercise we will look at the as this application is small and simple.
The objective of this post is to describe the environment I am using and how you can convert the hardware and software setup to work with the STM8S Discovery board. By converting the application to this board we will cover the principle steps which should be followed in order to convert the application to run on any of the STM8S family of microcontrollers. We will also cover some of the shortcut keys in the development environment in order to help the novice/infrequent user of the environment become a little more productive.
For the hardware case this is certainly unlikely especially with the availability and low pricing of the STM8S Discovery boards. As for the software, well there are at least two environments available and a number of compilers and assemblers.
You are familiar with the development environment I am using
Assuming you all have the same hardware set up as me
A few days ago I was discussing a post from this series in the Netduino chat room with someone who is following the posts and is keen to learn about the STM8S. It became apparent that there are a few things I am taking for granted; namely:
Converting The Way of The Register Examples
var myWorld = new World("Mark Stevens");
Silverlight Developer » Blog Archive Converting The Way of The Register Examples - Silverlight Developer
Комментариев нет:
Отправить комментарий