Hello,
I'm working with a custom board based on the C6746. We need to transfer data from the attached SD card to a host computer over USB. I implemented the mass-storage code from the example code from starterware. It works fine using a windows host. However, using an apple with OSX, the host doesn't see the device as a disk.
I added printf's in USBDSCSICommand (in usbdmsc.c), to see what commands get in. This is what I get:
SCSI_TEST_UNIT_READY
SCSI_REQUEST_SENSE
SCSI_INQUIRY_CMD
SCSI_TEST_UNIT_READY
Allow usb access: 1
SCSI_REQUEST_SENSE
SCSI_INQUIRY_CMD
SCSI_TEST_UNIT_READY
SCSI default: 1e
SCSI_REQUEST_SENSE
SCSI_READ_CAPACITY
SCSI default: 5a
Then all transfers just stop.
I did change the code a bit, so the user can allow or disallow access to the SD card. That's the "allow usb access" log line.
Any idea what is going on? Do I need to implement command 0x5a? But that is (from what I find) only used for usb-attached floppy disk. So why is OSX sending that command?
Thanks,
Michiel