Cypress技术论坛
直播中

李桂珍

7年用户 235经验值
私信 关注
[问答]

使用CX3流式传输RAW数据不能与IMX219一起使用

最近,我打开了另一个关于使用CX3和DeNBORA工具包,使用OV5640图像传感器的原始数据流的问题。
这是前一步使用索尼IX219PQ图像传感器与CX3。我遵循了前面讨论的指令,因为它们与OV5640传感器一起工作,但我不能将数据流到PC主机应用程序。
我配置了IMX219工作在RAW101080P@ 30FPS,MIPI时钟显示30Hz信号。MIPI数据通道显示大约1080个脉冲,我猜想每行都有信号,接下来是我认为行的MIPI数据。
我用这种方式配置了CX3:
MIPI:RAW10,HDIFACE=1920GPIF总线:16比特探针:视频帧大小在字节=1920×1080×5 /4USB描述符:16BPP,RGB565,帧大小=1200×1080
我还添加了一个字节计数器,它添加了“DMABUFFER计数”的DMA的每个生产者事件,然后在发送帧时重置(EOF被添加到报头)。我得到的字节总数不稳定,但大部分时间是2755824字节,而我应该得到1920x1080x5/ 4=2592000。我不知道为什么我得到的字节比我应该多。
我尝试使用RAW8中的相机,因为这是使用OV5640时所使用的格式,但我得到的字节数远低于预期。
我做错什么了?我没有改变时间和时钟,因为我不必使用OV5640。
此外,想法,以成功地调试这一点,将不胜感激。
编辑:我一直在尝试检查时钟是否被正确配置,因为它是我唯一没有修改过的东西。但我没有足够的信息。我应该改变MIPI时钟配置吗?为什么?不同的时钟配置有什么不同?

以上来自于百度翻译


     以下为原文
  Recently I opened another question about streaming RAW data using CX3 and the Denebola kit, which uses the OV5640 image sensor.

That was the previous step to using a Sony IMX219PQ image sensor with the CX3. I followed the instructions given in the discussion linked before since they worked with the OV5640 sensor, but I can't stream data to the PC host application.

I configured the IMX219 to work in RAW10 1080p@30fps, and the MIPI clock shows a 30Hz signal. The MIPI data lane shows around 1080 pulses, which I guess signal every row, followed by what I think is the MIPI data for the row.
I configured the CX3 this way:
  • MIPI: RAW10, hResolution = 1920
  • GPIF bus: 16 bits
  • Probe: video frame size in bytes = 1920 x 1080 x 5/4
  • USB Descriptor: 16bpp, RGB565, frame size = 1200x1080

I have also added a byte counter that adds the "DmaBuffer.count" each Producer Event of the DMA, then resets when the frame is sent (EOF is added to header). The total byte count I get is not stable, but most of the time is 2755824 bytes, while I should be getting 1920x1080x5/4 = 2592000. I don't know why I am getting more bytes than I should.

I have tried using the camera in RAW8 since that is the format that worked when using the OV5640, but the byte count I get is much lower than expected.

What am I doing wrong? I have not changed the timing and clocks because I didn't have to when using the OV5640.
Also, ideas to succesfully debug this would be appreciated.

EDIT: I have been trying to check if the clocking is not correctly configured since it is the only thing I have not modified. But I don't have enough information. Should I change the MIPI clocks configuration? Why? What is the difference between different clock configurations?

回帖(19)

李桂珍

2018-9-13 10:53:23

嗨,凯阿,
请在这个项目中感谢您的帮助。请你回答我的问题好吗?

以上来自于百度翻译


     以下为原文
  Hi keaj,
 
Please, your help would be appreciated in this project. Could you answer my questions, please?
举报

皮金燕

2018-9-13 11:06:15

CX3可以支持每车道的最大带宽是1Gbps。由于MIPI CSI时钟是DDR时钟,支持的最大CSI时钟频率为500兆赫。
根据您的响应,CSI时钟是1368 MHz,不支持CX3。请减少CSI时钟并再次重复测试。
你也可以探索MIPI数据通道和测量的准备和零计时?这将是好的,如果你可以附加屏幕截图这里。

以上来自于百度翻译


     以下为原文
  The maximum bandwidth that CX3 can support per lane is 1Gbps. As the MIPI CSI clock is DDR clock, the maximum CSI clock frequency supported is 500MHz.
 
As per your response the CSI clock is 1368MHz which is not supported by CX3. Please reduce the CSI clock and repeat the test again.
 
Also can you please probe the MIPI data lanes and measure the THS prepare and THS zero timings? It will be good if you can attach the screenshots here.
举报

李桂珍

