CyU3PMemSet((uint8_t *)&dmaConfig,0,sizeof(CyU3PDmaChannelConfig_t));
dmaConfig.size = CY_FX_UVC_STREAM_BUF_SIZE;
dmaConfig.count = CY_FX_UVC_STREAM_BUF_COUNT;
dmaConfig.prodSckId = (CyU3PDmaSocketId_t)CY_U3P_PIB_SOCKET_0;
dmaConfig.consSckId = (CyU3PDmaSocketId_t)(CY_U3P_UIB_SOCKET_CONS_0 |CY_FX_EP_VIDEO_CONS_SOCKET);
dmaConfig.prodAvailCount = 0;
dmaConfig.prodHeader = 12; /* 要添加的 12 字节 UVC 标头。 */
dmaConfig.prodFooter = 4; /* 4 字节页脚以补偿 12 字节标头。 */
dmaConfig.consHeader = 0;
dmaConfig.dmaMode = CY_U3P_DMA_MODE_BYTE;
dmaConfig.notification = CY_U3P_DMA_CB_PROD_EVENT;//CY_U3P_DMA_CB_PROD_EVENT ;;
dmaConfig.cb = CyFxUvcApplnDmaCallback;
apiRetStatus = CyU3PDmaChannelCreate (&glChHandleUVCStream,/*CY_U3P_DMA_TYPE_AUTO_SIGNAL*/ CY_U3P_DMA_TYPE_MANUAL,
&dmaConfig);
if (apiRetStatus != CY_U3P_SUCCESS)
{
/* 错误处理 */
CyU3PDebugPrint (4, “DMA 通道创建失败, 错误代码 = %d\n”, apiRetStatus);
CyFxAppErrorHandler (apiRetStatus);
}
Hi,
I am using CX3 based custom board, I have written my firmware image in SPI flash and my board is enumerating as a device in SPI boot mode. But image streaming is not being done(getting black screen).
My DMA and timer getting restarted continuously. I followed this KBA and changed the timer period and I increased the DMA buffer size. Still I am unable to get image in AMCap or Camera app.
Please find the below log for your reference.
Can you help me in this regard?
Thank you,
Shafi.
Show LessHi,
I am working on cyclone 10 gx development board and cypress cyusb3kit-003. I have programmed cypress superspeed board with SF_loopback.img file which was given in AN65974 folder. I have programmed fpga with below file slaveFIFO2b_loopback.sof and may find setting file regarding fpga slaveFIFO2b_loopback.qsf in below file. I am not able to send bulk file to the fpga.
Show LessHi,
within the AN75779 firmware i have already make it work well in win10(not work well when transfer video 2560*1024@25fps) and it can't work in linux.
I want to know what else should be changed to make sure the firmware work well in both windows and linux. and it seems I didn't use the full bandwidth in win10(350MBps),what should i do to transfer video(2560*1024@25fps) in SS mode?
Show Less
PMODE[2:0]选择的Z11,使用的EEPROM型号为24L1025I/SN(1024M/Microchip),使用elf2img.exe时加入了设置-i2cconf 0x1E,生成.img文件。再使用Control Centor将固件下载到EEPROM中,但失败了。
1.选择I2C EEPROM
2.选择.img文件
3.过了几秒后,出现Programming of I2C EEPROM Failed
之后,我下载了例程cyfxflashprog,再将其下载到RAM中,进行I2C EEPROM的读写测试,结果表明能对其进行读写操作。
1.向EEPROM写入52 48 48 52
2.读取EEPROM中的信息
目前不清楚问题出现在什么地方,固件本身是在别的设备上CYUSB3014正常使用的(能够烧入EEPROM),并且也使用例程代码尝试向EEPROM烧录但都是不能成功。我应该怎么解决这个问题?
Show LessHi,
im using the manual to setup the fx3 from the next link
but the building of the installer doesn’t work for me. I can’t get the build process to finish, every time it shows a problem.
Can someone send me a build version of the pulse view with the FX3 capability in it?
Thanks ahead,
EliW.
Show LessHi all,
I have a project to connect kit CYUSB3 to Zedboard (using zedboard like an image sensor) with example AN75779. But i dont know how to detect slave device via I2C (which register have to use or which data have to tranfer). When i see in wave form, i see I2C SCL only had 10 posedges.
Thank guys
Show Less
Hello,
We are using the CYUSB3014-BZXI.
If I look at CYUSB301X_FX3_DataSheet(Document Number: 001-52136 Rev. *X), the maximum operating frequency is 33MHz.
1. When sending and receiving data with SPI at 33MHz clock, what is real data rate?
When measured with digital oscilloscope, it looks like there is some difference between the clock rate and the data rate because there is a gap between
the bytes of data. There is N - 1 gaps if N bytes transfer.
2. Is there any way to reduce this interval gap to speed up data transfer?
Thank you so much for your prompt response.
Best Regards,
KJ
Show Less
Hi,
I've written a custom bootloader for the CYUSB3014-BZXC using the Cypress Boot API. We've been using this bootloader without issue for the past couple of months. However, someone recently plugged the board into a USB 3.1 host controller using a USB 2.0 cable. Upon doing so we discovered that in USB 2.0 mode the device stops responding to standard requests after being suspended and then resumed. The traffic on the USB bus was captured with an Ellisys EX350 and shows the following transactions:
1. get device descriptor (success)
2. set address (success)
3. get device descriptor (success)
4. get configuration descriptor (success)
5. get BOS ddescriptor (success)
6. get serial number descriptor (success)
7. get language ID descriptor (success)
8. get product descriptor (success)
9. set configuration 1 (success)
10. LPM transaction (success)
11. Suspended
12. Resume
13. get language ID descriptor x 6 (failure)
14. get manufacturer descriptor x 6 (failure)
15. get product descriptor x 6 (failure)
UART Debug message prints from the firmware show the following:
Initializing FX3 Boot Firmware 1.6
Boot FW Event: CY_FX3_BOOT_USB_IN_SS_DISCONNECT
Boot FW Event: CY_FX3_BOOT_USB_SUSPEND
Boot FW Event: CY_FX3_BOOT_USB_RESET
Boot FW Event: CY_FX3_BOOT_USB_RESET
Boot FW Event: CY_FX3_BOOT_USB_RESUME
Are there any special actions that the firmware must take when it receives CY_FX3_BOOT_USB_SUSPEND or CY_FX3_BOOT_USB_RESUME in order to get the FX3 to ACK the control requests that take place after the the suspend and resume operations?
We also seem to experience the same problem when running the application firmware (uses Cypress full API) when the device is plugged in with a USB 2.0 cable. The bus activity is similar:
1. get device descriptor (success)
2. set address (success)
3. get device descriptor (success)
4. get configuration descriptor (success)
5. get BOS ddescriptor (success)
6. get serial number descriptor (success)
7. get language ID descriptor (success)
8. get product descriptor (success)
9. LPM transaction (success)
10. Suspended
11. Resume
12. set configuration 1 x 3 (failure)
13. Suspended
So the same question applies for the application firmware: what steps must we take in firmware in order for control transfers to succeed after the device has been suspended and then resumed?
Some other information that you may find useful:
Operating system: Windows 10
Host Controller: Asmedia ASM3142
Hub: none
I appreciate any help you can provide.
Thanks,
Michael
Hi: I used the solution provided by this link. After download the img, two FX3 unknown devices appears in device manager.
But when I update the driver , pop the message" i can't find the driver".
Is the program is tested?
Show Less