|
Thanks aasi!
I want to reappear SUSPEND event,but i failed. I will show details when i reappear this case.
But I find an other problem. Could you kindly explain this case.
My firmware is almost same as syncfifo project, fpga produce data to fill fx3's slave fifo, i only use P2U channel to auto commit to an IN EP.
CASE 1: when i load img to ram, after device enumerates successfully, i don't do any operation, after a time, i find CY_U3P_USB_EVENT_RESET arrived, then CY_U3P_USB_EVENT_SET_SEL, CY_U3P_USB_EVENT_SETCONF events follow. i can hear dingdong like device disconnect, but it's really reset not disconnect. i can also read data from device by application runing on PC.
CASE 2: when i load img to ram, after device enumerates successfully, i run my application to read data, after a time( this interval is shorter than case 1, and more frequently), i find CY_U3P_USB_EVENT_RESET arrived, then CY_U3P_USB_EVENT_SET_SEL, CY_U3P_USB_EVENT_SETCONF events follow. i can hear dingdong like device disconnect, but it's really reset not disconnect.
also, I find when CY_U3P_USB_EVENT_RESET event come i call CyFxSlFifoAppInStop, and when CY_U3P_USB_EVENT_SET_SEL come i call CyFxSlFifoApplnStart, the device will dead. but when CY_U3P_USB_EVENT_RESET event come i do nothing, and when CY_U3P_USB_EVENT_SET_SEL come i call CyFxSlFifoApplnStop, then CyFxSlFifoApplnStart, the device is still active. Is there difference?
Regards!
Thanks!
|