Professional Documents
Culture Documents
User manual
Discovery kit with STM8S001J3M3,
STM8L001J3M3 and STM8L050J3M3 MCUs
Introduction
The STM8-SO8-DISCO helps to discover features of STM8S Value Line and STM8L Value
Line devices available in SO8 packages. This discovery kit offers three SO8 to DIL8
modules designed with STM8S001J3M3, STM8L001J3M3 and STM8L050J3M3
microcontrollers, and allows the user to easily develop and share applications. It includes an
on-board ST-LINK/V2 to debug and program any of the embedded STM8 microcontrollers,
or even an external target by means of a SWIM connector. The STM8-SO8-DISCO is
operated by simply plugging it into a PC through a standard USB Type-A to Micro-B cable.
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
List of tables
List of figures
1 Features
2 Product marking
Evaluation tools marked as ‘ES’ or ‘E’ are not yet qualified and therefore they are not ready
to be used as reference design or in production. Any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of
these engineering sample tools as reference design or in production.
‘E’ or ‘ES’ marking examples of location:
• On the targeted STM8 that is soldered on the board (for illustration of STM8 marking,
refer to the section ‘Package information’ of the STM8 datasheet at www.st.com).
• Next to the evaluation tool ordering part number, that is stuck or silkscreen printed on
the board
3 System requirements
4 Development toolchains
5 Demonstration software
6 Ordering information
STM8S001J3M3
STM8-SO8-DISCO STM8L001J3M3
STM8L050J3M3
The STM8-SO8-DISCO has been designed around three STM8 microcontrollers available
in SO8 package: STM8S001J3M3, STM8L001J3M3 and STM8L050J3M3. To ease the
evaluation, each STM8 device is mounted on individual and breakable SO8 to DIL8 module.
Figure 2 helps users to locate the different features of the STM8-SO8-DISCO board.
67/,1.0LFUR%
86%FRQQHFWRU 67/,1.
FRPPXQLFDWLRQ/('
6:,0H[WHUQDO
FRQQHFWRU
,''MXPSHU
',/VRFNHW 8VHUSXVKEXWWRQ
8VHU/('
6706-0',/ 670/-0',/
PRGXOH PRGXOH
670/-0',/
PRGXOH
06Y9
PP
PP
PP
PP
PP
PP PP
06Y9
STM8S001J3M3 (U2) SB1, SB2, SB3 SB4, SB5, SB6, SB7, SB8, SB9
STM8L001J3M3 (U7) SB4, SB5, SB6 SB1, SB2, SB3, SB7, SB8, SB9
STM8L050J3M3 (U10) SB7, SB8, SB9 SB1, SB2, SB3, SB4, SB5, SB6
Note: Practically, only SB1, SB4 and SB7 are used to redirect the SWIM signal to the selected
STM8 device. But to prevent conflict on GPIOs used for the user push-button and LED, it is
preferable to also configure others solder bridges.
Note: When plugging the DIL8 module to the socket, please pay attention to the pin 1.
1 NC Not connected
2 SWIM Serial wire interface module
3 VSS Ground
4 NRST Reset of STM8 device
7.2.4 Driver
Before connecting the STM8-SO8-DISCO board to a Windows PC via USB, a driver for the
ST-LINK/V2 must be installed. It can be downloaded from the www.st.com website.
In case the STM8-SO8-DISCO board is connected to the PC before installing the driver, the
PC device manager may report the interface as ‘Unknown’.
To recover from this situation, after installing the dedicated driver, the association of the
‘Unknown’ USB device found on the STM8-SO8-DISCO board to this dedicated driver, must
be updated in the device manager manually.
The tricolor LED (green, orange, red) LD2 (COM) provides information about ST-LINK
communication status:
• Slow blinking Red/Off: at power-on before USB initialization
• Fast blinking Red/Off: after the first correct communication between the PC and
ST-LINK/V2 (enumeration)
• Red LED On: when the initialization between the PC and ST-LINK/V2-1 is complete
• Green LED On: after a successful target communication initialization
• Blinking Red/Green: during communication with target
• Green On: communication finished and successful
• Orange On: Communication failure
1 GPIO1/SWIM 8 PC6/PD1/PD3/PD5
2 GPIO2 1 PA1/PD6
3 GND 2 Ground
4 VDD 4 Power supply
5 GPIO3 5 PA3/PB5
6 GPIO4 6 PB4
7 GPIO5 7 PC3/PC4/PC5
8 GPIO6 NC Not connected
1.8 V voltage regulator
N/A N/A 3
decoupling capacitor
1 GPIO1/SWIM 1 PA0/PC3/PC4
2 GPIO2 2 PA2/PA4/PA6
3 GND 3 Ground
4 VDD 4 Power supply
5 GPIO3 5 PB3/PB5/PD0
6 GPIO4 6 PB6
7 GPIO5 7 PB7/PC0
8 GPIO6 8 PC1/PC2
1 GPIO1/SWIM 1 PA0/PA2/PC6
2 GPIO2 2 PA3
3 GND 3 Ground
4 VDD 4 Power supply
5 GPIO3 5 PB3/PB5/PD0
6 GPIO4 6 PB6
7 GPIO5 7 PB7/PC0
8 GPIO6 8 PC1/PC4/PC5
Electrical schematics
U_ST-LinkV2_SWIM U_Button-Led-ProgSocket U_STM8S001J3_Module
ST-LinkV2_SWIM.SchDoc Button-Led-ProgSocket.SchDoc STM8S001J3_Module.SchDoc
STM8S001J3_USER_B STM8S001J3_USER_B
T_SWIM T_SWIM STM8S001J3_USER_LED STM8S001J3_USER_LED
STM8S001J3_T_SWIM STM8S001J3_T_SWIM
U_STM8L001J3_Module
U_Mechanical STM8L001J3_Module.SchDoc
Mechanical.SchDoc
STM8L001J3_USER_B STM8L001J3_USER_B
STM8L001J3_USER_LED STM8L001J3_USER_LED
STM8L001J3_T_SWIM STM8L001J3_T_SWIM
UM2339 Rev 1
U_STM8L050J3_Module
STM8L050J3_Module.SchDoc
STM8L050J3_USER_B STM8L050J3_USER_B
STM8L050J3_USER_LED STM8L050J3_USER_LED
STM8L050J3_T_SWIM STM8L050J3_T_SWIM
Title: Top
Project: STM8 SO8 Discovery
Variant: Default
UM2339
Revision: A -02 Reference: MB1383
Size: A4 Date: 11-DEC-17 Sheet: 1 of 1
Figure 5. STM8S001J3M3 module
UM2339
U1
1 8
STM8S001J3_T_SWIM 1 8
2 7
2 7 STM8S001J3_USER_B
VDD
3 6
3 6
4 5
4 5 STM8S001J3_USER_LED
DIL8-LYCONN--7.40X1.83
UM2339 Rev 1
VDD U2
1 8
PA1/PD6 PC6/PD1/PD3/PD5
2 7
VSS/VSSA PC3/PC4/PC5
3 6
VCAP PB4
4 5
VDD/VDDA PA3/PB5
STM8S001J3M3
C2 C3
1uF 100nF
Electrical schematics
Title: STM8S001J3 module
Project: STM8 SO8 Discovery
Variant: Default
Revision: A -02 Reference: MB1383
Size: A4 Date: 11-DEC-17 Sheet: 3 of 8
19/26
Figure 6. STM8L001J3M3 module
20/26
Electrical schematics
U5
1 8
STM8L001J3_T_SWIM 1 8
2 7
2 7 STM8L001J3_USER_B
VDD
3 6
3 6
4 5
4 5 STM8L001J3_USER_LED
DIL8-LYCONN--7.40X1.83
UM2339 Rev 1
U7
1 8
PA0/PC3/PC4 PC1/PC2
VDD
2 7
PA2/PA4/PA6 PB7/PC0
3 6
VSS PB6
4 5
VDD PB3/PB5/PD0
STM8L001J3M3
C7
100nF
UM2339
Revision: A -02 Reference: MB1383
Size: A4 Date: 11-DEC-17 Sheet: 4 of 8
Figure 7. STM8L050J3M3 module
UM2339
U9
1 8
STM8L050J3_T_SWIM 1 8
2 7
2 7 STM8L050J3_USER_B
VDD
3 6
3 6
4 5
4 5 STM8L050J3_USER_LED
DIL8-LYCONN--7.40X1.83
UM2339 Rev 1
U10
1 8
PA0/PA2/PC6 PC1/PC4/PC5
VDD
2 7
PA3 PB7/PC0
3 6
VSS/VSSA PB6
4 5
VDD/VDDA PB3/PB5/PD0
STM8L050J3M3
C19
100nF
Electrical schematics
Title: STM8L050J3 module
Project: STM8 SO8 Discovery
Variant: Default
Revision: A -02 Reference: MB1383
Size: A4 Date: 11-DEC-17 Sheet: 5 of 8
21/26
Figure 8. Button, LED and programming socket
22/26
Electrical schematics
3V3_STLINK
1
2
HW1
USER B1
SW_BLUE
BLUE HAT
3
4
R15
1K
R14
100K C9 C12
10pF 100nF
UM2339 Rev 1
T_SWIM
STM8S001J3_T_SWIM
SB1
STM8L001J3_T_SWIM STM8S001J3_USER_B
SB4 U3 SB2
1 8
STM8L050J3_T_SWIM 1 8 STM8L001J3_USER_B
SB7 SB5
VDD 2 7
2 7 STM8L050J3_USER_B
SB8
3 6
3 6 STM8S001J3_USER_LED
SB3
4 5
4 5 STM8L001J3_USER_LED
SB6
STM8-MODULE-DIL8-SOCKET STM8L050J3_USER_LED
C1 SB9
1uF
LD1
R13
510R
GREEN
GND
UM2339
Revision: A -02 Reference: MB1383
Size: A4 Date: 11-DEC-17 Sheet: 6 of 8
Figure 9. ST-LINK/V2
UM2339
3V3_STLINK
3V3_STLINK
R6 R3 T_SWIM
C4 C13 C5 C10
100nF 100nF 100nF 100nF R8 680R 680R
R7 4K7
SWIM_IN R5 SWIM R1 CN1
100K
STLINK_SWCLK
220R 47R 1
SWIM_RST_IN
NC
2
SWIM
SWIM_RST
3
PWR_EXT
R4 R2
SWIM_IN
SWIM_IN
SWIM_RST_IN SWIM_RST VSS
4
3V3_STLINK 220R 47R NRST
SWIM
Board Ident: PC13=0 SWIM
R9 10K U4
1 6
IO1 IO_1
R11 10K 3V3_STLINK 2 5
48
47
46
45
44
43
42
41
40
39
38
37
GND VBUS 3V3_STLINK
3 4
IO2 IO_2
PA15/JTDI
VDD_3
VSS_3
PB9
PB8
BOOT0
PB7
PB6
PB5
PB4/JNTRST
PB3/JTDO
JTCK/SWCLK
USBLC6-2P6
C8 C6 3V3_STLINK
10pF 10pF 1 36 3V3_STLINK CN2
VBAT VDD_2
2 35 3V3
PC13 VSS_2 1
X1 3 34 STLINK_SWDIO SWCLK STLINK_SWCLK
PC14 JTMS/SWDIO 2
4 33 STLINK_USB_D_P LD2 VSS
PC15 PA12 3
STLK_OSC_IN 5 32 STLINK_USB_D_N Green SWDIO STLINK_SWDIO
OSCIN PA11 4
NX3225GD-8.00MSTLK_OSC_OUT 6 31
OSCOUT PA10 R18
STLK_RST 7 30 LED_STLINK 3 4 RESERVED
NRST PA9
8 29 330R
3V3_STLINK VSSA PA8
9 28
VDDA PB15
UM2339 Rev 1
PB2/BOOT1
PA2 PB12
R17 4K7 Red
LD_BICOLOR_CMS
VDD_1
VSS_1
COM
PB10
PB11
PA3
PA4
PA5
PA6
PA7
PB0
PB1
U6
13
14
15
16
17
18
19
20
21
22
23
24
STM32F103CBT6
SWIM_IN
3V3_STLINK
SWIM
5V_STLINK 3V3_STLINK HW7
3V3_STLINK
U11 LD3985M33R JP1 VDD
5V_STLINK 1 Vin Vout 5
R12 3 IDD
INH
1K5 GND BYPASS
CN3
4
1
VBUS C18 C17 C14 C15
2 STLINK_USB_D_N C16
DM
USB_Micro-B receptacle
Electrical schematics
5
GND
6 R10
Shield 100K
7 U8
Shield
8 1 6
Shield IO1 IO_1
9 2 5
Shield GND VBUS 5V_STLINK
10 3 4 CN6 CN7
EXP IO2 IO_2
11 HW8 HW9
EXP
USBLC6-2P6
USB_uB_105017-0001 Title: ST-Link/V2 SWIM mode
USB STLink Project: STM8 SO8 Discovery
CN5 CN4
HW10 HW11 Variant: Default
Revision: A -02 Reference: MB1383
Size: A4 Date: 11-DEC-17 Sheet: 7 of 8
23/26
Federal Communications Commission (FCC) and Industry Canada (IC) Compliance UM2339
Revision history
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order
acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or
the design of Purchasers’ products.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.