USB superspeed peripherals Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
I am trying to Integrate the header file from GPFI II Designer into EZ-USB FX3.
In GPFI i used sync ADMux scheme the only thing i changed was RDY signal form GPIO to INT.
When i run EZ-USB from the bootappgcc template and try to include header file from GPIF i run into several problems such as:
- There were missing header files such as: cyu3dma.h, cyu3os.h
- When i try to integrate files as shown in a GPIF II Designer - Quick Start Guide (chapter 7) code below
Show Less
Good Day!
OV4689 sensor + your CX3 chip + libraries 1.3.4. I work on Linux.
Sensor:
/* EXTCLK 24 MHz
* SCLK 120 MHz
* MIPI_CLK 150 MHz
* MIPI_PCLK 30 MHz
* MIPI lane 4
* cropping 2688*1520 -> 1280*960 | binning 2*2 = 640*480
* fps 60
* RAW10
*/
CX3
/*
* PLL_CLK = 152
* CSI RX LP<->HS = 38
* PCLK = 38
* GPIF 16bit
*/
CyU3PMipicsiCfg_t cfgMIPI_640_480_60_NoMclk = {
CY_U3P_CSI_DF_RAW10,
4, //num lane
0x1, //PLL_PRD
27, //PLL_FBD
CY_U3P_CSI_PLL_FRS_125_250M, //PLL_FRS
CY_U3P_CSI_PLL_CLK_DIV_4, //csiRxClkDiv
CY_U3P_CSI_PLL_CLK_DIV_4, //parClkDiv
0, //mClkCtl
CY_U3P_CSI_PLL_CLK_DIV_4, //mClkRefDiv
640, //640
0
};
I use a low speed MIPI to watch the oscilloscope what is happening there ( it is unrealistic to parse such a number of packets, but when it is nice to see that it is alive:) )
When I pass a static image(without MIPI) everything works.
Problem:
1.Hangs, I suspect that when calling CyU3PDmaMultiChannelGetBuffer(chHandle, &Dma Buffer, CYU3P_NO_WAIT); (but this is not accurate).
The DMA runs several times (usually 2 or 3) on the full packet(CY_FX_VS_STREAM_BUF_SIZE (12800) CY_FX_VS_STREAM_BUF_COUNT (5)) and the processor freezes.
I use A mini 500 MS restart timer. When I play with the CyU3PMipicsiSetPhyTimeDelay settings, it happens that I receive packets of not full length of about 1400bytes and then for some reason there are no freezes , but a bunch of errors on MIPI. And when you configure everything correctly(as I think), the processor freezes(after several packets) and even the timer does not help.
what can this be related to ?
2. GPIF sometimes throws out undescribed States 131 and 132 ( CX3_INVALID_GPIF_STATE (257))
what do these States mean ??
3. CyU3PMipicsiSetPhyTimeDelay - what values is thsSettleDelay set in ns or CSI Link LP<->HS CLK
Show LessI check project properties configuration, they are correct, but still error:
Cannot run program "cs-make" (in directory "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware
please help, tks!
Show LessDear Sir,
I downloaded img file of AN89661 USB RAID 1 Disk Design Using EZ-USB FX3S.zip in FX3S RAID-ON-CHIP USB DONGLE.
USB DONGLE is working, but I can't see uart debug message.
Can I see a uart debug message without H/W, S/W modification?(connector J1 - Pin8(UART_TX), Pin10(UART_RX))
I think AppDebugPrint is printf fuction, is this right?
I appreciate it if you know this question.
Thank you.
Show LessHi
I read in multiple threads that the fixed function GPIF of the CX3 requires a ~200us frame blanking period to wrap up the partial DMA buffer associated with the end of a frame. Unfortunately, for our application we need to deal with frame blanking periods that are as small as possible (preferably only a few microseconds). I've read about a solution that makes sure that the DMA buffer size is chosen in a way that the last buffer of a frame is full and the CPU does not need to wrap it up. However, the firmware has to count the buffers then, in order to detect the frame end. Furthermore, I understood that this solutions would require some changes to the GPIF. How can I change the GPIF of the CX3? Does someone already have a working solution for such short frame blanking periods?
Thanks.
Show LessHi,
based on this Thread OV2740 UVC Request to set Exposure time , we were able to grab images and set exposure times.
But we still struggle with the pixle format. Since we got a 10 bit raw gray scale sensor, we operate gpif in 16 bit mode (YUV2 with 0x59, 0x55, 0x59, 0x32 in descriptor file
). Our sensor got an unusal active pixel array of 1928 x 1088. Does this mean Streaming RAW10 Format Input Data to 16/24-bit Output Format in CX3 MIPI CSI-2 - KBA224387 won't work for us? The document says, the values need to be a multiple of 16...1928/1088 can't be divided by 16.
Therefore we are currently developing a host application which avoids the problem and erases the unused 6 bits. I attached a two images in .txt format to show a systematic error within the camera picture.
Is this error due to an expected bayer pattern ? We don't know how to handle this problem, is this know to you?
Do we need to use other formats/ descriptor settings?
Kind regards,
Philipp
Show LessIt seems that there is no query about whether the buffer of DMA is ready. When the buffer is blocked, for example, when socket0 is finished and you want to jump to Socket1, but there is no buffer in Socket1, what will the statemachine do?
Show LessHello,i follow the AN75705 to study FX3,but when i try to build project.There is an error in Cypress EZ USB Suite.
16:26:02 **** Incremental Build of configuration Release for project BulkLpAutoCpp ****
cs-make all
Cannot run program "cs-make": Launching failed
Error: Program "cs-make" not found in PATH
PATH=
16:26:02 Build Finished (took 308ms)
Can someone help me,ths
Show LessHi,
Can anyone help me to do data transfer from fpga to fx3s. Is there any example designs available. I tried using slavesyncfifo firmware(available in application note AN65974) with fx3s. Its not working. Let me know how to start with FX3S gpif .
Also Is there any way to do i2c eeprom programming to Fx3s. I tried with control center application. Its showing programming failed.
Thank You
Show LessI know how the firmware img file is created. After the firmware code compile and link in Eclipse an ELF file comes into being. Then post-build action the elf2img.exe tool is called to produce the firmware img file. For some reason, I want to know how I can disassembly the firmware img file in IAD or how I can convert img file to elf file.Can any guy provide a solution to disassembly the img file created by elf2img.exe tool?
Show Less