I have a question in the annex.
1)Can you please give a brief about the application?
2)What is the device which is sending the data to FX2LP over GPIF?
3)Are you sure the data is being sent continously by the device?
4) Why are you using Fifoflag for GPIF? Why cant you use GPIF Byte Count as a flag?
Explaining your apllication will help us understand better about the data pattern being received by FX2Lp over GPIF.
See the annex, please!
In your state machine I have noticed you are not incrementing the fifo pointer. Please check because when you are reading fifo you have to accomodate incrementing pointer in the state machine as well.
Please the project associated with this AN to understand what i am saying: http://www.cypress.com/?rID=39392