<?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: Data abort after enabling Data Cache on iMX6SL in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322449#M43113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If the issue concerns with drive strength of memory signals - again - this may &lt;BR /&gt;be just a memory configuration problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 01:44:31 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2014-07-28T01:44:31Z</dc:date>
    <item>
      <title>Data abort after enabling Data Cache on iMX6SL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322446#M43110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for some debug help on an iMX6SL.&amp;nbsp; I have configured cache memory access for instruction and data based on the SDK and some feedback from this forum.&amp;nbsp; However, after enabling cache I SOMETIMES get a data abort with a misaligned access:&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Oops, data abort occurred!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Registers at point of exception:&lt;BR /&gt;cpsr = nZCvqeAIFt Supervisor (0x600001d3)&lt;BR /&gt;r0 = 0x00000001&amp;nbsp;&amp;nbsp;&amp;nbsp; r8 =&amp;nbsp; 0x00000000&lt;BR /&gt;r1 = 0x80000000&amp;nbsp;&amp;nbsp;&amp;nbsp; r9 =&amp;nbsp; 0x00000001&lt;BR /&gt;r2 = 0x00080000&amp;nbsp;&amp;nbsp;&amp;nbsp; r10 = 0x00000000&lt;BR /&gt;r3 = 0x020e0001&amp;nbsp;&amp;nbsp;&amp;nbsp; r11 = 0x8226a0f4&lt;BR /&gt;r4 = 0xdeadfeed&amp;nbsp;&amp;nbsp;&amp;nbsp; r12 = 0x8226a0f8&lt;BR /&gt;r5 = 0x80083344&amp;nbsp;&amp;nbsp;&amp;nbsp; sp =&amp;nbsp; 0x8226a0e8&lt;BR /&gt;r6 = 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; lr =&amp;nbsp; 0x80083b58&lt;BR /&gt;r7 = 0x00000094&amp;nbsp;&amp;nbsp;&amp;nbsp; pc =&amp;nbsp; 0x80086b40&lt;BR /&gt;dfsr = 0x00000801&lt;BR /&gt;dfar = 0x020e0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access type: write&lt;BR /&gt;Fault status: 0x1&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Oops, data abort occurred!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Registers at point of exception:&lt;BR /&gt;cpsr = nZCvqeAIFt Supervisor (0x600001d3)&lt;BR /&gt;r0 = 0x00000001&amp;nbsp;&amp;nbsp;&amp;nbsp; r8 =&amp;nbsp; 0x00000000&lt;BR /&gt;r1 = 0x80000000&amp;nbsp;&amp;nbsp;&amp;nbsp; r9 =&amp;nbsp; 0x00000001&lt;BR /&gt;r2 = 0x00080000&amp;nbsp;&amp;nbsp;&amp;nbsp; r10 = 0x00000000&lt;BR /&gt;r3 = 0x020eff1f&amp;nbsp;&amp;nbsp;&amp;nbsp; r11 = 0x8226a0f4&lt;BR /&gt;r4 = 0xdeadfeed&amp;nbsp;&amp;nbsp;&amp;nbsp; r12 = 0x8226a0f8&lt;BR /&gt;r5 = 0x80083344&amp;nbsp;&amp;nbsp;&amp;nbsp; sp =&amp;nbsp; 0x8226a0e8&lt;BR /&gt;r6 = 0x00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; lr =&amp;nbsp; 0x80083b58&lt;BR /&gt;r7 = 0x00000094&amp;nbsp;&amp;nbsp;&amp;nbsp; pc =&amp;nbsp; 0x80086b40&lt;BR /&gt;dfsr = 0x00000801&lt;BR /&gt;dfar = 0x020eff1f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access type: write&lt;BR /&gt;Fault status: 0x1&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are two runs of the same executable.&amp;nbsp; However, note that the memory address of the violation (0x020eff1f and 0x020e0001) is different even though the PC is the same location.&amp;nbsp; This is very surprising that the same code would fault at the same line of code in different ways.&amp;nbsp;&amp;nbsp; The code that is causing the fault SEEMs to be in the iomux_config() code that is just a string of writes to set IO PAD settings.&amp;nbsp; It is the code from the Freescale SDK for the MCIMX6SLEVK&amp;nbsp; and I think it is OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like some help with debug procedure.&amp;nbsp; What could cause this error?&amp;nbsp; I think the MMU is configured OK and the Cache seems OK. Could it be related to the debugger or clock settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a snippet of my init code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mmu_init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_branch_prediction_disable();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_icache_disable();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_dcache_disable();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_icache_invalidate();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_dcache_invalidate();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_icache_enable();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mmu_enable();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_dcache_invalidate();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_dcache_enable();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iomux_config();&amp;nbsp; /////////// Seems to fail somewhere in here....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 22:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322446#M43110</guid>
      <dc:creator>nathanpalmer</dc:creator>
      <dc:date>2014-07-18T22:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data abort after enabling Data Cache on iMX6SL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322447#M43111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; Have You tried to test memory for assurance. When processor caches &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;are enabled, memory load may increase because of bursts, provided &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;by the ARM caches. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;"i.Mx6DQSDL DDR3 Script Aid"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;A class="jive-link-wiki-small" data-containerid="2004" data-containertype="14" data-objectid="94917" data-objecttype="102" href="https://community.freescale.com/docs/DOC-94917"&gt;https://community.freescale.com/docs/DOC-94917&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 05:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322447#M43111</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-07-21T05:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data abort after enabling Data Cache on iMX6SL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322448#M43112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem seems to be related to the IO drive strengths being different between my bootloader and the data in the iomux_config().&amp;nbsp; If the iomux_config() changes the values the program sometimes aborts.&amp;nbsp; I assume that the reason caching causes this problem is that the code gets executed earlier (less time between bootloader and iomux_config()).&amp;nbsp; Any further insight in to this would still be helpful... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 16:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322448#M43112</guid>
      <dc:creator>nathanpalmer</dc:creator>
      <dc:date>2014-07-25T16:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data abort after enabling Data Cache on iMX6SL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322449#M43113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If the issue concerns with drive strength of memory signals - again - this may &lt;BR /&gt;be just a memory configuration problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 01:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-abort-after-enabling-Data-Cache-on-iMX6SL/m-p/322449#M43113</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-07-28T01:44:31Z</dc:date>
    </item>
  </channel>
</rss>

