
DocID16139 Rev 5
AN3029
STM8 development tools
41
8
STM8 development tools
Typically, the following tools are needed to get started:
•
STVD for integrated development environment
•
STM8 C compiler (from Cosmic, Raisonance, or IAR)
•
ST toolset and STM8 firmware library from STMicroelectronics
STM8L101xx standard peripheral library,
STM8L05x/STM8L15x/STM8L16x/STM8AL31x/STM8AL3Lx standard peripheral
library
•
STM8 evaluation board from STMicroelectronics (STM8L101-EVAL for STM8L101xx,
STM8L1526-EVAL for medium density STM8L15xxx and STM8AL31xx/STM8AL3Lxx,
and STM8L1528-EVAL for high density STM8L15xxx/STM8L162xx)
•
If you use STM8L101-EVAL, you also need the HW SWIM debug interface "Rlink" from
Raisonance and ST-Link or STice-SWIM. The debug interface ST-LINK is included in
STM8L1526-EVAL and STM8L1528-EVAL.
•
STM8L-DISCOVERY
8.1
Single wire interface module (SWIM)
8.1.1 SWIM
overview
In-circuit debugging mode or in-circuit programming mode are managed through a single
wire hardware interface based on an open-drain line, featuring ultra fast memory
programming. Coupled with an in-circuit debugging module, the SWIM also offers a non-
intrusive read/write to RAM and peripherals. This makes the in-circuit debugger extremely
powerful and close in performance to a full-featured emulator.
The SWIM pin can be used as a standard I/O (with 8 mA capability) which has some
restrictions if the user wants to use it for debugging. The most secure way to use it is to
provide a strap option on the PCB. Please refer to the STM8 SWIM communication protocol
and debug module user manual (UM0470) for more SWIM protocol details.
Figure 11. Debug system block diagram
MS32527V1
SWIM entry
Internal RC
Comm
layer
CMD
decode
DM
STM8
core
Peripheral
NVM
RAM
DBG
100 KHz Osc