Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB superspeed peripherals Forum Discussions

jx
Level 1
5 replies posted 5 sign-ins First reply posted
Level 1

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);

}

0 Likes
1 Solution
Eddyi
Level 3
25 sign-ins 10 replies posted 10 likes given
Level 3

量一下FV 和LV行场信号的波形,你仔细看AN75779里面的状态机有相应描述。

View solution in original post

0 Likes
9 Replies
JiangJing
Moderator
Moderator 25 replies posted 25 sign-ins 5 solutions authored
Moderator

Hi,

     方便问一下您使用的是哪一个型号的芯片/应用?

0 Likes
jx
Level 1
5 replies posted 5 sign-ins First reply posted
Level 1

你好,我用的cy3104

0 Likes
jx
Level 1
5 replies posted 5 sign-ins First reply posted
Level 1

我主要是通过fpga获取图像传感器的数据,然后通过fx3传给pc,然后再dam这块卡住了

0 Likes
jx
Level 1
5 replies posted 5 sign-ins First reply posted
Level 1

通过阅读文档和代码发现也可能是CyFxGpifCB这个函数没有被调用微信截图_20220628112719.png

0 Likes
Eddyi
Level 3
25 sign-ins 10 replies posted 10 likes given
Level 3

量一下FV 和LV行场信号的波形,你仔细看AN75779里面的状态机有相应描述。

0 Likes
JiangJing
Moderator
Moderator 25 replies posted 25 sign-ins 5 solutions authored
Moderator

Hi,

    是的

 

0 Likes
jx
Level 1
5 replies posted 5 sign-ins First reply posted
Level 1

多谢,我这边问题解决了

0 Likes