<?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 LPC54608 and code in External RAM in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687077#M27687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I tried to allocate a simple routine written in C in the external memory RAM. The map File is corret and the address of routine is in esternal RAM (0xa0000000). The esternal RAM work in a correct way, I used the example in SDK to initialize external RAM component, Inside external memory at the adress 0xa0000000 I found the expected code.&lt;/P&gt;&lt;P&gt;The problem is when my main &amp;nbsp;call the routine placed in RAM &amp;nbsp;I get an exception (hard fault) for IACCViol.&lt;/P&gt;&lt;P&gt;In Im1 you can see the dissasembly code before calling the C routine ( MYFuncRAM4). In the memory window you can see the address of C routine placed in RAM (0xA0000000). In Im2 you can see in the memory window the RAM memory at address 0xA0000000 the C routine ( MYFuncRAM4).&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a single step (F5 from MCUXpresso) I get the error you can see in Im3.&lt;/P&gt;&lt;P&gt;Any help?&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 09:26:23 GMT</pubDate>
    <dc:creator>giannigrondona</dc:creator>
    <dc:date>2017-07-28T09:26:23Z</dc:date>
    <item>
      <title>LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687077#M27687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I tried to allocate a simple routine written in C in the external memory RAM. The map File is corret and the address of routine is in esternal RAM (0xa0000000). The esternal RAM work in a correct way, I used the example in SDK to initialize external RAM component, Inside external memory at the adress 0xa0000000 I found the expected code.&lt;/P&gt;&lt;P&gt;The problem is when my main &amp;nbsp;call the routine placed in RAM &amp;nbsp;I get an exception (hard fault) for IACCViol.&lt;/P&gt;&lt;P&gt;In Im1 you can see the dissasembly code before calling the C routine ( MYFuncRAM4). In the memory window you can see the address of C routine placed in RAM (0xA0000000). In Im2 you can see in the memory window the RAM memory at address 0xA0000000 the C routine ( MYFuncRAM4).&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a single step (F5 from MCUXpresso) I get the error you can see in Im3.&lt;/P&gt;&lt;P&gt;Any help?&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:26:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687077#M27687</guid>
      <dc:creator>giannigrondona</dc:creator>
      <dc:date>2017-07-28T09:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687078#M27688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="294865" data-username="giannigrondona" href="https://community.nxp.com/people/giannigrondona"&gt;Giovanni Grondona&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;After going over the statement of the thread, I was wondering if you can share the sample code, then I can replicate the issue on my site by running the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;I'm looking forward to your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&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, 31 Jul 2017 02:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687078#M27688</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-07-31T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687079#M27689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;H6 style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 600; font-size: 13px;"&gt;&lt;STRONG class="" style="color: #5e89c1; border: 0px; font-weight: bold; font-size: 13px;"&gt;Re: LPC54608 and code in External RAM&lt;/STRONG&gt;&lt;/H6&gt;&lt;DIV class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="213424" href="https://community.nxp.com/people/jeremyzhou" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; font-size: 14px;" title="jeremyzhou"&gt;&lt;IMG alt="jeremyzhou" class="" data-avatarid="-1" data-height="46" data-random="8067566712468276" data-username="jeremyzhou" height="46" src="https://community.nxp.com/people/jeremyzhou/avatar/46.png?a=-1" style="border: 0px; font-weight: inherit; font-size: 14px;" title="jeremyzhou" width="46" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 0.9em;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 12.6px;"&gt;&lt;A _jive_internal="true" class="" data-avatarid="-1" data-content-finding="Community" data-userid="213424" data-username="jeremyzhou" href="https://community.nxp.com/people/jeremyzhou" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; font-size: 1.1em; padding: 0px 3px 0px 0px;"&gt;jeremyzhou&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have attached a zip file contained all the project.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 09:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687079#M27689</guid>
      <dc:creator>giannigrondona</dc:creator>
      <dc:date>2017-07-31T09:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687080#M27690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="294865" data-username="giannigrondona" href="https://community.nxp.com/people/giannigrondona"&gt;Giovanni Grondona&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-size: 12pt; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;TT&gt;__RAMFUNC(RAM)&lt;/TT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; macro can relocate the function into the internal RAM, however it doesn't suit for the external RAM, as startup code can't&amp;nbsp; then perform the necessary initialization (copy code/data from Flash to RAM) well by following the&amp;nbsp;managed linker script mechanism.&lt;/P&gt;&lt;P&gt;So I'd like to suggest that you need to copy the specific function whose stored in the flash to the external RAM manually.&lt;/P&gt;&lt;P&gt;Hope it's clear.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Tue, 01 Aug 2017 08:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687080#M27690</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-01T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687081#M27691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not strictly true. You simply need to ensure that the code that carries out the setup&amp;nbsp;of the external RAM is called from the startup code before the code that does the flash -&amp;gt; ram copying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687081#M27691</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-08-01T09:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687082#M27692</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 have initialized Dynamic RAM &lt;STRONG&gt;BEFORE &lt;/STRONG&gt;the copy From Flash To Ram.as you can seen from file startup_lpc54608.c I have enclosed in my project zip file. The RAM afer the copy contains the right code....doesn't work the jump&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giovanni Grondona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 06:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687082#M27692</guid>
      <dc:creator>giannigrondona</dc:creator>
      <dc:date>2017-08-02T06:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687083#M27693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="294865" data-username="giannigrondona" href="https://community.nxp.com/people/giannigrondona"&gt;Giovanni Grondona,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Yes, I see.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I have a idea to confirm whether the data copied to RAM successful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;You can find that the which address the function store in the Flash in map file, and you can read the function from the external SDRAM to compare the function stored the Flash via the Memory window in the MCUXpressor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm looking forward to your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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>Wed, 02 Aug 2017 08:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687083#M27693</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-02T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687084#M27694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the two memory area contain the same code...compared byte to byte.....when the Program counter jumps to SDRAM triggers an execption&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 06:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687084#M27694</guid>
      <dc:creator>giannigrondona</dc:creator>
      <dc:date>2017-08-03T06:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687085#M27695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="294865" data-username="giannigrondona" href="https://community.nxp.com/people/giannigrondona"&gt;Giovanni Grondona&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;After discussing with the AE team, we analyzed that 0xA0000000-0xDFFFFFFF is none executable region by default (ARM Cortex M4 devices generic user guide chapter 2.2), All instruction fetch is prohibited. User should use MPU to override default setting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2017-08-04_14-46-57.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10598i5400A780BB723E8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-08-04_14-46-57.jpg" alt="2017-08-04_14-46-57.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After testing, the "fault" in register windows called "iAccVoil" and its explanation is below.&lt;/P&gt;&lt;P&gt;Instruction access violation flag:&lt;BR /&gt;0 = no instruction access violation fault&lt;BR /&gt;1 = the processor attempted an instruction fetch from a location that does not permit execution.&lt;BR /&gt;This fault occurs on any access to an XN region, even when the MPU is disabled or not present.&lt;/P&gt;&lt;P&gt;So we think it's the root cause of the issue.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Fri, 04 Aug 2017 06:54:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687085#M27695</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-04T06:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687086#M27696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help. Could you tell me the document where I can find Optional Memory Protection Unit ?&lt;BR /&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:49:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687086#M27696</guid>
      <dc:creator>giannigrondona</dc:creator>
      <dc:date>2017-08-10T14:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 and code in External RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687087#M27697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="294865" data-username="giannigrondona" href="https://community.nxp.com/people/giannigrondona"&gt;Giovanni Grondona&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.5 Optional Memory Protection Unit&lt;/STRONG&gt; in the attachment.&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 16px; line-height: 1.5; background-color: #ffffff;"&gt;Have a great day,&lt;/DIV&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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>Fri, 11 Aug 2017 03:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-and-code-in-External-RAM/m-p/687087#M27697</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-11T03:01:07Z</dc:date>
    </item>
  </channel>
</rss>

