question about ATA command (WRITE SECTOR(S))
Posted: May 29th, 2012, 4:26
I tried to deliver a WRITE SECTOR(S) command to an ATA-DEVICE(NOT ATAPI).
I set REG_DEVICE: 0x40 | DEV REG_COUNT: 1 REG_LBA_LOW/REG_LBA_MID/REG_LBA_HIG: 0
At last I write 0x30(LBA28-WRITE SECTOR) to command register(0x1F7)
Then I poll Status Register and always get 0x58 even though the DATA-Length that I transmit to DATA-Register is larger than 512 bytes.
Someone could give me some hint ?
Thanks advance !
I set REG_DEVICE: 0x40 | DEV REG_COUNT: 1 REG_LBA_LOW/REG_LBA_MID/REG_LBA_HIG: 0
At last I write 0x30(LBA28-WRITE SECTOR) to command register(0x1F7)
Then I poll Status Register and always get 0x58 even though the DATA-Length that I transmit to DATA-Register is larger than 512 bytes.
Someone could give me some hint ?
Thanks advance !