resets a DMA channel?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi

   

  I use the following this method tried to reset a DMA channel in the slave sync fifo example

   

   CyU3PDmaChannelReset(&glChHandleSlFifoPtoU);
     /* Flush the Endpoint memory */
         CyU3PUsbFlushEp(CY_FX_EP_CONSUMER);
         /* Set DMA channel transfer size. */
         CyU3PDmaChannelSetXfer (&glChHandleSlFifoPtoU, CY_FX_SLFIFO_DMA_TX_SIZE); 

   

   In USB2.0 mode is executed with operation no problem,But in USB3.0 mode will be a mistake .how to solve?
 

   

Regards,

   

lian.

0 Likes
2 Replies
Anonymous
Not applicable

Please try as it is mentioned below:

   

CyU3PDmaChannelReset (&glChHandleSlFifoPtoU);
                    CyU3PUsbFlushEp(CY_FX_EP_CONSUMER);
                    CyU3PUsbResetEp (CY_FX_EP_CONSUMER);
                    CyU3PDmaChannelSetXfer (&glChHandleSlFifoPtoU, CY_FX_SLFIFO_DMA_TX_SIZE);

   

Regards,

   

sai krishna.

0 Likes
Anonymous
Not applicable

Thanks a million!

0 Likes