(7)
EXECUTE DEVICE DIAGNOSTIC (X '90')
This command performs an internal diagnostic test (self-diagnosis) of the device.
The device reports the diagnostic result and status to the host.
Table 5.6 lists the diagnostic code written in the Error field which is 8-bit code.
Code
X '00'
X '01'
X '02'
X '03'
X '04'
X '05'
X '06'
Note:
•
Error reporting conditions
(1) A SATA communication error occurred (ST = 51h, ER = 14h).
At command issuance (Shadow Block Registers setting contents)
CM
DH
CH
CL
SN
SC
FR
At command completion (Shadow Block Registers contents to be read)
ST
DH
CH
CL
SN
SC
ER
C141-E293
Table 5.6 Diagnostic code
Result of diagnostic
Format Unit is not completed.
No error detected.
HDC diagnostic error
Data buffer diagnostic error
Memory diagnostic error
Reading the system area is abnormal.
Calibration abnormal
The device responds to this command with the result of
power-on diagnostic test.
1
0
0
x
x
x
Status information
x
x
x
Diagnostic code
1
0
0
0
x
HD No. /LBA
xx
xx
xx
xx
xx
x
HD No. /LBA
xx
xx
01H
01H
5.3 Host Commands
0
5-41