Re: HDD interface problem
watch your loop array
do for loops in c and c++ like this to avoid open buffer at 0
for(x=0;x<=255
{
read etc ...
x++;
}
sometimes people over run by using 0-256 this gives 257 data states
so one to check could be this simple
if you find partition table is corrupted
perhaps you overwrite the master boot record
to recover it use A WINDOWS 98 or less boot cd or floppy
to get the tools loaded and c prompt
use fdisk
remove any partitons if you can see it ok if not do this first then reboot
anyway once partitions removed reboot
connect as a master on primary and disconnect other drives
type fdisk /mbr
this will restore the factory master boot record and tables
and youll be able to access again once its repartitioned and formated