3 Replies Latest reply on Nov 30, 2016 3:01 AM by oscargomezf_2018731

    prevent CyU3PDmaMultiChannelCommitBuffer fail with error code 71

    chien-chen.chung

      Hi,

         

      I modified the ap note AN75779 from UVC interface to bulk datastream. The CyU3PDmaMultiChannelCommitBuffer function will often fail with error code 71 when PCLK frequency is increased. I have try to increase DMA buffer as possible, but the problem still exists. The most serious is sometime when this error happens, USB bus will hang even I have do DMA reset already.

         

      I want to know if there any reliabiliy (checking) method to prevent commit buffer fail, or recovery method if the error happens. I ever tried to get the multidma status or to count the prod and cons packets to discard dma buffer, but not help.