I have written a small C++ application (see attached file) that uses the ReadFromPipeOut() method to read a chunk of data and dump it to a file. When I run this on an FPGA configured with First.bit, which has no okPipeOut’s isntalled, everything seems to work fine (the data returned is 0xff) for transfers less than 524288 (2^19) in size. However, if I try a transfer of length 524300 (just 2 more bytes), the ReadFromPipeOut() returns 524300 the first time and 523778 the second time and it continues to alternate. Furthermore, if I try to transfer a 1MB (2^20) of data, it fails and returns -1. The documentation says the max read size is much larger.
This is on linux.
Any ideas on what the problem is?
ok.txt (1525 Bytes)