Data loss in continuous data transfer | Cypress Semiconductor
Data loss in continuous data transfer
I'm now working on a FX3 firmware to implement continuous data transfer.My FX3 device was interfaced to a FPGA in GPIF slave mode .The data was transfered from the FPGA to FX3 device then to my computer.
In my firmware,I created one thread and one DMA channel.The DMA channel was an AUTO_MANY_TO_ONE channel between the producer (two GPIF sockets) and consumer(a USB endpoint).The firmware is attached below
In my application,I use the APIs in cyapi.lib to implement data read They are :BeginDataXfer() ,WaitForXfer(), FinishDataXfer()
When I test the whole project ,there is always data loss. I don't know why