<?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>topic Re: imx6 MIPI sync issues in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564019#M87153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can test if this is caused by performance isues removing parallel&lt;/P&gt;&lt;P&gt;sensor or allocating to other IPU. May be useful to check CSI performance&lt;/P&gt;&lt;P&gt;data described in Chapter 37 Image Processing Unit (IPU) p.2725&lt;/P&gt;&lt;P&gt;i.MX6DQ Reference Manual &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FIMX6DQRM.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 07:51:39 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-06-23T07:51:39Z</dc:date>
    <item>
      <title>imx6 MIPI sync issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564018#M87152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a MIPI sensor running on an i.MX6Q board based on the Sabre reference design running Android 4.4 and I'm having trouble with sync reliability.&amp;nbsp; Everything is stable, but the image wraps around (as if the first starting pixel is not at 0,0, but rather at some value x,y elsewhere in the image).&amp;nbsp; The frame doesn't "roll" during a single capture--the sync location seems stable, but if I start and stop capture, the offset changes.&amp;nbsp; Basically, it looks like the start of frame happens somewhere in the middle of the frame and stays at that offset for every capture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been changing the polarity of hsync and vsync in the driver, but the behavior doesn't appear to change.&amp;nbsp; I can't think of any settings that would cause the start/end of frame signals in the MIPI stream to be out of sync with the frame, so I can only assume the problem is on the controller driver side.&amp;nbsp; I have an Ov5640 on the parallel0 interface to IPU0/CSI0 and that works correctly.&amp;nbsp; The issue is only with the Ov8865 I have on the MIPI port VC1 to IPU0/CSI1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody else run across this issue with their designs?&amp;nbsp; What did you do to resolve it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 05:08:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564018#M87152</guid>
      <dc:creator>matthewdavis</dc:creator>
      <dc:date>2016-06-23T05:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 MIPI sync issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564019#M87153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can test if this is caused by performance isues removing parallel&lt;/P&gt;&lt;P&gt;sensor or allocating to other IPU. May be useful to check CSI performance&lt;/P&gt;&lt;P&gt;data described in Chapter 37 Image Processing Unit (IPU) p.2725&lt;/P&gt;&lt;P&gt;i.MX6DQ Reference Manual &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FIMX6DQRM.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 07:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564019#M87153</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-06-23T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 MIPI sync issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564020#M87154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; To be clear, I am not using the two cameras simultaneously.&amp;nbsp; They both have driver support in the same image and I use them one at a time, so I don't think that the parallel sensor should contend for resources with the MIPI camera unless I am misunderstanding something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the data rate and it looks like we are comfortably below those limits.&amp;nbsp; The one thing about my application that is unusual is that I'm interpreting the data as grayscale data (GENERIC in the IPU), which required a little bit of additional code in the kernel driver, but I don't see how that would be a problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me that something is confusing the state machine that handles the start of frame / end of frame packets, but as this is my first MIPI camera driver, I don't have much insight into what might cause that sort of failure. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:40:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564020#M87154</guid>
      <dc:creator>matthewdavis</dc:creator>
      <dc:date>2016-06-23T19:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 MIPI sync issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564021#M87155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for mipi generic data driver example may be useful to look at&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fcommunity.freescale.com%2Fmessage%2F344529%23344529" rel="nofollow" target="_blank"&gt;https://community.freescale.com/message/344529#344529&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 01:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564021#M87155</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-06-24T01:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 MIPI sync issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564022#M87156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Hi Igor,&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Yes, I have spent many hours looking over that thread and it got me to where I am now.&amp;nbsp; I think that everything is correct with the exception of some minor detail somewhere.&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;I've turned on some tracing and found that I'm seeing the error:&lt;P&gt;&lt;/P&gt;IPU Warning - IPU_INT_STAT_5 0x00000001&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;If I'm reading that correctly, that means that the IPU is seeing a new frame before the end of the previous frame.&amp;nbsp; I can't think of any reason for this to be the case.&amp;nbsp; This type of problem seems pretty common as it's mentioned in other places (including the link you just posted):&lt;P&gt;&lt;/P&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="310121" data-objecttype="1" href="https://community.nxp.com/thread/310121"&gt;https://community.nxp.com/message/341843&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="428500" data-objecttype="1" href="https://community.nxp.com/thread/428500"&gt;https://community.nxp.com/message/804934&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;But I haven't seen a solution or even an explanation of what might cause it.&amp;nbsp; I'm fairly certain that the imager is not generating SOFs without EOFs.&amp;nbsp; I don't see any tunable options on the MIPI channel that might create that type of pattern.&amp;nbsp; My only guess is that it's an issue with the IPU state machine not being reset properly.&amp;nbsp; It doesn't look like any sort of IPU reset is part of the workflow in the reference driver, though, and my sensor driver is based on the reference design.&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;What types of problems typically cause this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:49:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564022#M87156</guid>
      <dc:creator>matthewdavis</dc:creator>
      <dc:date>2016-06-24T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 MIPI sync issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564023#M87157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;What types of problems typically cause this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usually this is caused by data starvation due to huge load on the DDR memory bus,&lt;/P&gt;&lt;P&gt;so just for test one can try to decrease resolution@fps numbers both sensor and lcd.&lt;/P&gt;&lt;P&gt;Also one can try to test with bare minimal linux image .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 04:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564023#M87157</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-06-24T04:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 MIPI sync issues</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564024#M87158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with the integration of MT9P031 cmos and imx6-hummingboard. Currently, I have the same error of syncronization..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathew, have you resolved it? something related to vsync and pixel clock??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll appreciate any comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maite&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 07:40:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-MIPI-sync-issues/m-p/564024#M87158</guid>
      <dc:creator>maitegonzalez</dc:creator>
      <dc:date>2016-09-14T07:40:30Z</dc:date>
    </item>
  </channel>
</rss>

