Floppy driver is timing out!!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
stevenup7002
Member
Member
Posts: 60
Joined: Tue Sep 20, 2005 11:00 pm
Location: Ireland
Contact:

Floppy driver is timing out!!

Post by stevenup7002 »

Hi guys, I'm having some problems with a floppy driver I'm implementing. The problem lies within the function: Read_Sectors_Floppy. Around line 196, it seems to be returning a timeout error there. I really don't know why, probably something very stupid I've done :lol: .

Heres the driver:
http://www.motronsoftware.com/files/sendla/floppy.c

Thanks for reading,
-Steve :wink:
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Hi,

Does it still timeout if you change the timer_wait value to something completely ridiculous (I'm aware you're already waiting 200ms * 4, but it may be worth a go)?

Does the problem occur on an emulator / real hardware / both?

Cheers,
Adam
User avatar
stevenup7002
Member
Member
Posts: 60
Joined: Tue Sep 20, 2005 11:00 pm
Location: Ireland
Contact:

Post by stevenup7002 »

Hi, I've set all of the timer_waits to higher and lower numbers, and it still times out on emulators and real machines.. :cry:
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

In my floppy driver I don't actually read the status register after sending the last 0xFF to the floppy drive, I simply wait for an interrupt and then read in ST0 and so on.
Post Reply