Page 1 of 1
Floppy disk controller
Posted: Wed Nov 10, 2010 11:02 am
by melgmry0101b
Hi everyone
,
I am developing and operating system but now i want to make a Floppy Disk Controller i have made up to 10 FDCs but no one running successfully
.
and i want to read a sector from a floppy.
---------------------------
Thank you in advance.
Re: Floppy disk controller
Posted: Wed Nov 10, 2010 11:07 am
by fronty
Either your design blows or your soldering skills aren't good enough.
Oh, you meant a driver? Read the docs. It would also help helping you if you really asked something (
correctly).
Re: Floppy disk controller
Posted: Wed Nov 10, 2010 11:08 am
by NickJohnson
What has been the problem with your other attempts? Have you read the
wiki page on this?
Re: Floppy disk controller
Posted: Wed Nov 10, 2010 11:13 am
by melgmry0101b
Re: Floppy disk controller
Posted: Wed Nov 10, 2010 11:14 am
by melgmry0101b
The code is good ind VPC or Bochs but in Real hardware it doesn't run
Re: Floppy disk controller
Posted: Wed Nov 10, 2010 12:56 pm
by neon
Hello,
What is it currently doing now? How does it "not work"? What debugging have you already performed?
Please note the demo provided for that chapter uses the DMAC for data transfer so debugging steps should be performed on the DMAC interface and floppy driver software.
Re: Floppy disk controller
Posted: Wed Nov 10, 2010 5:25 pm
by melgmry0101b
Hi,
The error is :
When i start it in a real computer the error handler starts and tells me "General Protection Fault"
and when i change the DMA buffer to any hex except "0x8000" it runs but when i want to read file it stops without any reason or error.
after that i returned to the FDC chapter and run it in a real computer , it runs successfully until i attempt to read sector 10 or higher it again stops without any reason or error.
after that i changed the DMA buffer from 0x8000 to 0x6000 or anything else it runs successfully until i attempt to read sector 2 or higher it again stops without any reason or error.
Re: Floppy disk controller
Posted: Thu Nov 11, 2010 5:53 am
by Combuster
When i start it in a real computer the error handler starts and tells me "General Protection Fault"
Continue?
That's only step 1 in debugging: finding a symptom. So what is directly causing that exception? Can you trace that error further down to its origin? You should try and see how well that works