<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックMipi CSI-2 camera frames lost on IMX8M Mini</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Mipi-CSI-2-camera-frames-lost-on-IMX8M-Mini/m-p/1300289#M176241</link>
    <description>&lt;P&gt;Hi everybody &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;am working on a new mipi csi-2 camera integration on IMX8M Mini but I am a bit confused about some settings... I have a ov10650 (with ov495 ISP) sensor which outputs me MIPI CSI-2. The output is YUV uncompressed format, 1824x940 at 60fps. I can program the CSI-2 settings such as number of lanes working (1 to 4) and datarate on each lane (400Mbps to 1600Mbps).&lt;/P&gt;&lt;P&gt;Everything works fine for the moment: my own driver (based on ov5640-mipi-v2) recognize well the sensor, mxc-mipi-csi works well with mipi-csi imx8mm's interface and mx6s_capture with the csi-bridge (don't know if this one is needed but i activated it anyway:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ .... ] mx6s-csi 32e20000.csi1_bridge: initialiasing
[ .... ] mxc_mipi-csi 32e30000.mipi_cs: mipi csi v4l2 device registered
[ .... ] CSI: Registered sensor subdevice: mxc_mipi-csi.0
[ .... ] mxc_mipi-csi 32e30000.mipi_cs: lanes: 2, hs-settle: 17, clk_settle: 0, wclk: 1, freq: 333000000
[ .... ] mxc_mipi-csi 32e30000.mipi_cs: Registered sensor subdevice: ov10650 1-0024
[ .... ] ov10650 1-0024: Camera is found&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try to get frames with gstreamer (through v4l2), the debug interface of mxc-mipi-csi get me some errors (here on a test with 400Mbps, 2 lanes):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Command: gst-launch-1.0 v4l2src num-buffers=1 ! video/x-raw ! jpegenc ! filesink location=test.jpg
Output: Setting pipeline to PAUSED ...
Pipeline is live and noes not need PREROLL ...
Setting pipeline to PLAYING ...
[ .... ] ov10650 1-0024: set-stream: enabled &amp;lt;- stuck here and am forced to abort with ctrl+c
^C handling interrupt
[ .... ] mxc_mipi-csi.0: Frame End events: 0
[ .... ] mxc_mipi-csi.0: Frame Start events: 664
[ .... ] mxc_mipi-csi.0: Non-image data after odd frame events: 0
...
[ .... ] mxc_mipi-csi.0: FIFO Overflow Error events: 0
[ .... ] mxc_mipi-csi.0: Lost Frame End Error events: 664
[ .... ] mxc_mipi-csi.0: Lost Frame Start Error events: 0
Setting pipeline to NULL ...
Freeing pipeline ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1:&lt;/STRONG&gt; On the device tree there is so many things that I don't understand regarding clocks and i would appreciate some help about it &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt; How do I know which clock i need to set up? How can I calculate its value? Especially for &lt;EM&gt;mipi_clk&lt;/EM&gt;,&lt;EM&gt; phy_clk,&lt;/EM&gt;&lt;EM&gt; disp_axi &lt;/EM&gt;and&lt;EM&gt; disp_apb ? &lt;/EM&gt;I am attempted to set &lt;EM&gt;mipi_clk&lt;/EM&gt; to the datarate of my lanes (= 400Mbps for exemple so putting 400MHz) ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q2:&amp;nbsp;&lt;/STRONG&gt;The "real" question would be: Regarding one configuration (number-of-lanes + Datarate of the lane), which settings do I need to update and where do I update it? For the number of lane it is ok for me but not for the datarate.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q3:&lt;/STRONG&gt; Do you have any solution for the L&lt;EM&gt;ost Frame Ends&lt;/EM&gt; errors debugged my the mipi-csi driver? &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 12:50:12 GMT</pubDate>
    <dc:creator>jfontain88</dc:creator>
    <dc:date>2021-06-30T12:50:12Z</dc:date>
    <item>
      <title>Mipi CSI-2 camera frames lost on IMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mipi-CSI-2-camera-frames-lost-on-IMX8M-Mini/m-p/1300289#M176241</link>
      <description>&lt;P&gt;Hi everybody &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;am working on a new mipi csi-2 camera integration on IMX8M Mini but I am a bit confused about some settings... I have a ov10650 (with ov495 ISP) sensor which outputs me MIPI CSI-2. The output is YUV uncompressed format, 1824x940 at 60fps. I can program the CSI-2 settings such as number of lanes working (1 to 4) and datarate on each lane (400Mbps to 1600Mbps).&lt;/P&gt;&lt;P&gt;Everything works fine for the moment: my own driver (based on ov5640-mipi-v2) recognize well the sensor, mxc-mipi-csi works well with mipi-csi imx8mm's interface and mx6s_capture with the csi-bridge (don't know if this one is needed but i activated it anyway:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ .... ] mx6s-csi 32e20000.csi1_bridge: initialiasing
