description for my question:
- host OUT a data
- STM32 receive it
- then use USB_SIL_Write(...) to write data to TxFIFO
- finally,host execute IN command,the data can be read right.
- then STM32 USB will catch a IN interrupt.in this interrupt ISR,use
USB_SIL_Write(...) to write data to TxFIFO again
- in this condition,host can read data from device at any time correctly.
I am sure that host OUT command is OK.
if host uses OUT to send data several times, then host can not useIN command to read data from device(stm32 have no interruptresponse),but data from host received correctly.
any reply will be appreciated. |