English
Language : 

PM0212 Datasheet, PDF (1/22 Pages) STMicroelectronics – How to program the STM8TL5xxx Flash program memory and data EEPROM
PM0212
Programming manual
How to program the STM8TL5xxx
Flash program memory and data EEPROM
Introduction
This manual describes how to program Flash program memory and data EEPROM on
STM8TL5xxx microcontrollers. It applies to STM8TL5xxx devices. It is intended to provide
information to the programming tool manufacturers and to the customers who want to
implement programming by themselves on their production line.
The in-circuit programming (ICP) method is used to update the content of Flash program
memory and data EEPROM while the user software is not running. It uses the Single wire
interface module (SWIM) to communicate between the programming tool and the device.
In contrast to the ICP method, in-application programming (IAP) can use any
communication interface supported by the microcontroller (I/Os, SPI, USART, I2C, USB,
CAN...). IAP has been implemented for users who want their application software to update
itself by re-programming the Flash program memory during program execution. The main
advantage of IAP is its ability to re-program Flash program memory and data EEPROM
when the chip has already been soldered on the application board and while the user
software is running. Nevertheless, part of the Flash program memory has to be previously
programmed using ICP.
For details on memory implementation and features, registers or stack top addresses, refer
to the product datasheet.
Related documents
● STM8TL5xxx microcontroller family reference manual (RM0312)
● STM8TL5xxx datasheet
● STM8 SWIM communication protocol and debug module (UM0470)
● Basic in-application programming example using the STM8 I2C and SPI peripherals
AN2737)
April 2012
Doc ID 022351 Rev 2
1/22
www.st.com