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.