-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am having trouble using glip_read_b function with FX3 #62
Comments
Thanks @chunyen627 for this report. I'm not sure I fully understand your problem, so let me summarize what I understood. Please correct me where I'm wrong.
Questions:
|
FX3 firmware : SlaveFifoSync32.img I have modified the hardware demo code,modified glip logic and added command decoder circuit. rv = glip_read_b(glip_ctx, 0, read_block_size, read_data, &size_read,0);I have to track the util.c code and see that the program will stop at rv = cbuf_wait_for_level_change(buf, level); Currently using the solution for reading back large files, set read_block_size to 128 Kbytes as a unit, read back and merge data with loops. |
Ah ok, so my understanding was not fully correct. You send (host -> device) a command of 20 byte, and then the FPGA sends 1 GB of data. So the problem is only the receive path on the host? As a first debugging step, could you set a breakpoint at in the receive loop of |
I refer to the loopback_measure.c program and modify it to perform from PC to FPGA memory 1GB data write and read tests.
I tried to call glip_write_b and glip_read_b function, Both Parameters size(length of data) are set to 1GB data size,
glip_write_b function can successfully write 1GB data to FPGA memory, but when executing glip_read_b ,print (Error while reading from GLIP. )
I found that the value of the parameters size of the glip_read_b function cannot be too large.
Later I tried to change the value to read 150KB,if the value of the parameter size greater than 150Kbyte ,FX3 will not respond. (blocking)
Is there a limit to reading back large files? How can I read back large files at once?
Thank you.
The text was updated successfully, but these errors were encountered: