USB superspeed peripherals Forum Discussions
Hi,
I've added below led test function to cyfxssrammaster.c.
static void
my_led (int loop, int time)
{
for (int a = 0; a < loop; a = a + 1)
{
CyU3PGpioSetValue (LED_GPIO, CyFalse); /* Turn LED-ON */
CyU3PThreadSleep (time); /* ON-time */
CyU3PGpioSetValue (LED_GPIO, CyTrue); /* Turn LED-OFF */
CyU3PThreadSleep (time); /* OFF-time */
}
}
After firmware is loaded, I can see LED is blinking. Basically proved LED test code and HW are good.
But if I add my_led to SRAM_READ_COMMAND, led is not blinking.
This indicates SRAM_READ_COMMAND is never run.
My question is how to make the firmware run SRAM_READ_COMMAND?
Show Less
Hello,
I will develop board like below contents.
FPGA read data on external memory and transmit the data to FX3. And then, PC read the USB data.
So, I want to check USB data from FX3 to PC.
Regards,
Ham
Show LessHi,
I have checked the following discussion below for similar issue. But this does not solve my problem.
https://community.cypress.com/thread/34622?start=0&tstart=0.
In PC device manager, the device error code is 10.
I try to use EZ USB Suite and give default configuration, after download the build image into CX3 RDK,
PC device manager still show me this error.
What should I do in order to let PC can recognize this UVC camera on CX3 RDK?
Attached file is the project I used to test this issue.
Thanks
Angus
Show LessHi,
I'm trying to write NOR flash via SPI interface through the control center utility. The example code used is UsbSpiGpioMode found along with the FX3-SDK.
I'm able to send data of size 27608 bytes without any error. If the size is further increased, the program gets stuck at the function CyU3PUsbGetEP0Data.
NOR Flash used : Micron Serial NOR Flash Memory, MT25QU01GBBB
Is there anything i need to do before writing to the NOR flash?
Or is there any other method to write 81MB to the NOR flash with/without USB Control Center Utility??
Show LessI followed the CYUSB3KIT-003 SuperSpeed Explorer Kit User Guide perfectly. I runned the USBBulkSourceSinkLED and was able to see messages on UART, use the JTAG debugger and modifiy the code. However, I want to generate the the img file. I deleted the img files on both the workspace and the original place of the source code to make sure if any img file appears it will be the newly created one.
I followed both: Generate Bootable Image File for FX3 with I2C EEPROM - KBA218344 and FX3 EZ USB Suite cannot generate image file. In the end I even put the exact path like the following picture shows:
When I try to compile I get:
```
14:24:20 **** Incremental Build of configuration Debug for project USBBulkSourceSinkLED ****
cs-make all
Building target: USBBulkSourceSinkLED.elf
Invoking: ARM Sourcery Windows GCC C Linker
arm-none-eabi-gcc ./cyfx_gcc_startup.o ./cyfxbulkdscr.o ./cyfxbulksrcsink.o ./cyfxtx.o -T"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\/firmware/common/fx3.ld" -nostartfiles -Wl,-Map,USBBulkSourceSinkLED.map -Wl,-d -Wl,--no-wchar-size-warning -Wl,--gc-sections -Wl,--entry,CyU3PFirmwareEntry "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\lib\fx3_debug\cyfxapi.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\lib\fx3_debug\cyu3lpp.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\lib\fx3_debug\cyu3threadx.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\\arm-none-eabi\lib\libc.a" "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\\lib\gcc\arm-none-eabi\4.8.1\libgcc.a" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o"USBBulkSourceSinkLED.elf"
Finished building target: USBBulkSourceSinkLED.elf
C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/ARM GCC/bin/cs-make --no-print-directory post-build
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/ARM GCC/bin/cs-make --no-print-directory post-build'
cs-make: *** [USBBulkSourceSinkLED.elf] Error 1
14:24:22 Build Finished (took 1s.843ms)
```
So it seams the elf file is being created correctly. However I cannot seem to be able to generate the img file. Same problem with debug or release...
In the end I resigned to using only the elf version and programming the device via EZ-USB (eclipse) but when I hit run I get:
```
Error starting process.
Cannot run program "C:\Users\<MyUser>\Workspace\USBBulkSourceSinkLED\Release\USBBulkSourceSinkLED.elf" (in directory "C:\Users\<MyUser>\Workspace\USBBulkSourceSinkLED"): CreateProcess error=193, %1 is not a valid Win32 application
Cannot run program "C:\Users\<MyUser>\Workspace\USBBulkSourceSinkLED\Release\USBBulkSourceSinkLED.elf" (in directory "C:\Users\<MyUser>\Workspace\USBBulkSourceSinkLED"): CreateProcess error=193, %1 is not a valid Win32 application
Cannot run program "C:\Users\<MyUser>\Workspace\USBBulkSourceSinkLED\Release\USBBulkSourceSinkLED.elf" (in directory "C:\Users\<MyUser>\Workspace\USBBulkSourceSinkLED"): CreateProcess error=193, %1 is not a valid Win32 application
```
Show LessHi,
I try to use EZ USB Suite with GUI, with RAW12 MIPI input and 16 bit video-output then try to get data from Host PC.
The data I get with OpenCV VideoCapture tool seems incorrect.
Check the GUID format within cyc3_uvcdscr.c file
0X55,0X59,0X56,0X59,
0X00,0X00,0X10,0X00,
0X80,0X00,0X00,0XAA,
0X00,0X38,0X9B,0X71,
It seems to a UYVY format data will be received on PC side. Is it possible to change the setting that I can get RAW12 data in PC side, without any (or less) computing.
We have to get exact same data (or only byte shift is allow) to make sure our depth sensor algorithm can be implemented without out any problem during data exchange in different bus.
Thanks
Angus
Show LessHi sir,
I am using a flash memory PN named ST M25P40, it has 512K Bytes size.
a custom cypress cx3 firmware being used currently has around 200K Bytes size, so, the SPI memory should have 300K Bytes free space.
- First question
Is it OK recording some data into this "not used" 300K Bytes space?
- Second question,
How to program data into those un-used space?
Thank you
Show LessHi,
- What de-mosaic function CX3 used for the color interpolations? For YUV422 mode.
- Whether the CX3 can do White Balance?
- Whether the CX3 can do shading correction?
- Whether the CX3 can do Filtering pipe?
thanks
Show LessHi sir,
Encountering an issue that h-sync cannot be generated correctly...
According the waveform measurement of mipi data lane + , that h-blank (LP) not a fixed value all the time... as the red rectangle highlighted, they have lower h-blank time than others.. it is caused by the ISP doing additional processing..
Question,
Does CX3 RX expect the all h-blank period (LP) to be identical?
thanks
Show LessI'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 Less