R01UH0823EJ0100 Rev.1.00
Page 1712 of 1823
Jul 31, 2019
RX23W Group
50. Flash Memory (FLASH)
(3) Boot mode ID code authentication state
In this state, the MCU accepts the ID code authentication command.
When boot mode ID codes do not match, the MCU remains in the boot mode ID code authentication state.
Refer to
section 50.9.1.1, Boot Mode ID Code Protection
for details on boot mode ID code protection. Refer to
section 50.10.7, ID Code Authentication Command
for details on the ID code authentication command.
(4) Program/erase state
In this state, the MCU executes program/erase or read-check commands according to commands sent from the host.
Refer to
section 50.10.8, Program/Erase Commands
for details on program/erase commands. Refer to
for details on read-check commands.
50.10.2
Command and Response Configuration
The communication protocol is composed of a “Command” sent from the host to the MCU and a “Response” sent from
the MCU to the host. Commands include 1-byte commands and multiple-byte commands. Responses include 1-byte
responses, multiple-byte responses, and error responses.
A multiple-byte command and multiple-byte response have “Size” for informing the number of transmit/receive data
bytes and “SUM” for detecting communication errors.
“Size” indicates the number of transmit/receive data bytes excluding Command code (the first byte), Size, and SUM.
“SUM” indicates byte data that is calculated so the total bytes of Command or Response becomes 00h.
The flash memory addresses for reading are used as the following addresses: the program address specified in the
program command, the block start address specified in the block erase command, the AW start and end addresses
specified in the access window information program command, and the AW start and end addresses received in the
access window read command.
50.10.3
Response to Undefined Commands
When the MCU receives an undefined command, it sends a command error as a response. The contents of the response
are shown below. “Command code” in the error response stores the first byte of the command sent from the MCU.
Error response
80h
Command
code