Anonymous
Not applicable
Jun 03, 2016
11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 03, 2016
11:16 PM
HI!
I have found that ,the FX3 Thread sockets sometimes stop work ,I register the function CyU3PPibRegisterCallback ,when I reset the endpoint which seems to stop work ,then it retun the CYU3P_PIB_ERR_THR0_SCK_INACTIVE、CYU3P_PIB_ERR_THR1_SCK_INACTIVE PIB errors.
I don't konw how to let it work back normally but repowers the FX3. Thanks!
1 Reply
Anonymous
Not applicable
Jun 08, 2016
01:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 08, 2016
01:52 PM
Hi,
Before you reset the endpoint, make sure that the DMA Channel is also handled accordingly:
Snippet for your reference:
CyU3PDmaChannelReset (&glChHandleSlFifoUtoP);
CyU3PUsbFlushEp(CY_FX_EP_PRODUCER);
CyU3PUsbResetEp (CY_FX_EP_PRODUCER);
CyU3PDmaChannelSetXfer (&glChHandleSlFifoUtoP, 0);