<?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 Execute hello_world project on the external SDRAM without *.mac file in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Execute-hello-world-project-on-the-external-SDRAM-without-mac/m-p/1016713#M150411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to execute hello_world project without evkmimxrt1064_sdram_init.mac(and with MIMXRT1064xxxxx_sdram.icf) on EVK-MIMXRT1064.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know that I need to initialize the external SDRAM which *.mac do, so I add the initialization code in SystemInitHook().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But It does not work I expected. I get Hard Fault Exception at the beginning of SystemInit() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why the Exception is occurred?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I fix the code to work well?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# I guess it's caused by accessing to uninitialized SDRAM, (because STACK and HEAP are allocated to SDRAM) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# but I cannot to find where it's caused.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me any ideas or useful documents/website to solve the probrem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Environment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Target Board: EVK-MIMXRT1064(iMXRT1064)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Compiler/IDE: IAR EWARM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;ICE: I-Jet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Project: hello_world(I got from NXP web site, &lt;A href="https://mcuxpresso.nxp.com/en/builder"&gt;https://mcuxpresso.nxp.com/en/builder&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2020 08:09:42 GMT</pubDate>
    <dc:creator>suenaga_takeaki</dc:creator>
    <dc:date>2020-02-12T08:09:42Z</dc:date>
    <item>
      <title>Execute hello_world project on the external SDRAM without *.mac file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Execute-hello-world-project-on-the-external-SDRAM-without-mac/m-p/1016713#M150411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to execute hello_world project without evkmimxrt1064_sdram_init.mac(and with MIMXRT1064xxxxx_sdram.icf) on EVK-MIMXRT1064.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know that I need to initialize the external SDRAM which *.mac do, so I add the initialization code in SystemInitHook().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But It does not work I expected. I get Hard Fault Exception at the beginning of SystemInit() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why the Exception is occurred?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I fix the code to work well?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# I guess it's caused by accessing to uninitialized SDRAM, (because STACK and HEAP are allocated to SDRAM) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# but I cannot to find where it's caused.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me any ideas or useful documents/website to solve the probrem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Environment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Target Board: EVK-MIMXRT1064(iMXRT1064)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Compiler/IDE: IAR EWARM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;ICE: I-Jet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Project: hello_world(I got from NXP web site, &lt;A href="https://mcuxpresso.nxp.com/en/builder"&gt;https://mcuxpresso.nxp.com/en/builder&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 08:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Execute-hello-world-project-on-the-external-SDRAM-without-mac/m-p/1016713#M150411</guid>
      <dc:creator>suenaga_takeaki</dc:creator>
      <dc:date>2020-02-12T08:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Execute hello_world project on the external SDRAM without *.mac file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Execute-hello-world-project-on-the-external-SDRAM-without-mac/m-p/1016714#M150412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="352735" data-username="suenaga.takeaki@sharp.co.jp" href="https://community.nxp.com/people/suenaga.takeaki@sharp.co.jp" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;Takeaki Suenaga&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.&lt;BR /&gt;If you want to use the debugger to debug the code in the SDRAM directly.&lt;BR /&gt;You still need to use the related files which tell the debugger to do the SDRAM initialization at first.&lt;BR /&gt;Not IAR, even the MCUXPresso IDE also need to add another .scp file tell the debugger do the SEMC initialization.&lt;BR /&gt;Then when you enter the debug mode, the debugger can do the related debug function.&lt;BR /&gt;So, in the IAR if you don't use the .mac, maybe the IDE can't work with external SDRAM.&lt;BR /&gt;You also can check it with IAR IDE side: &lt;A href="https://www.iar.com/support/" target="test_blank"&gt;https://www.iar.com/support/&lt;/A&gt;&lt;BR /&gt;Whether the IAR have the other method don't add .mac, then can do the external SDRAM debug.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;BR /&gt;If you still have questions about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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 style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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>Thu, 13 Feb 2020 08:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Execute-hello-world-project-on-the-external-SDRAM-without-mac/m-p/1016714#M150412</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-02-13T08:11:58Z</dc:date>
    </item>
  </channel>
</rss>

