
Host Interface
The RECEIVE DIAGNOSTIC RESULTS command transfers the results of the diagnosis specified by the SEND DIAGNOSTIC command to INIT. The RECEIVE DIAGNOSTIC RESULTS command is issued following the SEND DIAGNOSTIC command. If the command does not follow the SEND DIAGNOSTIC command or if there is no data to be transferred, the command ends normally without transferring any data.
4.3.25 WRITE BUFFER command
Table 4.70 WRITE BUFFER command
Bit | 7 | 6 | 5 |
| 4 |
| 3 |
| 2 |
| 1 | 0 |
Byte |
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
| |
0 |
|
|
| Operation Code (3Bh) |
|
|
|
| ||||
1 |
| LUN |
|
| Reserved |
|
|
|
| Mode |
| |
|
|
|
|
|
|
|
|
|
|
| ||
2 | DIML | Reserved | TNFY |
| Reserved |
|
|
|
|
| ||
|
|
|
| Buffer Offset |
|
|
|
| ||||
|
|
|
| Allocation Length |
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
| |
9 |
|
|
|
| Reserved |
|
|
|
|
|
|
The WRITE BUFFER command downloads firmware to flash ROM.
Mode must be set to 5. Otherwise, the command responds with Check Condition.
DIML must be set to 0.
If TNFY is 0 and Allocation Length is not 0, the command transfers the data to be written to flash ROM to the data buffer, checks the data for validity, then writes it to flash ROM. If TNFY and Allocation Length are both 0, the command checks the data in the data buffer for validity and writes it to flash ROM. If TNFY is 1, the command transfers the data to be written to flash ROM to the data buffer.
Allocation Length specifies the length of data to be transferred, in bytes.
Buffer Offset specifies the offset of the data to be transferred.
If the writing to flash ROM ends abnormally, the command responds with Check Condition.
If a power failure occurs or an interface cable is disconnected during downloading, flash ROM data is not guaranteed.