ATAPI BadPhaseError After FirstRead[Reading Too Much/Solved]
Posted: Tue Oct 06, 2009 1:51 am
Hi -
What do I need to do after a read in order to read the next sector, because after I read one sector if I try to read another one right after the first, I receive the bad phase error. I am not currently checking for irqs, all polling for BSY bit to clear. I am receiving the data, the disk is spinning, everything you would expect is working well, up until I try to read another sector.
Steps I take in my read function to send packet and retrieve data --
01. Select device
02. wait for BSY to clear
03. write PKT CMD
04. wait for BSY to clear
05. send packet (read sector)
06. wait BSY to clear
07. read in data
-- thank you
What do I need to do after a read in order to read the next sector, because after I read one sector if I try to read another one right after the first, I receive the bad phase error. I am not currently checking for irqs, all polling for BSY bit to clear. I am receiving the data, the disk is spinning, everything you would expect is working well, up until I try to read another sector.
Steps I take in my read function to send packet and retrieve data --
01. Select device
02. wait for BSY to clear
03. write PKT CMD
04. wait for BSY to clear
05. send packet (read sector)
06. wait BSY to clear
07. read in data
-- thank you