USB superspeed peripherals Forum Discussions
Hi,
We are using the FX3 device to transfer data between FPGA and a PC. The system use the synchronous Slave FIFO interface at 100MHz with 3 endpoints.
(Auto mode DMA: CY_U3P_DMA_TYPE_AUTO)
We have noticed that if changing the size of the DMA buffer from 1024 to 32768 the last two words (8 bytes) are always corrupted!
Could you please check it?
Issy
Show LessHi guys,
I am trying to get UART debugging working on the FX3 with the UVCVideoClass example.
Unfortunately I only get garbage in my console:
Instead of the expected "App Started\r\n" I get "~_��y��} �Y = 57��" in my serial console (Which is set to 115200-8-N-1 - I only mention this because I have seen similar errors when the baudrate is not set up propperly).
This happens with every CyU3PDebugPrint.
My uart config:
uartConfig.baudRate = CY_U3P_UART_BAUDRATE_115200; uartConfig.stopBit = CY_U3P_UART_ONE_STOP_BIT; uartConfig.parity = CY_U3P_UART_NO_PARITY; uartConfig.txEnable = CyTrue; uartConfig.rxEnable = CyFalse; uartConfig.flowCtrl = CyFalse; uartConfig.isDma = CyTrue; May someone please point me in the right direction?
Greetz, ChrisShow Less
actually we are using C# streamer which has save option in that provided by Cypress ,we connected FX3 board with USB3 after that when we will run the the streamer application end points are not at all detecting(showing) in the box ,can any one help me to come out of this problem??
The thing ,we are using the Fx3 Custom Board ..
Show LessAfter an I2C update, it is possible to boot without power off the module?
Hello,
If I restart my PC running Windows 8.0 my FX3 device no longer works (power to it remains on). After the restart the USB vendor ID is 0 and the product ID is 0x20, both of which aren't what they were before the restart. Further attempts to connect to it by creating a fresh CCyUSBDevice object produce different IDs each time.
Upon power-on the device is initialized by uploading to its FPGA, which changes its USB product ID. Still, power has not been removed during the restart so it should still be in the state it was before, unless the restart is doing something to it.
How can I make it continue to work after a restart?
Hello,
Could you explain me some behaviour and dependencies of DMA?
I want to configure 1 DMA channel from P-Port to USB with several buffers.
Is it possible that P-Port socket writes data to one buffer and USB socket reads from another buffer simultaniously?
What minimal number of buffers do I need to configure for this DMA channel to do this?
How does size of one buffer depend on USB endpoint configuration?
How does number of buffers depend on USB endpoint configuration?
How does DMA ready flag depend on DMA buffers state?
Does it describe only one buffer state or all buffers state?
Does 'active' state indicate buffer readiness to write?
How does DMA watermark flag depend on DMA buffers state ?
Best regards,
Olga.
Show LessAfter using the CyU3PGpifSMStart (START, ALPHA_START); function to open the GPIF state machine, it is flagged FlagA that can be written, and it takes 1 second to detect FlagA.Why?
Show LessWe have a board where the Cypress FX3S drives 2x SDHC SD Cards, We are currently using FX3SMassStorage.img as the firmware, but it appears that it only access 1/2 the storage capacity (fdisk lists the capacity of a 2GB SDHC card as 2Mx512byte disk.
I know that the Pactron Dev Kit can read SDCard successfully. Can I have a pointer as to what firmware is loaded into the FX3S on the dev board?
Thanks In Advance
Kernel: 3.14.5
fdisk -l output:
Disk /dev/sde: 1001 MB, 1001357312 bytes
31 heads, 62 sectors/track, 1017 cylinders, total 1955776 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x45b26c0c
Disk /dev/sdd: 1001 MB, 1001390080 bytes
31 heads, 62 sectors/track, 1017 cylinders, total 1955840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20202020
Hi! I use CyU3PI2cReceiveBytes function and it returns sometimes error.
I tried the following things, but these could not solve the problem.
- Change retryCount (last parameter of CyU3PI2cReceiveBytes) to 10.
if CyU3PI2cReceiveBytes returns error,
- CyU3PBusyWait(0xFFFF) and call CyU3PI2cReceiveBytes again.
- CyU3PUsbStall(0, CyFalse, CyFalse) and call CyU3PI2cReceiveBytes again.
If CyU3PI2cReceiveBytes function returns error, how to retry? Or How to avoid error?
(I don't know which error happened, because it is a little bit hard to debug. )
Show LessHi!
I've encountered a recurring error while trying out MSC driver of USB Host example on FX3 Development Kit (CYUSB3KIT-001).
(AN77960 was my guide)
I've tried four different flash drives, and only one of them (2GB) got me response described in AN77960. One (2GB) got me only "Host connect event received" and "Host disconnect event received", the other two(8GB each) gave response shown below.
Host connect event received
Device descriptor received
Device address set
Config descriptor received
MSC device detected
Host connect event received
Application start failed with error: 74.
As it turned out after some debugging, error occurs because of an invalid CSW Signature
in CyU3PReturnStatus_t CyFxMscCheckCSW (uint8_t *csw) where csw[12] equals 1 in both cases.
csw[12] represents bCSWStatus field of CSW, thus bCSWStatus == 1 means "Command Failed", which gives me... no new information.
(http://www.usb.org/developers/docs/devclass_docs/usbmassbulk_10.pdf page 14)
All the drives are readable from Windows. I've tried formatting, just in case, it didn't help.
(Is there any list of flash drives compatible with FX3 Host Controller, maybe? If there should be one.)
Any tips or directions to the solution would be very much appreciated.
Show Less