I got continued "CYU3P_PIB_ERR_THR1_RD_UNDERRUN" flag when wrote about 200K data to FPGA with below setting:
DMA buffer size:16384
host write 16384 every time
Could U help to explain this?
If a read access is performed on an empty buffer, a buffer under-run error will occur.
Could you please explain purpose of FLAG-A and FLAG-B?
FLAGA for read ACK, FLAG for write ACK, A0 for read ready, A1 for read end.
These signal are controlled by external processor.
State transition equations of GPIF state machine are fine.
Please try with write multilple of 16KB data(ex-208KB) to FPGA.