Flash program memory and data EEPROM RM0016
42/449 Doc ID 14587 Rev 8
Figure 10. UBC area size definition on medium density STM8S
and STM8A with up to 32 Kbytes of Flash program memory
1. N (number of protected pages) = UBC[7:0] + 2 for UBC[7:0] > 1.
2. UBC[7:0] =0x00 means no user boot code area is defined. Refer to the datasheets for the description of the
UBC option byte.
3. The first 2 pages (1 Kbytes) contain the 128 bytes of interrupt vectors (32 IT vectors).
0x00 FFFF
0x00 FE00
0x00 FC00
0x00 FA00
0x00 F800
0x00 8800
0x00 8600
0x00 8400
0x00 8200
Page 63
Page 62
Page 61
Page 60
Page 3
Page 2
Page 1
Page 0
0x00 8000
UBC[7:0] =0x01
512 bytes
512 bytes
512 bytes
512 bytes
512 bytes
512 bytes
512 bytes
1K to 32 Kbytes
1 Kbytes
UBC[7:0] =0x3E
32 Kbytes
User boot code area
UBC[7:0] =0x02
2 Kbytes
0x00 807F
Interrupt vector table