STM8S-DISCOVERY STMicroelectronics, STM8S-DISCOVERY Datasheet - Page 5

EVAL KIT STM8S DISCOVERY

STM8S-DISCOVERY

Manufacturer Part Number
STM8S-DISCOVERY
Description
EVAL KIT STM8S DISCOVERY
Manufacturer
STMicroelectronics
Series
STM8Sr
Type
MCUr

Specifications of STM8S-DISCOVERY

Contents
Board
Processor To Be Evaluated
STM8S
Processor Series
STM8
Interface Type
USB, I2C, SPI, UART
Operating Supply Voltage
5 V
Silicon Manufacturer
ST Micro
Core Architecture
STM8
Core Sub-architecture
STM8
Silicon Core Number
STM8
Silicon Family Name
STM8L1xx
Kit Contents
Brd, Cable, Doc
Rohs Compliant
No
For Use With/related Products
STM8S
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
497-10040

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM8S-DISCOVERY
Manufacturer:
STMicroelectronics
Quantity:
42
Part Number:
STM8S-DISCOVERY
Manufacturer:
ST
0
UM0834
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
Figure 22.
Figure 23.
Figure 24.
Figure 25.
Figure 26.
Figure 27.
Figure 28.
Figure 29.
Figure 30.
Figure 31.
Figure 32.
Figure 33.
Figure 34.
Figure 35.
Figure 36.
Figure 37.
Figure 38.
Figure 39.
Figure 40.
STVD overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Cosmic compiler form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Downloading Cosmic compiler software wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Cosmic compiler installation wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Cosmic compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Raisonance compiler installation wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Activation code registration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Personal information form. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Serial key information form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Selecting the Cosmic compiler for the Discover project . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
STM8S standard firmware library architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
stm8s_conf.h peripheral define statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
STM8 firmware library online help home page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
STM8S touch sensing library software architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
STM8S touch sensing functional architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
User application flowchart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
STM8S touch sensing library online help home page . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Select your MCU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
STVP option byte selection menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
STVP option byte programming menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
STVP option byte programming message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
STM8S-Discovery_dev package content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Selecting the debug instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Creating your project structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Creating the STVD workspace for your project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Checking the selected compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Select the MCU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Copy stm8s.h to Include Files/FWLib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
No libraries linked . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Linking the STM8S standard firmware library - step 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Linking the STM8S standard firmware library - step 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Linking the STM8 touch sensing library - step 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Linking the STM8 touch sensing library - step 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Selecting the project configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Building your project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Building successful message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Debugging your application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Peripheral registers window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Watch window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
STVD online help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Doc ID 16499 Rev 3
List of figures
5/42

Related parts for STM8S-DISCOVERY