SAMA5d36 USB wrong request from host

AT91SAM9 Evaluation Boards

Moderator: nferre

Dieter
Posts: 15
Joined: Mon Sep 16, 2013 7:50 am

SAMA5d36 USB wrong request from host

Wed Jul 23, 2014 9:09 am

Hello,

I have a SAMA5D36-EK and would to implement an USB-composite-device.
With original-examples it works, but if I change the different software-soources to adapt for my project, i have a problem:
the MSD-Class (only MSD or CDS/MSD as composite)
starts, but after all the descriptor-request the host gives a "wrong" request:

Code: Select all

Frame 68: 58 bytes on wire (464 bits), 58 bytes captured (464 bits) on interface 0
USB URB
USB Mass Storage
SCSI CDB Inquiry
    [LUN: 0]
    [Command Set:Unknown (20) (0x14) ]
    [Response in: 70]
    Opcode: Inquiry (0x12)
    CMDT = 0, EVPD = 0
    Allocation Length: 36
    Control: 0x00
It should be (from working example):

Code: Select all

Frame 68: 58 bytes on wire (464 bits), 58 bytes captured (464 bits) on interface 0
USB URB
USB Mass Storage
SCSI CDB Inquiry
    [LUN: 0]
    [Command Set:Direct Access Device (0x00) ]
    [Response in: 70]
    Opcode: Inquiry (0x12)
    CMDT = 0, EVPD = 0
    Allocation Length: 36
    Control: 0x00
I do don't see differences in the first frames, that could it explain.
I have the USB analysed with USBPcapCMD and wireshark.
Also I would analyse with POCKET-MASTER USB12, but there I don't get recording.
I think there is problem the high-speed USB.
Know someone how can I force full-speed (in sama5d36-software) ?

thanks
Dieter
Dieter
Posts: 15
Joined: Mon Sep 16, 2013 7:50 am

Re: SAMA5d36 USB wrong request from host

Mon Jul 28, 2014 5:01 pm

Hello,

the problem is solved, I had not initialize the MSD.
But there are more problems.

If I use MSD it works only with DMA-Transfer (USE_DMA 1), in NO DMA there is a Problem with READ_10, the HOST initates a BUS RESET.

On the other side CDC works only in NO DMA mode.
If I send data from a terminal in DMA mode, only the number of bytes are correct, but the data itself is always 0.

thanks
Dieter

Return to “Evaluation and Development Boards”

Who is online

Users browsing this forum: No registered users and 1 guest