2018-9-13 11:18:24
引用: 60user50 发表于 2018-9-13 12:10
CX3可以支持每车道的最大带宽是1Gbps。由于MIPI CSI时钟是DDR时钟,支持的最大CSI时钟频率为500兆赫。
根据您的响应,CSI时钟是1368 MHz,不支持CX3。请减少CSI时钟并再次重复测试。
你也可以探索MIPI数据通道和测量的准备和零计时?这将是好的,如果你可以附加屏幕截图这里。

谢谢KeaJ,
我改变了CSI频率到448兆赫,它现在是流视频。然而,发送的信息似乎是错误的。我希望您的帮助设置时钟在Cx3 MIPI块,以确保问题不存在。
为了澄清,现在正在发送的流只在相机设置为RAW10并且MIPI块设置为RAW8时工作,并且在主机应用程序中得到的帧似乎是错误的。如预期的那样,将其全部设置为RAW10,则不起作用。
我不知道如何测量准备和零计时。我会附上截图。黄色信号是MIPI时钟,蓝色信号是MIPI数据0通道。
在第二张和第三张照片中,可以看出,在41.6MS期间,每384U发生一次脉冲。这意味着总共有大约1080个脉冲,这是帧的高度。

以上来自于百度翻译


     以下为原文
  Thanks keaj,
 
I changed the CSI frequency to 448MHz and it is now streaming video. However, the information sent seems to be wrong. I would like your help setting the clocks on the CX3 MIPI block to ensure the problem is not there.
 
Just to clarify, the stream that is being sent right now only work when the camera is set to RAW10 and the MIPI block is set to RAW8, and the frames I get in the host app seem to be wrong. Setting it all for RAW10 as expected, it is not working.
 
I don't know how to measure THS prepare and zero timings. I will attach screenshots. The yellow signal is the MIPI clock, and the blue one is the MIPI data 0 lane.
 
In the second and third pictures it can be seen that during 41.6ms, a pulse takes place once every 38.4us. This means a total of around 1080 pulses, which is the frame height.
 


举报

李桂珍

2018-9-13 11:24:21
引用: 60user50 发表于 2018-9-13 12:10
CX3可以支持每车道的最大带宽是1Gbps。由于MIPI CSI时钟是DDR时钟,支持的最大CSI时钟频率为500兆赫。
根据您的响应,CSI时钟是1368 MHz,不支持CX3。请减少CSI时钟并再次重复测试。
你也可以探索MIPI数据通道和测量的准备和零计时?这将是好的,如果你可以附加屏幕截图这里。

这是我尝试过的MIPI接收器配置文件,但它不起作用,因为在CYU3MIPICSI.C中没有任何东西可以显示。
我正在使用的配置是这个,但是只有0x3f3EE8字节离开DMA,而0x3F400应该被发送。这个配置有什么问题?
此配置不工作。
CYU3PMIPICSICFGYT CFGUVC1080P30NOMLCK=
CYUU3PYCSIIODFYRAW10,/*DATAL格式*/
2,/*NUDATALLANE**
1,/*PLLPRD */
62,/*PLLFBD*/
CYU-U3PYCSILPLLYFLSY500,100M,/*PLLFRS*/
CYU-U3PYCSIIPLLKLKYDIVAY8,/*CSIRXCLKDIV**
CyuU3Pycsil PLLKCLYDIVAY8,/*PARCKDIV**
0x00,/*MCLKCTL*/
CYU-U3PYCSILPLLKLKYDIVAY8,/*MCLKRIFDIV*
1920,/*Held**
0x0A/*FIFOSTRIP**
};

以上来自于百度翻译


     以下为原文
  This is the MIPI receiver configuration file that I tried, but it is not working, since there is nothing to show in "cyu3mipicsi.c".
 

 
The configuration I'm using is this one, but only 0x3F3EE8 bytes are leaving the DMA, while 0x3F4800 should be sent. What is wrong with this configuration?
This configuration is not working.
 
CyU3PMipicsiCfg_t cfgUvc1080p30NoMclk =  {
CY_U3P_CSI_DF_RAW10,      /* dataFormat   */
2,                          /* numDataLanes */
1,                        /* pllPrd       */
62,                          /* pllFbd       */
CY_U3P_CSI_PLL_FRS_500_1000M, /* pllFrs      */
CY_U3P_CSI_PLL_CLK_DIV_8,    /* csiRxClkDiv  */
CY_U3P_CSI_PLL_CLK_DIV_8,    /* parClkDiv    */
0x00,                        /* mclkCtl      */
CY_U3P_CSI_PLL_CLK_DIV_8,    /* mClkRefDiv   */
1920,                        /* hResolution  */
0x0A                        /* fifoDelay    */
};
举报

更多回帖

发帖
×
20
完善资料,
赚取积分