R01UH0823EJ0100 Rev.1.00
Page 1720 of 1823
Jul 31, 2019
RX23W Group
50. Flash Memory (FLASH)
50.10.7
ID Code Authentication Command
This command is used for ID code authentication when boot mode ID code protection is enabled.
lists ID code authentication command. This command can be used only in the boot mode ID code
authentication state.
50.10.7.1
ID Code Check
This command is used to unlock boot mode ID code protection.
The comparison ID code specified with the command should be set to the same value as the control code and ID code 1
to ID code 15.
If the comparison ID code sent from the host matches the ID code programmed in the user area, the MCU sends a
response (06h) and enters program/erase host command wait state.
If the codes do not match or the SUM of the received command does not match, the MCU sends an error response.
When the ID codes do not match three times consecutively while the control code is 45h, all blocks in the user area and
data area are erased. If an error occurs during erasure, the MCU sends an error response.
Also, even if all blocks are successfully erased, the MCU sends an error response and continues the boot mode ID code
state. Reset the MCU to enter the program/erase host command wait state.
Size (1 byte): Number of bytes of ID codes (the value is always 10h)
ID code (16 bytes): Control code (1 byte) + ID code 1 to ID code 15 (15 bytes)
SUM (1 byte): Value that is calculated so the sum of the command data is 00h
ACK (1 byte): ACK code
06h: The MCU enters the program/erase host command wait state.
Error (1 byte): Error code
11h: SUM error
61h: ID codes do not match
63h: ID codes do not match and erase error
Table 50.20 ID Code Authentication Command
Command
Function
ID code check
Compare the 16-byte code sent from the host and ID code.
Command
60h
Size
Comparison ID code (control code + ID code 1 to ID code 15)
SUM
Response
ACK
E0h
Error