<?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: How to use Available On chip RAM in LPC4367/LPC43XX in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1330739#M46315</link>
    <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will check by implementing it at my side, since it think it is the only way, but then if assign back to back memory location but still it is not executing as per our expectation.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 04:04:14 GMT</pubDate>
    <dc:creator>gauravmore</dc:creator>
    <dc:date>2021-08-27T04:04:14Z</dc:date>
    <item>
      <title>How to use Available On chip RAM in LPC4367/LPC43XX</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1329991#M46287</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;I am using LPC4367 tri core controller for our application development. I am facing issue related to on chip RAM availability. Total SRAM available in LPC4367 as per data sheet is 154KB which is used for 3 different cores (M4 / M0App/ M0Sub).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Refer the below screen shot which shows the bifurcation of 154KB RAM&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_0-1629952495813.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154156iCEA1577BCB2AF156/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_0-1629952495813.png" alt="gauravmore_0-1629952495813.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Now, considering the above information we can see that for Core M4 is assigned 40KB RAM for Core M0App I have assigned 32KB RAM and for Core M0Sub core is assigned 16KB (RAMM0Sub16) RAM. After compilation of tri core project I get following result for individual core.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;M0App Core:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;MCU Setting:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_4-1629953285938.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154161i2D3905241D8B8A2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_4-1629953285938.png" alt="gauravmore_4-1629953285938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Memory Utilization after compilation:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_1-1629952862754.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154158i88BE373E58A700B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_1-1629952862754.png" alt="gauravmore_1-1629952862754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Above is the Memory utilization of M0App core after implementation of the application code. We can observe that RamLoc32 is utilized around&amp;nbsp;91 %. But the other memory location like RamAHB32 / RAMAHB16 / RamAhbETB16 are not utilized. As per the MCU setting show above for M0App Core project it is allocating only 32KB rest is unused.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;M0Sub Core:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;MCU Setting:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_6-1629953517501.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154163i549351A16D6159F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_6-1629953517501.png" alt="gauravmore_6-1629953517501.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Memory utilization after compilation:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_2-1629952923883.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154159i134FACBFCE16E8EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_2-1629952923883.png" alt="gauravmore_2-1629952923883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Above is the Memory utilization of M4 core after implementation of the application code. We can observe that RamM0sub16 is utilized around&amp;nbsp;54%.&amp;nbsp; per the MCU setting show above for M0App Core project it is allocating only 16KB rest is unused.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;But in this what if the memory goes beyond 16KB then whether it uses the other 2KB RAM? Please confirm.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;M4Core :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;MCU Setting:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_5-1629953459818.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154162i434EA8C2D06EE207/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_5-1629953459818.png" alt="gauravmore_5-1629953459818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Memory Utilization after compilation:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_3-1629952985925.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154160iAD5ABBF90E63DA14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_3-1629952985925.png" alt="gauravmore_3-1629952985925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Above is the Memory utilization of M4 core after implementation of the application code. We can observe that RamLoc40 is utilized around&amp;nbsp;94 %. But the other memory location like RamAHB32 / RAMAHB16 / RamAhbETB16 are not utilized. As per the MCU setting show above for M0App Core project it is allocating only 40KB rest is unused.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Over all the problem statement is as per the MCU setting of the respective core he RAM allocated to the respective core is less however as per the data sheet it says that over all 154 KB RAM is available and can be used for the three cores. But after doing the MCU setting I checked and found that only the above mentioned RAM is allocated&amp;nbsp; (M4 -40Kb, M0App-32KB and M0Sub-16KB).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;How to use the other memory locations using MCU setting or only by &amp;nbsp;__DATA(bank) Attribute?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Do we need to modify linker script in order to used the unused RAM memory ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Since this is very critical for us w.r.t to our application side please suggest the proper method.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;BR,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Gaurav More&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 05:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1329991#M46287</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2021-08-26T05:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Available On chip RAM in LPC4367/LPC43XX</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1330211#M46299</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;gauravmore,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;How about refer to "17.13.2 Placing data into different RAM blocks using Macros" of MCUXpresso IDE User Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1330211#M46299</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-08-26T09:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Available On chip RAM in LPC4367/LPC43XX</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1330739#M46315</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will check by implementing it at my side, since it think it is the only way, but then if assign back to back memory location but still it is not executing as per our expectation.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 04:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1330739#M46315</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2021-08-27T04:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Available On chip RAM in LPC4367/LPC43XX</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1332292#M46342</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Hi Alice,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;As per your input I made following modification,&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Following is the MCU setting of the M4 Core &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_1-1630392957181.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154615i37C6B7E98C585F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_1-1630392957181.png" alt="gauravmore_1-1630392957181.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;As per the setting you can see that RamAHB32 - RAM3 - 32KB. so to allocate the buffer to this RAM3 bank I wrote below line,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;__DATA(RAM3) char M4_Buffer[1024];&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;after compilation I do not find any change in the memory region&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_2-1630393156045.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154617i3A2D641F93247602/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_2-1630393156045.png" alt="gauravmore_2-1630393156045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;But after checking the MAP file I found the RAM3 location&amp;nbsp; with 0x400 size but that is under&amp;nbsp; &lt;STRONG&gt;"Discarded input sections"&lt;/STRONG&gt; if the .Map file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gauravmore_3-1630393320899.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/154619iA03E72270EC92EA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gauravmore_3-1630393320899.png" alt="gauravmore_3-1630393320899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;So you can see that the size with respect to the data in RAM3 is visible but no the variable. Over all I am Not able to allocate the Buffer in RAM memory.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;There are some query regarding this issue,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;1. What is the&amp;nbsp;&lt;STRONG&gt;Discarded input sections?&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;2. If the memory configuration is done in MCU setting then why it is not allocation the buffer to the RAM location?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;3.&amp;nbsp; Is there any setting in the MCU xpresso&amp;nbsp; IDE regarding the above issue?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Also find the attached code for Reference.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;BR&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Gaurav More&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1332292#M46342</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2021-08-31T07:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Available On chip RAM in LPC4367/LPC43XX</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1332320#M46343</link>
      <description>&lt;P&gt;"Discarded Input Sections" are sections that are present in the code but have discarded by the linker because they are unused - there is no reference to it in the code. To resolve this, you need to place a reference to the data in your code, or decorate the declaration with&amp;nbsp;__attribute__((used))&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;__DATA(RAM3) __attribute__((used)) char M4_Buffer[1024];&lt;/PRE&gt;&lt;P&gt;This tells the linker that M4_buffer is used, and therefore will not be discarded. Alternatively, you could just wite&lt;/P&gt;&lt;PRE&gt;main() {&lt;BR /&gt;...&lt;BR /&gt;    *M4_buffer = 0 ;&lt;BR /&gt;...&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;(reference the data!)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:40:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1332320#M46343</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2021-08-31T07:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Available On chip RAM in LPC4367/LPC43XX</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1332419#M46345</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Hi Converse,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Thanks for the reply,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Noted you point and modified the same now it is clear and able to get the buffer allocated to the require memory location.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Thanks for the solution.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;BR,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="2"&gt;Gaurav More&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 09:08:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-Available-On-chip-RAM-in-LPC4367-LPC43XX/m-p/1332419#M46345</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2021-08-31T09:08:38Z</dc:date>
    </item>
  </channel>
</rss>

