R01UH0823EJ0100 Rev.1.00 Page 1713 of 1823
Jul 31, 2019
RX23W Group 50. Flash Memory (FLASH)
50.10.4 Boot Mode Status Inquiry
This command is used to check the current state and which type of an error occurred immediately after a command
issued in the boot program.
Table 50.16 and Table 50.17 list a state or error that the MCU responds to.
The boot mode status inquiry command can be used in the inquiry/setting host command wait state and program/erase
host command wait state.
Size (1 byte): Total bytes of “State” and “Error” (the value is always 02h)
State (1 byte): MCU’s current state (see Table 50.16)
Error (1 byte): Information about the error occurred in response to a command issued immediately before (see Table 50.17)
SUM (1 byte): Value that is calculated so the sum of response data is 00h
Note 1. Refer to Figure 50.31
for details on the state transitions.
Command 4Fh
Response 5Fh Size State Error SUM
Table 50.16 Information Regarding the States
Code State*
1
Description
11h Inquiry/setting host command wait state Device selection wait state
12h/13h Operating frequency selection wait state
1Fh Program/erase host command wait state transition command wait
state
31h Boot mode ID code authentication state The user area and data area are being erased
3Fh Program/erase host command wait state Program/erase command wait state
4Fh Program data reception wait state
5Fh Block erase specification wait state
Table 50.17 Error Information
Code Description
00h No error
11h SUM error
21h Device code error
24h Bit rate selection error
29h Block start address error
2Ah Address error
2Bh Data length error
51h Erase error
52h Not blank (blank check error)
53h Program error
61h ID code do not match
63h ID code do not match and erase error
80h Command error
FFh Bit rate automatic adjustment error