R01UH0823EJ0100 Rev.1.00
Page 1708 of 1823
Jul 31, 2019
RX23W Group
50. Flash Memory (FLASH)
50.9.1.1
Boot Mode ID Code Protection
Boot mode ID code protection disables reading and programming of the user area and data area when the serial
programmer is connected by the third party.
When the control code indicates 45h or 52h (boot mode ID code protection is enabled), the MCU compares 16-byte ID
code sent from the serial programmer with the ID code in the user area. According to the comparison result, reading and
programming the user area and data area are enabled.
When the control code indicates a value other than 45h and 52h (boot mode ID code protection is disabled), all blocks in
the user area and data area are erased, and reading and programming the user area and data area are enabled.
The control code is used to enable or disable protection.
lists the specifications of boot mode ID code
shows the authentication flow of boot mode ID code protection.
ID code 1 to ID code 15 can be set to any desired value.
However, only when disabling connection with the serial programmer, the ID codes must be set to 50h, 72h, 6Fh, 74h,
65h, 63h, 74h, FFh, FFh, FFh, FFh, FFh, FFh, FFh, and FFh (from the ID code 1 field to the ID code 15 field).
Table 50.13
Boot Mode ID Code Protection Specifications
ID Code
Protection
ID Code
Matching
Result
Operation
Control
Code
ID Code 1 to
ID Code 15
45h
Any desired value
Enabled
Matched
Exit the boot mode ID code authentication state and enter the
program/erase host command wait state.
Not matched
Continue the boot mode ID code authentication state.
Not matched
three times
consecutively
Erase all blocks in the user area and data area, and continue
boot mode ID code authentication state.
52h
50h, 72h, 6Fh, 74h,
65h, 63h, 74h, FFh,
..., and FFh
(8 bytes are all FFh)
Enabled
N/A
Disable reading or rewriting of the flash memory, regardless
of the codes sent from the serial programmer.
Other than above
Matched
Exit the boot mode ID code authentication state and enter the
program/erase state.
Not matched
Continue the boot mode ID code authentication state.
Other than
above
Any desired value
Disabled
N/A
Erase all blocks in the user area and data area.