Product overview
STM8S003F3 STM8S003K3
This divides the program memory into two areas:
•
•
Main program memory: 8 Kbytes minus UBC
User-specific boot code (UBC): Configurable up to 8 Kbyte
The UBC area remains write-protected during in-application programming. This means that
the MASS keys do not unlock the UBC area. It protects the memory used to store the boot
program, specific code libraries, reset and interrupt vectors, the reset routine and usually
the IAP and communication routines.
Figure 2. Flash memory organization
2SWLRQꢆE\WHV
'DWDꢆ((3520ꢆꢇꢅꢉꢄꢆE\WHVꢈ
3URJUDPPDEOH
DUHDꢆIURPꢆꢁꢂꢆE\WHV
8%&ꢆDUHD
5HPDLQVꢆZULWHꢆSURWHFWHGꢆGXULQJꢆ,$3
ꢇꢅꢆSDJHꢈꢆXSꢆWRꢆ
ꢄꢆ.E\WHV
ꢇLQꢆꢅꢆSDJHꢆVWHSVꢈ
/RZꢆGHQVLW\
)ODVKꢆSURJUDP
PHPRU\
ꢇꢄꢆ.E\WHVꢈ
3URJUDPꢆPHPRU\ꢆDUHD
:ULWHꢆDFFHVVꢆSRVVLEOHꢆIRUꢆ,$3
06ꢀꢁꢂꢃꢄ9ꢅ
Read-out protection (ROP)
The read-out protection blocks reading and writing the Flash program memory and data
EEPROM memory in ICP mode (and debug mode). Once the read-out protection is
activated, any attempt to toggle its status triggers a global erase of the program and data
memory. Even if no protection can be considered as totally unbreakable, the feature
provides a very high level of protection for a general purpose microcontroller.
14/103
DocID018576 Rev 5