<?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 set heap size 0 in MCUXpresso IDE in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-set-heap-size-0-in-MCUXpresso-IDE/m-p/671697#M501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it looks like the current implementation of the Heap and Stack placement table only allows the heap to be reduced to 4 bytes, rather than 0. But also providing&amp;nbsp;the below function in your application &lt;SPAN&gt;should do the trick&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;unsigned __check_heap_overflow (void * new_end_of_heap) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;return 1; // Heap has overflowed
}&lt;/PRE&gt;&lt;P&gt;See chapter 12 of the MCUXpresso IDE v10.0.0 User Guide for more details on this function.&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>Mon, 08 May 2017 11:32:48 GMT</pubDate>
    <dc:creator>lpcxpresso_supp</dc:creator>
    <dc:date>2017-05-08T11:32:48Z</dc:date>
    <item>
      <title>How to set heap size 0 in MCUXpresso IDE</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-set-heap-size-0-in-MCUXpresso-IDE/m-p/671696#M500</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´m trying to set size 0 for the heap, but automaticaly it is set to 'default'.&lt;/P&gt;&lt;P&gt;How can I set heap size to 0 or disable the heap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 09:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-set-heap-size-0-in-MCUXpresso-IDE/m-p/671696#M500</guid>
      <dc:creator>zorrotz</dc:creator>
      <dc:date>2017-05-08T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set heap size 0 in MCUXpresso IDE</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-set-heap-size-0-in-MCUXpresso-IDE/m-p/671697#M501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it looks like the current implementation of the Heap and Stack placement table only allows the heap to be reduced to 4 bytes, rather than 0. But also providing&amp;nbsp;the below function in your application &lt;SPAN&gt;should do the trick&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;unsigned __check_heap_overflow (void * new_end_of_heap) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;return 1; // Heap has overflowed
}&lt;/PRE&gt;&lt;P&gt;See chapter 12 of the MCUXpresso IDE v10.0.0 User Guide for more details on this function.&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>Mon, 08 May 2017 11:32:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-set-heap-size-0-in-MCUXpresso-IDE/m-p/671697#M501</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-05-08T11:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set heap size 0 in MCUXpresso IDE</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-set-heap-size-0-in-MCUXpresso-IDE/m-p/671698#M502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This trick helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 12:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/How-to-set-heap-size-0-in-MCUXpresso-IDE/m-p/671698#M502</guid>
      <dc:creator>zorrotz</dc:creator>
      <dc:date>2017-05-08T12:58:38Z</dc:date>
    </item>
  </channel>
</rss>

