3 Replies Latest reply on Oct 3, 2013 4:35 AM by gaya

    finish data pending error

    @126.com.2

      hello: 

         

      I am using asynchronous function build my program,and found when I call the FinishDataXfer function I will get pending error,that's because  befor I write data to FX3 I must wait for 10ms for other device control, but that's inevitable. I increase the parameter of the waitforxfer function, it's helpless.

         

      Is delay time 10ms the reason leads to pending error?what can a developer do to recover from pending error, and how can I do to deal well with the cooperate between the PC program and FPGA program.

        • 1. Re: finish data pending error
          gaya

           Hi,

             

           

             

          I did not understand your query fully. can you detail your applciation a bit more and explain teh significance of the delay?

             

           

             

          Regards,

             

          Gayathri

          • 2. Re: finish data pending error
            @126.com.2

            Hi

               

             My application is very easy. At first PC program will send 1024 data to FX3 and waitfor datain from FX3. Fx3 get the data and reset the FPGA. After reset the FPGA will write data to FX3 after 10ms. And then I will get pending error at the PC.  I found that FPGA just write data to FX3 once, then the full flag is always low(the endpoint is full). If I write data after 1ms, then the pending error will not happened. 

            • 3. Re: finish data pending error
              gaya

               Hi,

                 

               

                 

              Did you try a timeout value of infinit ein WaitForXfer? Also, how are you understanding pending erro from the host? Do you have any USB trace that shows the same? Are you referring to the pakcet pending flag?

                 

               

                 

              Regards,

                 

              Gayathri