<?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: Crash on register write</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Crash-on-register-write/m-p/511768#M83455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Are MMU and caches are enabled under U-boot ? &lt;/P&gt;&lt;P&gt;In such case some areas may be protected against changing.&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, 14 Mar 2016 07:55:58 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2016-03-14T07:55:58Z</dc:date>
    <item>
      <title>Crash on register write</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Crash-on-register-write/m-p/511767#M83454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am using an i.MX6S, with 512MB RAM, which boots via u-boot off of an SD card.&amp;nbsp; I pause at the U-Boot prompt and attach to the processor through the JTAG port in order to run my code with the processor already set up.&amp;nbsp; I'm using GDB through Eclipse to view the code and debug it.&amp;nbsp; Everything seems to be in working order up to a certain point; I can view memory and registers correctly, step through code, etc.&amp;nbsp; However, as soon as I try to write certain registers, everything crashes.&amp;nbsp; The program counter walks off into ~0xffff0000.&amp;nbsp; What could be causing this type of behavior?&amp;nbsp; I am running in supervisor mode, which I have verified by looking at CPSR (0x600001d3).&amp;nbsp; The address in question is in a call to "mxc_init_l2x0", specifically this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;writel(0x132, IO_ADDRESS_PTR(L2_BASE_ADDR + L2X0_TAG_LATENCY_CTRL));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is trying to write the value 0x132 to address 0x00a02108.&amp;nbsp; If I look at that memory address, I can see that it is already set for that value, implying that U-Boot already set it up.&amp;nbsp; However, if I try to change the value at that address with the debugger, Eclipse tells me "Edit failed: Target request failed: Cannot access memory at address 0x00a02108"&amp;nbsp; If I let that line of code execute, the code crashes (presumably hitting a Data Abort exception).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why can't I write registers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Crash-on-register-write/m-p/511767#M83454</guid>
      <dc:creator>BrendanDoonan</dc:creator>
      <dc:date>2016-03-07T18:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Crash on register write</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Crash-on-register-write/m-p/511768#M83455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Are MMU and caches are enabled under U-boot ? &lt;/P&gt;&lt;P&gt;In such case some areas may be protected against changing.&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, 14 Mar 2016 07:55:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Crash-on-register-write/m-p/511768#M83455</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-03-14T07:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Crash on register write</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Crash-on-register-write/m-p/511769#M83456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brendan&lt;/P&gt;&lt;P&gt;You can use MEMACC in your BDI config file to bypasses MMU and cache.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sinan Akman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 18:04:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Crash-on-register-write/m-p/511769#M83456</guid>
      <dc:creator>sinanakman</dc:creator>
      <dc:date>2016-03-14T18:04:08Z</dc:date>
    </item>
  </channel>
</rss>

