To test the functionality of the firmware, you can perform the following.
- Assert the SLWR# pin.
- Connect the FIFOADR[1:0] pins as per the endpoint. As per your firmware, connect these pins to GND to select endpoint 2.
- Change the IFCONFIG register to use the internal clock of FX2LP.
- Use the Cypress USB Control Center to read data from the endpoint 2. FX2LP samples the FD lines and sends the data to the host. If nothing is connected to the FD lines, Control Center reads 'FF's.