MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: question about ATA command (WRITE SECTOR(S))
PostPosted: May 29th, 2012, 4:26 
Offline

Joined: December 20th, 2011, 22:12
Posts: 30
Location: china
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 !


Top
 Profile  
 
 Post subject: Re: question about ATA command (WRITE SECTOR(S))
PostPosted: May 29th, 2012, 7:37 
Offline
User avatar

Joined: May 5th, 2004, 20:06
Posts: 2782
Location: England
did you "send" any data after you sent ATA OP Command...?

_________________
All went well until I plugged the drive in.


Top
 Profile  
 
 Post subject: Re: question about ATA command (WRITE SECTOR(S))
PostPosted: May 29th, 2012, 21:21 
Offline

Joined: December 20th, 2011, 22:12
Posts: 30
Location: china
Thank you very much !
I've solved this problem that caused due to my careless.


Top
 Profile  
 
 Post subject: Re: question about ATA command (WRITE SECTOR(S))
PostPosted: May 30th, 2012, 18:53 
Offline
User avatar

Joined: May 5th, 2004, 20:06
Posts: 2782
Location: England
No problem :)

_________________
All went well until I plugged the drive in.


Top
 Profile  
 
 Post subject: Re: question about ATA command (WRITE SECTOR(S))
PostPosted: March 18th, 2013, 8:55 
Offline

Joined: March 18th, 2013, 8:06
Posts: 2
Location: bangalore
Can anyone please send me c code for sending 0x03(write sectors) ATA command!
Thanks in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group