<?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のトピックRe: Memory corruption using CSI</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Memory-corruption-using-CSI/m-p/501398#M81155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems dma overwrites data beyound buffer limits,&lt;/P&gt;&lt;P&gt;one can try to use some timer, checking frame start/end&lt;/P&gt;&lt;P&gt;and reset dma using DMA_REFLASH_RFF bit in CSICR3.&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, 14 Apr 2016 00:35:12 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-04-14T00:35:12Z</dc:date>
    <item>
      <title>Memory corruption using CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-corruption-using-CSI/m-p/501397#M81154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;We have a custom board which uses a custom driver for the CSI modules. CSI1 is connected to an external video decoder (TW9990) in CCIR mode and CSI2 is connected to the internal VADC. On both channels I see memory corruption (writing behind the allocated buffer) when the video signal is disturbed (cable loose, camera loses power). I see this behavior even when only one channel is activated. Does anyone have an idea what can be wrong? I tried zillions of combinations of CSI settings and handling every interrupt source of the CSI module (used the linux driver as a reference). But I can't see that I am doing anything wrong now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a perfect image as long as the camera signal(s) are stable. As soon as the signal get disturbed I get these annoying errors.&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 12:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-corruption-using-CSI/m-p/501397#M81154</guid>
      <dc:creator>mod42</dc:creator>
      <dc:date>2016-04-13T12:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Memory corruption using CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-corruption-using-CSI/m-p/501398#M81155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems dma overwrites data beyound buffer limits,&lt;/P&gt;&lt;P&gt;one can try to use some timer, checking frame start/end&lt;/P&gt;&lt;P&gt;and reset dma using DMA_REFLASH_RFF bit in CSICR3.&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, 14 Apr 2016 00:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-corruption-using-CSI/m-p/501398#M81155</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-04-14T00:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory corruption using CSI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memory-corruption-using-CSI/m-p/501399#M81156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you suggest that I setup a timer watching if the DMA is out of range? I don't think that's a clever approach as I can't guarantee a reaction time (Software may be doing other, more high priority things) As there is no such approach in the linux driver and I can't reproduce this behavior with the linux driver I suspect that there is some setup problem on my side. I have done intensive research with the linux and u-boot driver of the CSI but can't spot any major difference. Maybe there is something outside the CSI module which influences this behavior. &lt;/P&gt;&lt;P&gt;I already reset the DMA when an adress change error occurs (as suggested in the datasheet) but that doesn't change the behavior.&lt;/P&gt;&lt;P&gt;Do you have any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 15:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memory-corruption-using-CSI/m-p/501399#M81156</guid>
      <dc:creator>mod42</dc:creator>
      <dc:date>2016-04-14T15:09:14Z</dc:date>
    </item>
  </channel>
</rss>

