USB superspeed peripherals Forum Discussions
I've installed the FX3 SDK on MacOS Mojave version 10.14.2 using the procedure in "Using the FX3 SDK under MacOS".
When I click on the ezUsbSuite icon in the user/Cypress/eclipse folder:
eclipse fails to launch, providing this error:
However, if I use a terminal window and cd to user/Cypress/eclipse/ezUsbSuite.app/Contents/MacOS
and then launch it from the command line:
./ezUsbSuite
it opens correctly:
How can I get eclipse to launch using the icon?
Show LessI'm using Eclipse under MacOS and trying to build the Chapter4Example1 project from SuperSpeed Device Design by Example.
When I build the project, Eclipse gives me this error:
Eclipse is looking for "cs-make" in the yagarto-4.7.2/bin directory, but there is no cs-make there:
What make utility should be used for Eclipse under MacOS and how do I configure the environment to point to it?
Show LessI am working on bringing up a CX3 platform, but I'm not able to collect enough debug information to understand what is going wrong.
I have defined the debug symbols in cycx_uvc.h
/* Uncomment the following line to provide verbose debug logging. */
#define CX3_DEBUG_ENABLED 1
/* Uncomment the following line to run the mipi error thread */
#define CX3_ERROR_THREAD_ENABLE 1
The results is the following debug log:
bRType = 0x80, bRequest = 0x6, wValue = 0x3EE, wIndex = 0x409, wLength= 0x1FE
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
AppInit:GpifSMStart passed
HM5530 Init
AppInit:GpifSMStart passed
bRType = 0x81, bRequest = 0x0, wValue = 0x0, wIndex = 0x0, wLength= 0x2
bRType = 0x80, bRequest = 0x6, wValue = 0x3EE, wIndex = 0x409, wLength= 0x1FE
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
bRType = 0xA1, bRequest = 0x81, wValue = 0x200, wIndex = 0x0, wLength= 0x1
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x100, wLength= 0x0
HM5530 Init
StpCB:In SET_FTR 0::1
EnterSuspendMode Status = 0x0, Wakeup reason = 0x8
bRType = 0x1, bRequest = 0x3, wValue = 0x0, wIndex = 0x0, wLength= 0x0
StpCB:In SET_FTR 0::1
bRType = 0xA1, bRequest = 0x81, wValue = 0x100, wIndex = 0x1, wLength= 0x22
bRType = 0x21, bRequest = 0x1, wValue = 0x100, wIndex = 0x1, wLength= 0x22
bRType = 0xA1, bRequest = 0x81, wValue = 0x100, wIndex = 0x1, wLength= 0x22
bRType = 0xA1, bRequest = 0x83, wValue = 0x100, wIndex = 0x1, wLength= 0x22
bRType = 0xA1, bRequest = 0x82, wValue = 0x100, wIndex = 0x1, wLength= 0x22
bRType = 0x21, bRequest = 0x1, wValue = 0x200, wIndex = 0x1, wLength= 0x22
AplnStrt:SMState = 0x2
bRType = 0x2, bRequest = 0x1, wValue = 0x0, wIndex = 0x83, wLength= 0x0
bRType = 0xA1, bRequest = 0x87, wValue = 0x1400, wIndex = 0x100, wLength= 0xA
The device shows up as a UVC endpoint, but shows no video.
Is there a way to understand if the device is receiving valid MIPI data, if the timing parameters are correct, or additional detail as to what might be happening?
Show LessI designed a board related to cyusb3014. When I chose to boot from USB mode, I connected it to the PC and nothing happened. No new devices were found in the device manager. But when I solder another the FLASH with firmware to this board and selected the boot mode as I2C boot, it shows "Cypress FX3 USB StreamerExample Device" in CyControl.exe(usb2.0). Does this mean that there is no problem with the design schematic and the differential line? How can I get it to boot from USB mode to download firmware?
Show LessMy application is modified from cypress slave fifo example.
I set one partial flag in GPIF designer. Polarity is active low. Init value is low. The partial flag is for thread 0. thread 0 corresponds to an out endpoint.
In the firmware. My code is CyU3PGpifSocketConfigure(0, CY_U3P_PIB_SOCKET_0,4, CyFalse,1).
Does this If the endpoints contain less than or equal to 4 32bit word. The partial flag should be asserted low?
At power up, the partial flag is high. But the endpoint is surely empty at the start.The partial flag should be low. Then I use control center to tranfer one 32bit word to this endpont. It immediately becomes low. Even When I transfer 1024 byte to this endpoint, it still be low.
This is not what I think of partial flag. Can you explain it? Thank you.
Show LessHello, I have some problem when I use "CyUSB.dll", when I run my app, the first run it, everything is ok, but for the second time, I got a message, I don't know what's that mean, could anyone help me fix it.
I use .NET4.X,
I don't program it By Visual Studio, It works fine when I develop and debug the device by Visual Studio.
Show LessBased on AN87216 (auto slave and auto master with 32 bit data bus), using Control Center to send 256 or 512 bytes from FX3's master to FX3's slave, all data can be received by slave.
When 32 bit data bus is reduced to 16 bit by modiying "#define CY_FX_GPIF_16_32BIT_CONF_SELECT (0)", relevant modification has been done in GPIF design, it seems there is problem. When master sends 512 bytes data to slave by Control Center, slave still can received 512 bytes.
However, when master sends 256 bytes data to slave, slave receive nothing. If master sends 4 more bytes, slave can received 260 bytes. That means all data can be received.
Please advise.
Show Less
Hi,
We have developed a camera sensor board with AS0260S chip using parallel interface with a Cypress FX3, but having some noisy image. The noise is static, so it wont change with time, always the same pattern. Is it more likely a hardware issue or just a misconfigured sensor?
We have tried a MT9M114 chip with the same hardware (just the sensor chip part changed) and it doesn't have this type of noise. Although we used the code from the fx3 library to initialise the chip (errata fixes, quality improvements etc.). So we might need similar code for this chip too?
Unfortunately the functions for initialising AS0260 are bundled in a static library and it is using serial interface, so we cant use that in our software.
Would it be possible to get the source code of the cy_as0260.a or at least the register configurations
(The following functions: CyCx3_ImageSensor_Init, AS0260S_Sensor_Optimization_Config, AS0260S_Patch_Load etc.)
This might need to make go this static noise and improve the image quality.
Attached files:
pixel_noise.jpg the static noisy what we are having when we cover(more visible when the image is black) the lens of the sensor chip
initialization.txt - The code how we initialise the sensor chip at the moment (one of the format settings)
Best regrads,
Benjamin
Whether the CX3 can interface to SD card vai SPI Bus?
I have problems with the stability of my application based on AN75779. When the video stream is restarted, a rare time (1/2500) occurs a DMA not ready seen from inside the GPIF state machine (! DMA_RDY_TH0). If you call: "CyU3PDmaChannelGetStatus"
- State: CY_U3P_DMA_ACTIVE
- prodXferCount: 16360
- consXferCount: 16360
This indicate that the first commit is “accepted” by the DMA.
In an attempt to solve the problem, I have changed the following:
- Change Dual-DMA to single-DMA.
- Change the video header from been added by the Fx3 to be added by the FPGA.
- Change Manual-commit to Automatic-commit.
I have tried to delete the DMA and restore it, but it does not solves the problem.
I have tried to completely delete the GPIF state machine and restore it, but it does not solves the problem.
I have tried to completely reset USB end-point and restore it, but it does not help the problem.
The problem may be in: the "GPIF state machine", the DMA or the USB Endpoint.
Can anyone help me?