<?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 RT Crossover MCUsのトピックRe: FlexRAM reallocate code error</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexRAM-reallocate-code-error/m-p/976690#M5017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reallocating the flexram has to be done before the flexram is initialized, it's recommended that you do this on the ResetISR that you will find on the startup file of the&amp;nbsp;SDK examples. Where are you reallocating the flexram?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that you need to reserve at least 64KB of OCRAM for the ROM bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A proper way to achieve this on MCUXpresso IDE would be with the following code at the beginning of the ResetISR.&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    __asm &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".syntax unified\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R0, =0x400ac044\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R1, = PUT YOUR BANK CONFIGURATION HERE\n"&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;//FlexRAM configuration&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"STR     R1,[R0]\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R0,=0x400ac040\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R1,=0x04\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R3,[R0]\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"ORR     R2,R1,R3\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"STR     R2,[R0]\n"&lt;/SPAN&gt;

    &lt;SPAN class="string token"&gt;".syntax divided\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2020 22:26:01 GMT</pubDate>
    <dc:creator>victorjimenez</dc:creator>
    <dc:date>2020-03-18T22:26:01Z</dc:date>
    <item>
      <title>FlexRAM reallocate code error</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexRAM-reallocate-code-error/m-p/976689#M5016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having problem to configure the FlexRAM in MIMXRT1021DAG4A, based on AN12077 Rev 2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;I have modified memory as per requirement but facing compilation error in reallocate code. Earlier i tried to as mention in AN12077 Rev 2 doc but in that some instruction error comes like MOV32 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Please see below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97317i657A68F1482E5715/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workspace is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 15:35:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexRAM-reallocate-code-error/m-p/976689#M5016</guid>
      <dc:creator>jtro</dc:creator>
      <dc:date>2020-03-17T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: FlexRAM reallocate code error</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexRAM-reallocate-code-error/m-p/976690#M5017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reallocating the flexram has to be done before the flexram is initialized, it's recommended that you do this on the ResetISR that you will find on the startup file of the&amp;nbsp;SDK examples. Where are you reallocating the flexram?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that you need to reserve at least 64KB of OCRAM for the ROM bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A proper way to achieve this on MCUXpresso IDE would be with the following code at the beginning of the ResetISR.&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    __asm &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".syntax unified\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R0, =0x400ac044\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R1, = PUT YOUR BANK CONFIGURATION HERE\n"&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;//FlexRAM configuration&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"STR     R1,[R0]\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R0,=0x400ac040\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R1,=0x04\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"LDR     R3,[R0]\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"ORR     R2,R1,R3\n"&lt;/SPAN&gt;

            &lt;SPAN class="string token"&gt;"STR     R2,[R0]\n"&lt;/SPAN&gt;

    &lt;SPAN class="string token"&gt;".syntax divided\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexRAM-reallocate-code-error/m-p/976690#M5017</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-03-18T22:26:01Z</dc:date>
    </item>
  </channel>
</rss>

