English
Language : 

SH7137 Datasheet, PDF (1004/1160 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 22 Flash Memory
• Inquiry on boot program state
In response to the command for inquiry on the state of the boot program, the boot program returns
an indicator of its current state and error information. This inquiry can be made in the inquiry-and-
selection state or the programming/erasure state.
Command H'4F
 Command H'4F (1 byte): Inquiry on boot program state
Response H'5F
Size
STATUS
ERROR
SUM
 Response H'5F (1 byte): Response to the inquiry regarding boot-program state
 Size (1 byte): The number of characters in STATUS and ERROR (fixed at 2)
 STATUS (1 byte): State of the standard boot program
See table 22.15, Status Codes.
 ERROR (1 byte): Error state (indicates whether the program is in normal operation or an
error has occurred)
ERROR = 0: Normal
ERROR ≠ 0: Error
See table 22.16, Error Codes.
 SUM (1 byte): Checksum
Table 22.15 Status Codes
Code
H'11
H'12
H'13
H'1F
H'31
H'3F
H'4F
H'5F
Description
Waiting for device selection
Waiting for clock-mode selection
Waiting for bit-rate selection
Waiting for transition to programming/erasure status (bit-rate selection complete)
Erasing the user MAT or user boot MAT
Waiting for programming/erasure selection (erasure complete)
Waiting to receive data for programming (programming complete)
Waiting for erasure block specification (erasure complete)
Rev. 2.00 Sep. 10, 2008 Page 978 of 1130
REJ09B0402-0200