XferData

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

cross mob
Anonymous
Not applicable

Hello,

   

I am using 32 bit slave fifo interface. I send from FPGA to FX3 64 Words (total 256 bytes) with a zero lenght package at the end.

   

With C# I read using XferData with len = 1024. The function returns with len set to 256 which I expect.

   

However if I read with C++ XferData with len = 1024, I get the error 997.

   

Why is it different between C# and C++?

   

Regards,

0 Likes
4 Replies
Anonymous
Not applicable

Hi,

   

    

   

          

   

There is no difference, can you please confirm if you are updating the timeout value of endpoint in CyAPi.lib.

   

Thanks,

   

sai krishna.

0 Likes
Anonymous
Not applicable

I played also with Timeout but it returns always 997. I also tried 256 byte as transfer size, still doesn't work.

   

But all of these are working with C#. However, our application must be developed in C++.

0 Likes
Anonymous
Not applicable

I am doing a similar project. I've run my hardware with versions of the streamer application that I've built with both C# and C++. Both work the same. Whenever I see the error code 997 it's because my FPGA state machine and the FX3 are out of synchronization with each other as to when a data xfer has completed. In my design I only send a fixed number of bytes between the FX3 and any of the endpoints in the FPGA.

0 Likes
Anonymous
Not applicable

Sorry,

   

In my C++ program I had an extra Reset() call. This was the problem.

   

They are behaving same now.

0 Likes