| HDD GURU FORUMS http://forum.hddguru.com/ |
|
| question about ATA command (WRITE SECTOR(S)) http://forum.hddguru.com/viewtopic.php?f=7&t=23070 |
Page 1 of 1 |
| Author: | corner [ May 29th, 2012, 4:26 ] |
| Post subject: | question about ATA command (WRITE SECTOR(S)) |
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 ! |
|
| Author: | guru [ May 29th, 2012, 7:37 ] |
| Post subject: | Re: question about ATA command (WRITE SECTOR(S)) |
did you "send" any data after you sent ATA OP Command...? |
|
| Author: | corner [ May 29th, 2012, 21:21 ] |
| Post subject: | Re: question about ATA command (WRITE SECTOR(S)) |
Thank you very much ! I've solved this problem that caused due to my careless. |
|
| Author: | guru [ May 30th, 2012, 18:53 ] |
| Post subject: | Re: question about ATA command (WRITE SECTOR(S)) |
No problem |
|
| Author: | sreevidya [ March 18th, 2013, 8:55 ] |
| Post subject: | Re: question about ATA command (WRITE SECTOR(S)) |
Can anyone please send me c code for sending 0x03(write sectors) ATA command! Thanks in advance. |
|
| Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|