Datasheet

DescriptionOption byte no.
ReservedOPT6
ReservedOPT7
BL[7:0] Bootloader option byteOPTBL
For STM8S products, this option is checked by the boot ROM code
after reset. Depending on the content of addresses 0x487E, 0x487F,
and 0x8000 (reset vector), the CPU jumps to the bootloader or to
the reset vector. Refer to the UM0560 (STM8L/S bootloader manual)
for more details.
For STM8L products, the bootloader option bytes are on addresses
0xXXXX and 0xXXXX+1 (2 bytes). These option bytes control
whether the bootloader is active or not. For more details, refer to the
UM0560 (STM8L/S bootloader manual) for more details.
Table 14: Description of alternate function remapping bits [7:0] of OPT2
Description
(1)
Option byte no.
AFR7 Alternate function remapping option 7OPT2
0: AFR7 remapping option inactive: Default alternate function
(2)
.
1: Port D4 alternate function = BEEP.
AFR6 Alternate function remapping option 6
0: AFR6 remapping option inactive: Default alternate functions
(2)
.
1: Port B5 alternate function = I
2
C_SDA; port B4 alternate function
= I
2
C_SCL.
AFR5 Alternate function remapping option 5
0: AFR5 remapping option inactive: Default alternate functions
(2)
.
1: Port B3 alternate function = TIM1_ETR; port B2 alternate function
= TIM1_NCC3; port B1 alternate function = TIM1_CH2N; port B0
alternate function = TIM1_CH1N.
AFR4 Alternate function remapping option 4
0: AFR4 remapping option inactive: Default alternate function
(2)
.
1: Port D7 alternate function = TIM1_CH4.
AFR3 Alternate function remapping option 3
0: AFR3 remapping option inactive: Default alternate function
(2)
.
1: Port D0 alternate function = TIM1_BKIN.
AFR2 Alternate function remapping option 2
DocID14771 Rev 1252/124
STM8S105xxOption bytes