Bulk In Missing Data to PC in CYUSB.NET

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

cross mob
Anonymous
Not applicable

 I try to use the slavefifo mode for collecting data from fpga, and there are two problems.

   

1. When I send 2048Bytes data to 68013 , sometimes the XferData() return "true" but the EP2FIFOBCH="0x07" and the EP2FIFOBCH="0xF6",.

   

Wht some bits misisng?

   

 

   

2、When fpga have sent data to 68013,  I  used EP0 to check the EP6BUF ,the states and data are right.

   

But after I use the XferData () to get 2048 bytes and return "true" , I find the data have error, only pre 512 bytes can be collect, others 1536 bytes are "0x00".

   

Sometimes the whole data are "0x00".

   

Not only is this so,the EP2CS indicate there is only 512 bytes or 1024 bytes have been got.

   

I can't understand this problem...

   

 

   

 

   

Regards,

   

Sky.

0 Likes
3 Replies
Anonymous
Not applicable

Hi

   

 

   

Could you please share the firmware?

   

 

   

Regards,

   

Vikas.

0 Likes
Anonymous
Not applicable

Hi.

   

 

   
     The file is attached.   
   

 

   

I have added RetAll() and GetState() in EP0 vendor.

   

 

   

Regards,

   

Sky.

0 Likes
Anonymous
Not applicable

There are something wrong...

   

The file as followed:

   

 

   

https://onedrive.live.com/redir?resid=20277ECC4B235E37!16151&authkey=!AI4F6yPrfWYLnaY&ithint=file%2c...

0 Likes