<?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: STRH instruction causing unaligned memory access fault on i.MXRT1062 in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1606879#M23927</link>
    <description>&lt;P&gt;Strangely enough, I'm having the same issue... the memory region is set to&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    MPU-&amp;gt;RBAR = ARM_MPU_RBAR(7, 0x20240000U);
    MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 0, 0, ARM_MPU_REGION_SIZE_1MB);&lt;/LI-CODE&gt;&lt;P&gt;but my trap seem to happen at 0x2030_001D&amp;nbsp; -- the address is indeed unaligned, but i suppose that should be OK in this instance.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 13:39:11 GMT</pubDate>
    <dc:creator>gobbo</dc:creator>
    <dc:date>2023-02-28T13:39:11Z</dc:date>
    <item>
      <title>STRH instruction causing unaligned memory access fault on i.MXRT1062</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1590762#M23522</link>
      <description>&lt;P&gt;&lt;SPAN&gt;As per the title says, I have an IMXRT1060 and getting an unaligned access fault due to an STRH instruction. The odd thing is that the Cortex-M7 manual explicitly mentions that unaligned access are accepted for certain instructions, STRH being one of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;strh r7, [r0, #4]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've attached screenshots of the registers before this line (to see that R0 points to an unaligned address in RAM) and also with the state of the the fault system configuration (unaligned traps are disabled).&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 18:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1590762#M23522</guid>
      <dc:creator>odd_bikes</dc:creator>
      <dc:date>2023-01-31T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: STRH instruction causing unaligned memory access fault on i.MXRT1062</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1593132#M23577</link>
      <description>&lt;P&gt;Is there a chance that NXP didn't add support for unaligned memory access, as it is described in ARM's Cortex-M7 technical reference manual?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 12:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1593132#M23577</guid>
      <dc:creator>odd_bikes</dc:creator>
      <dc:date>2023-02-03T12:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: STRH instruction causing unaligned memory access fault on i.MXRT1062</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1596854#M23661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I’m sorry for the late response.&lt;/P&gt;
&lt;P&gt;Did you modified any memory configuration?&lt;/P&gt;
&lt;P&gt;Are you using a custom board?&lt;/P&gt;
&lt;P&gt;Could you please share with me the code you execute to trigger this fault?&lt;/P&gt;
&lt;P&gt;Best regards, Daniel. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 21:39:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1596854#M23661</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2023-02-09T21:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: STRH instruction causing unaligned memory access fault on i.MXRT1062</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1606879#M23927</link>
      <description>&lt;P&gt;Strangely enough, I'm having the same issue... the memory region is set to&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    MPU-&amp;gt;RBAR = ARM_MPU_RBAR(7, 0x20240000U);
    MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 0, 0, ARM_MPU_REGION_SIZE_1MB);&lt;/LI-CODE&gt;&lt;P&gt;but my trap seem to happen at 0x2030_001D&amp;nbsp; -- the address is indeed unaligned, but i suppose that should be OK in this instance.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 13:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1606879#M23927</guid>
      <dc:creator>gobbo</dc:creator>
      <dc:date>2023-02-28T13:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: STRH instruction causing unaligned memory access fault on i.MXRT1062</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1606884#M23929</link>
      <description>You don't happen to be accessing OCRAM2 with this instruction?</description>
      <pubDate>Tue, 28 Feb 2023 13:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/STRH-instruction-causing-unaligned-memory-access-fault-on-i/m-p/1606884#M23929</guid>
      <dc:creator>gobbo</dc:creator>
      <dc:date>2023-02-28T13:45:54Z</dc:date>
    </item>
  </channel>
</rss>

