This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How TMS320C6747 USB controller transfer data over a bulk IN pile?

Other Parts Discussed in Thread: TMS320C6747, OMAPL138

How TMS320C6747 USB controller transfer data over a bulk IN pile?
Now working on USB(device) firmware code.The OUT transaction is good.
While it can't enter the IN transaction program (TXEP interrupt).
In the datasheet,It describes as follow:


"When a data packet is received by a Bulk Rx endpoint,the RXPKTRDY bit(bit 0 of PERI_RXCSR)is set
and an interrupt is generated."
"When data is to be transferred over a Bulk IN pipe,a data packet needs to be loaded into the FIFO and
the PERI_TXCSR register written to set the TXPKTRDY bit(bit 0).When the packet has been sent,the
TXPKTRDY bit will be cleared by the USB controller and an interrupt generated so that the next packet
can be loaded into the FIFO."


In an OUT transaction,the RXPKTRDY is set and then I can read the FIFO.
But in an IN transaction,when do I write the FIFO first time?The host IN token can't make the firmware go
 into the IN transaction program.

  • Hi Tong,

    Sorry for the delayed response. I resumed after my leave.

    To understand more about the sequence of BULK IN transaction, please refer the USB starterware example code for MAss storage devices. (OMAPL138_StarterWare_1_10_03_03: -  usb_host_msc and usblib\host ) , particularly USBHCDPipeRead() function in usbhostenum.c . The SCSI commands like INQUIRY, READCAPACITY, REQUEST_SENSE are used in the starterware code  which demonstrates how the requested commands are sent to the USB peripheral device and the necessary data are retrieved from the USB peripheral device through BULK OUT and BULK IN transaction.

    ( Note: Though I  referred you the example code of C6748 and not the C6747, I believe the transcation flow should remain same.

     

    Regards,

    Shankari

     

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------