UFI/CBI via EHCI: Status-Phase stalls ... WHY?
Posted: Fri Nov 26, 2010 6:08 am
Hi,
I've got a Sony USB floppy drive and want to access it with my own OS-Code. I just wrote an "OS Loader" - a simple thing running without interrupts and memory-manager so far.
I succeeded with EHCI and UHCI: I wrote the controller-drivers (EHCI & UHCI), a usb-driver and a MSB-diver. I can succesfully call INQUIRY(), READCAPACITY() and READ() on USB-Sticks.
And now I'm working on UFI/CBI. INQUIRY() works too and returns successfully:
CONTROL-PHASE:
* ADSC is accepted
* Data-Out is accepted
* Status is OK
BULK-PHASE:
* Data-In with Inquiry-Data is successful
INTERRUPT-ON-COMPLETE
* Data-In via Interrupt-Endpoint is successful
But when I send e.g. ReadCapacity, StartStop, TestUnitReady or Read10, the controller behaves as follows:
CONTROL-Phase:
* The ADSC is accepted
* The data-stage is accepted
* The Status-stage says "STALLED"
Because the USB- and Controller-Software work well for Mass-Storage-Bulk, I assume to have a general problem in my understanding of UFI/CBI.
Has anyone experiences with that, could anybody please help?
Thanks & regards,
Enrico.
I've got a Sony USB floppy drive and want to access it with my own OS-Code. I just wrote an "OS Loader" - a simple thing running without interrupts and memory-manager so far.
I succeeded with EHCI and UHCI: I wrote the controller-drivers (EHCI & UHCI), a usb-driver and a MSB-diver. I can succesfully call INQUIRY(), READCAPACITY() and READ() on USB-Sticks.
And now I'm working on UFI/CBI. INQUIRY() works too and returns successfully:
CONTROL-PHASE:
* ADSC is accepted
* Data-Out is accepted
* Status is OK
BULK-PHASE:
* Data-In with Inquiry-Data is successful
INTERRUPT-ON-COMPLETE
* Data-In via Interrupt-Endpoint is successful
But when I send e.g. ReadCapacity, StartStop, TestUnitReady or Read10, the controller behaves as follows:
CONTROL-Phase:
* The ADSC is accepted
* The data-stage is accepted
* The Status-stage says "STALLED"
Because the USB- and Controller-Software work well for Mass-Storage-Bulk, I assume to have a general problem in my understanding of UFI/CBI.
Has anyone experiences with that, could anybody please help?
Thanks & regards,
Enrico.