![](/images/new-backgrounds/1142212/142212211x1.webp)
Interface
(5)WRITE LONG (X’32’ or X’33’)
This command operates similarly to the WRITE SECTOR(S) command except that the device writes the data and the ECC bytes transferred from the host system to the disk medium. The device does not generate ECC bytes by itself. The WRITE LONG command supports only single sector operation.
The number of ECC bytes to be transferred is fixed to 4 bytes and can not be changed by the SET FEATURES command.
This command is operated under the following conditions:
•READ LONG issued → WRITE LONG (Same address) issues sequence (After READ LONG is issued, WRITE LONG can be issued consecutively.)
If the above condition is not satisfied, WRITE LONG Data becomes an uncorrectable error for subsequent READ command.
•Error reporting conditions
(1)A specified address exceeds the range where write operations are allowed (after a transfer of dummy data, ST = 51h, ER = 10h).
(2)The range where write operations are allowed will be exceeded by an address during a write operation (after a transfer of dummy data, ST = 51h, ER = 10h).
(3)A write fault was detected when the write cache was disabled (ST = 71h, ER = 10h).
(4)While the write cache is enabled, if the status indicating a completed transfer (STS = 50h) is returned and a data write operation failed because a write fault was detected during the data write operation, Abort will be returned for all subsequent ATA commands (ST = 71h, ER = 04h). This state is cleared the next time that the device is turned on.
(5)A SATA communication error occurred (ST = 51h, ER = 14h).
(6)An error other than the above errors occurred (ST = 51h, ER = 04h).