FX3 - Cannot Transfer Data Out using Control Center | Cypress Semiconductor
FX3 - Cannot Transfer Data Out using Control Center
I have created a simple GPIF using the GPIF II Designer utility (Slave interface, external clock, synchronous transfer, 16-bit databus). The configuration has 3 states, as shown in the attached image. After building and creating the .img file with the Eclipse EZ-USB Suite and and loaded it to RAM via Control Center, I was able to perform successful data transfer IN from a 4-bit counter w/ external clock of 10 MHz.
However, I am not able to successfully transfer data OUT. I changed the bulk IN endpoint to a bulk OUT endpoint by changing CY_FX_EP_CONSUMER in the firmware header file from '0x81' to '0x01'. I've also changed the action in the DMAREADY state from 'IN_DATA' to 'DR_DATA'. When I attempt the data transfer OUT, the Control Center's console gives the message "BULK OUT transfer failed with Error CodeL 997". After inspecting the source code, it seems that bulkEpt.XferData(ref buffer, ref bytes, IsPkt) times out and changes ref bytes to 0. Would anyone be able to tell why this function is failing? I am thinking I may have missed changing something in the firmware from an IN endpoint to OUT enpoint, but cannot find what this may be. Thanks for the help.