<?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>LPC MicrocontrollersのトピックRe: LPC1769 AHBRAM not work</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-AHBRAM-not-work/m-p/863398#M34409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="323166" data-username="vasishthd@glidemtech.com" href="https://community.nxp.com/people/vasishthd@glidemtech.com"&gt;Vasishth Desai&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for contacting our technical support, I will serve for you.&lt;/P&gt;&lt;P&gt;First of all , please use the latest version MCUXpresso IDE v10.3.&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE" title="https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE"&gt;MCUXpresso IDE|Eclipse-based Integrated Development Environment (IDE) | NXP&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I test on a LPCopen project, includes the header file cr_section_macros.h, then add app_data as your description:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/P&gt;&lt;P&gt;_DATA(RAM3) uint32_t app_data;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After build , we can see this variate is placed in RamAHB32 section:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72344iB16F05F8DF542A7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_15.png" alt="pastedImage_15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-If you want to put all global date into RamAHB32, there is a simple method, the Managed Linker Script&lt;BR /&gt;mechanism&amp;nbsp; allow the user to specify a specific memory region to be used for the global data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_16.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72403iD136282ECF382287/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_16.png" alt="pastedImage_16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- If you want to put all of the data into RamAHB32 ,&amp;nbsp; just config it as the first ram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_17.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72439iB2D39468DB0D6142/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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:&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>Mon, 18 Feb 2019 06:54:20 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-02-18T06:54:20Z</dc:date>
    <item>
      <title>LPC1769 AHBRAM not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-AHBRAM-not-work/m-p/863397#M34408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using LPC1769 with MCUExpresso and LPCOpen library to develop my application. At initial stage of application development the global data/stack/heap etc stored in main RAM(32 KB), but at one stage of my application development, i have identify main RAM (32 KB) has fully acquired, so i have decided to put my application globals/stack/heap etc into RAMAHB32 aka AHBRAM. Consider below stages i have been pass to access AHBSRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Simple program (without any initialization) which writes dummy data into AHBRAM by using buffer below &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;__DATA(RAM2) uint32_t ram2_buffer[32768/4];&lt;/BLOCKQUOTE&gt;i have write data into AHBRAM using for loop (counter) and same data has been read successfully for entire AHBSRAM size (32 KB), means AHBSRAM works.&lt;/LI&gt;&lt;LI&gt;If i put some of application globals like&amp;nbsp;below&amp;nbsp;the behavior of app_data variable is uncertain. &lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;__DATA(RAM2) uint32_t app_data;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;Now i tried to add my application data to AHBSRAM&amp;nbsp;by change in settings from project-&amp;gt;properties-&amp;gt;MCU Linker-&amp;gt;Manage Linker script and change all possible settings to put application data/heap/stack into AHBSRAM, for compile time console shows percentage data allocated to AHBSRAM. but during run time, it always falls under the exception/hard faults.&lt;/LI&gt;&lt;LI&gt;I have tried to modify firmware_DebugLPC1769.ld file directly to ensure required memory sections are put in &lt;SPAN&gt;RAMAHB&lt;SPAN&gt;&amp;nbsp;properly, then there is no compilation error but still gives run time exception/hard faults.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;In my application i have use FreeRTOS and create all my application tasks statically and allocate task stack from RAMAHB, then it cames into run time FreeRTOS exception of&amp;nbsp;vApplicationStackOverflowHook(), even i allocate much more amount of memory the task has required.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;So any how when RAMAHB is in picture, there always be a run time exceptions/faults.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility that AHBRAM32 has slower access speed? If so, how to fix it?&lt;/P&gt;&lt;P&gt;If there is some initialization problem, then why the first point works successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC176x_memory.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72302iC6B481A61A8A3667/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC176x_memory.png" alt="LPC176x_memory.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 14:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-AHBRAM-not-work/m-p/863397#M34408</guid>
      <dc:creator>vasishthd</dc:creator>
      <dc:date>2019-02-14T14:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 AHBRAM not work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-AHBRAM-not-work/m-p/863398#M34409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="323166" data-username="vasishthd@glidemtech.com" href="https://community.nxp.com/people/vasishthd@glidemtech.com"&gt;Vasishth Desai&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for contacting our technical support, I will serve for you.&lt;/P&gt;&lt;P&gt;First of all , please use the latest version MCUXpresso IDE v10.3.&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE" title="https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE"&gt;MCUXpresso IDE|Eclipse-based Integrated Development Environment (IDE) | NXP&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I test on a LPCopen project, includes the header file cr_section_macros.h, then add app_data as your description:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/P&gt;&lt;P&gt;_DATA(RAM3) uint32_t app_data;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After build , we can see this variate is placed in RamAHB32 section:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72344iB16F05F8DF542A7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_15.png" alt="pastedImage_15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-If you want to put all global date into RamAHB32, there is a simple method, the Managed Linker Script&lt;BR /&gt;mechanism&amp;nbsp; allow the user to specify a specific memory region to be used for the global data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_16.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72403iD136282ECF382287/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_16.png" alt="pastedImage_16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- If you want to put all of the data into RamAHB32 ,&amp;nbsp; just config it as the first ram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_17.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72439iB2D39468DB0D6142/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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:&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>Mon, 18 Feb 2019 06:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-AHBRAM-not-work/m-p/863398#M34409</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-02-18T06:54:20Z</dc:date>
    </item>
  </channel>
</rss>

