USB superspeed peripherals Forum Discussions
Hi,
I use GPIF II (master async mode) to access external device, the signals of DQ0-DQ27 are OK, but DQ28-DQ31 is not work! no signal be sent out. anyone can help me?
here is my init code:
io_cfg.useUart = CyTrue;
io_cfg.useI2C = CyFalse;
io_cfg.useI2S = CyFalse;
io_cfg.useSpi = CyFalse;
io_cfg.isDQ32Bit = CyTrue;
io_cfg.lppMode = CY_U3P_IO_MATRIX_LPP_DEFAULT;
/* No GPIOs are enabled. */
io_cfg.gpioSimpleEn[0] = 0;
io_cfg.gpioSimpleEn[1] = 0;
io_cfg.gpioComplexEn[0] = 0;
io_cfg.gpioComplexEn[1] = 0;
status = CyU3PDeviceConfigureIOMatrix (&io_cfg);
I have a problem with the Endpoint-Timeouts. To send commands to the FX3 I have added two Bulk-Endpoints (0x02 and 0x82 / MANUAL_IN and MANUAL_OUT).
The main loop on the FX3 is very similar to the one in “cyfxbulklpmaninout”.
I am waiting for a command, “doing something”, and sending an answer.
“Doing something” will last some time. To show the problem I have extended this time to 10 seconds.
I have also modified the “USB Control Center” (.NET) and set the timeout for the endpoint from 2 seconds to 20 seconds.
Now I am sending a command (8 Bytes) with the “USB Control Center” to the FX3 and trying to read the answer (128 Bytes). The following happens.
FX3 in USB 2.0 Mode:
-
-
- 10 Seconds after sending the command I am receiving the answer.
FX3 in USB 3.0 Mode:
- I am sending the command (EP 0x02)
- I am reading the answer (EP 0x82)
- 20 Seconds after trying to read the answer I am getting an Error (997)
- I am reading the answer again and getting it immediately
The USB 2.0 behavior is what I am expecting. I am starting the transfer with XferData and receiving an answer when it is sent by the FX3. If no answer is sent, I will get the Timeout-Error after 20 seconds.
The USB 3.0 behavior looks to me like XferData is always waiting until timeout occurs, when the data is not already available. Is this the way it should work?
To solve this, I did change the endpoint timeout to 10ms in my application and retrying the transfer in case of a timeout. However with this I have got some lost answers (seen with USB 2.0). Looks to me like an answer may get lost, when it comes almost at the same time when the timeout occurs
Any hints how I can handle this?
Show Less
Hi,
is it possible to use the FX3 without connecting via USB. In my application the FX3 should act as µC only, the USB connection should be optional.
thanks,
lpcy
Hi
I want to store the FX3 firmware and FPGA bitstream in the same SPI flash. The FX3 should then boot from SPI then allow the FPGA to configure. I would also like to be able to update the data in the flash using a Windows app. I know control centre allows the SPI flash to be written, but in a real app the device would enumerate without the boot loader. So I think that code inside the FX3 firmware would need to take care of writing data from Windows to the flash memory. Or maybe there is an alternative?
Thanks
Show LessHi All,
If you are developing your application using FX3 in Linux platform, please find the FX3 SDK for Linux in the below given web page.
http://www.cypress.com/?rID=57990
Regards,
sai krishna.
Show Less