<?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 s32k116 can not use  all ram in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2051300#M46245</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="364713ca-ed28-4d46-9d1f-da82ceb8f2a1.png" style="width: 749px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/325654i7C8739DE471D1C8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="364713ca-ed28-4d46-9d1f-da82ceb8f2a1.png" alt="364713ca-ed28-4d46-9d1f-da82ceb8f2a1.png" /&gt;&lt;/span&gt;&amp;nbsp;I set the configTOTAL_HEAP_SIZE = 4096 in freertosConfig.h ,the project can build successfully.if I set the&amp;nbsp;configTOTAL_HEAP_SIZE = 8192,the project show error:S32k116_Freertos.elf section `.bss' will not fit in region `m_data_2'&lt;/P&gt;&lt;P&gt;region m_data_2 overflowed with stack and heap&lt;/P&gt;&lt;P&gt;section .stack VMA [20003600,200037ff] overlaps section .bss VMA [200020c0,200042a3]&lt;/P&gt;&lt;P&gt;region `m_data_2' overflowed by 0 bytes&lt;/P&gt;&lt;P&gt;when it is 8192 ,the ram used only almost 9 KB, less than the total ram space 16kB.why does it remind error,how to solve it?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 03:35:56 GMT</pubDate>
    <dc:creator>Harold_zhou</dc:creator>
    <dc:date>2025-02-26T03:35:56Z</dc:date>
    <item>
      <title>s32k116 can not use  all ram</title>
      <link>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2051300#M46245</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="364713ca-ed28-4d46-9d1f-da82ceb8f2a1.png" style="width: 749px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/325654i7C8739DE471D1C8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="364713ca-ed28-4d46-9d1f-da82ceb8f2a1.png" alt="364713ca-ed28-4d46-9d1f-da82ceb8f2a1.png" /&gt;&lt;/span&gt;&amp;nbsp;I set the configTOTAL_HEAP_SIZE = 4096 in freertosConfig.h ,the project can build successfully.if I set the&amp;nbsp;configTOTAL_HEAP_SIZE = 8192,the project show error:S32k116_Freertos.elf section `.bss' will not fit in region `m_data_2'&lt;/P&gt;&lt;P&gt;region m_data_2 overflowed with stack and heap&lt;/P&gt;&lt;P&gt;section .stack VMA [20003600,200037ff] overlaps section .bss VMA [200020c0,200042a3]&lt;/P&gt;&lt;P&gt;region `m_data_2' overflowed by 0 bytes&lt;/P&gt;&lt;P&gt;when it is 8192 ,the ram used only almost 9 KB, less than the total ram space 16kB.why does it remind error,how to solve it?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 03:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2051300#M46245</guid>
      <dc:creator>Harold_zhou</dc:creator>
      <dc:date>2025-02-26T03:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 can not use  all ram</title>
      <link>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2051732#M46264</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247342"&gt;@Harold_zhou&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do you really use the RAM linker file that you posted or is it the Flash linker file?&lt;/P&gt;
&lt;P&gt;Anyway, there is only 0x37FF of SRAM_U.&lt;/P&gt;
&lt;P&gt;The heap is in m_data_2 memory area. So, if you need 8kB heap, you need at least 8kB (0x1FFF) of m_data_2.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;But there is BSS and the stack in m_data_2 too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_40561c91a18d62danielmartynek_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_40561c91a18d62danielmartynek_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 11:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2051732#M46264</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-02-26T11:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 can not use  all ram</title>
      <link>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2052513#M46287</link>
      <description>&lt;P&gt;it is ram link file,so I need change the m_data_2 in linker file named flash.ld&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* SRAM_U */&lt;BR /&gt;m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x000020C0&lt;BR /&gt;m_data_2 (RW) : ORIGIN = 0x200020C0, LENGTH = 0x00001740&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 03:47:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2052513#M46287</guid>
      <dc:creator>Harold_zhou</dc:creator>
      <dc:date>2025-02-27T03:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: s32k116 can not use  all ram</title>
      <link>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2052820#M46295</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247342"&gt;@Harold_zhou&lt;/a&gt;,&lt;/P&gt;
&lt;DIV id="tinyMceEditordanielmartynek_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;The error message mentioned m_data_2 which is in the *flash.ld linker file only.&lt;/P&gt;
&lt;P&gt;So, you use the *flash.ld linker in the project not the *ram.ld&lt;/P&gt;
&lt;P&gt;You can increase m_data_2 but only within the size of the actual SRAM_U as I mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 08:57:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k116-can-not-use-all-ram/m-p/2052820#M46295</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-02-27T08:57:17Z</dc:date>
    </item>
  </channel>
</rss>

