2 Replies Latest reply on May 14, 2015 8:12 PM by qi.wen

    Why did I use the BeginDataXfer function to transfer data wrong?

    qi.wen

       Hello!

         

         I used the slave fifo mode to transfer data from 68013A to cpld, and used the BeginDataXfer function. While I fill the buffer with {22 2A 0B 01 01 ... 01}(total 1024bytes and EP2 is 512bytes double buffer), the fd[15:0] bus will be come {22 2A 22 2A 22 2A ... 22 2A 01 01 01 01 ... 01}(512 words 22 2A and 512 words 01 01)? Why is it, does the BeginDataXfer function can only transfer the first word and copy it 512 times inside? Has any know it?

        • 1. Re: Why did I use the BeginDataXfer function to transfer data wrong?
          vavc

           something might be wrong in your host app or firmware of fx2lp.

             

           

             

          Use USBLYZER (a free software)and see the data that is transmitted from host to PC.

             

           

             

          Then we can get to know weather host is sending the data correctly or not

             

           

             

          Regards,

             

          VIkas

          • 2. Re: Why did I use the BeginDataXfer function to transfer data wrong?
            qi.wen

             Hello!

               

               I used the stream out code in AN61345 including the code of 68013A and code of FPGA, while I used the internal clk generated by 68013A. I found that I also got the same wrong data(For example, when I sent the data of 0x2A22 0X 010B once, I got the data of 0x2A22 0x2A22 in FPGA), but when I sent only one word one time, I got the right data(For example, firstly, I sent data of 0x2A22, the next time, I sent the data of 0x010B). I do not know where is it wrong?

               

               Is the stream out code can only sent the one word(or one byte)one time or there is something else wrong?

               

               I used the cy7c68013A-56pvx.

               

                                                                                                                    qiwenbo