[ .... ] mxc_mipi-csi 32e30000.mipi_cs: mipi csi v4l2 device registered
[ .... ] CSI: Registered sensor subdevice: mxc_mipi-csi.0
[ .... ] mxc_mipi-csi 32e30000.mipi_cs: lanes: 2, hs-settle: 17, clk_settle: 0, wclk: 1, freq: 333000000
[ .... ] mxc_mipi-csi 32e30000.mipi_cs: Registered sensor subdevice: ov10650 1-0024
[ .... ] ov10650 1-0024: Camera is found&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try to get frames with gstreamer (through v4l2), the debug interface of mxc-mipi-csi get me some errors (here on a test with 400Mbps, 2 lanes):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Command: gst-launch-1.0 v4l2src num-buffers=1 ! video/x-raw ! jpegenc ! filesink location=test.jpg
Output: Setting pipeline to PAUSED ...
Pipeline is live and noes not need PREROLL ...
Setting pipeline to PLAYING ...
[ .... ] ov10650 1-0024: set-stream: enabled &amp;lt;- stuck here and am forced to abort with ctrl+c
^C handling interrupt
[ .... ] mxc_mipi-csi.0: Frame End events: 0
[ .... ] mxc_mipi-csi.0: Frame Start events: 664
[ .... ] mxc_mipi-csi.0: Non-image data after odd frame events: 0
...
[ .... ] mxc_mipi-csi.0: FIFO Overflow Error events: 0
[ .... ] mxc_mipi-csi.0: Lost Frame End Error events: 664
[ .... ] mxc_mipi-csi.0: Lost Frame Start Error events: 0
Setting pipeline to NULL ...
Freeing pipeline ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1:&lt;/STRONG&gt; On the device tree there is so many things that I don't understand regarding clocks and i would appreciate some help about it &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt; How do I know which clock i need to set up? How can I calculate its value? Especially for &lt;EM&gt;mipi_clk&lt;/EM&gt;,&lt;EM&gt; phy_clk,&lt;/EM&gt;&lt;EM&gt; disp_axi &lt;/EM&gt;and&lt;EM&gt; disp_apb ? &lt;/EM&gt;I am attempted to set &lt;EM&gt;mipi_clk&lt;/EM&gt; to the datarate of my lanes (= 400Mbps for exemple so putting 400MHz) ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q2:&amp;nbsp;&lt;/STRONG&gt;The "real" question would be: Regarding one configuration (number-of-lanes + Datarate of the lane), which settings do I need to update and where do I update it? For the number of lane it is ok for me but not for the datarate.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q3:&lt;/STRONG&gt; Do you have any solution for the L&lt;EM&gt;ost Frame Ends&lt;/EM&gt; errors debugged my the mipi-csi driver? &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 12:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mipi-CSI-2-camera-frames-lost-on-IMX8M-Mini/m-p/1300289#M176241</guid>
      <dc:creator>jfontain88</dc:creator>
      <dc:date>2021-06-30T12:50:12Z</dc:date>
    </item>
  </channel>
</rss>

