<?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: heap_usenewlib_NXP confusion in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448895#M3748</link>
    <description>&lt;P&gt;You might consider rebuilding the library. See &lt;A href="https://mcuoneclipse.com/2014/08/23/gnu-libs-with-debug-information-rebuilding-the-gnu-arm-libraries/" target="_blank"&gt;https://mcuoneclipse.com/2014/08/23/gnu-libs-with-debug-information-rebuilding-the-gnu-arm-libraries/&lt;/A&gt; how this could be done. The article is a bit dated, but the process is still the same.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 03:45:40 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2022-04-26T03:45:40Z</dc:date>
    <item>
      <title>heap_usenewlib_NXP confusion</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448024#M3739</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to set up&amp;nbsp;heap_usenewlib_NXP.c with my project in MCUXpresso. I'm following Nadler's article here&amp;nbsp;&lt;A href="https://nadler.com/embedded/newlibAndFreeRTOS.html" target="_blank"&gt;https://nadler.com/embedded/newlibAndFreeRTOS.html&lt;/A&gt;. What's confusing me is "&lt;SPAN&gt;Exclude from all builds any current sbrk implementation&lt;/SPAN&gt;". I'm using NewlibNano and I think it is precompiled. So, is it even possible to exclude sbrk? My use-case is a&lt;SPAN&gt;&amp;nbsp;single FreeRTOS task running tests on a MIMXRT1170-EVK board. Some of the tests I'm running use the STL, which use malloc. I tried overwriting the malloc family of functions to use only FreeRTOS heap management, but this doesn't work as some newlib functions will not use my custom malloc implementation (strong linked?).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since I don't think the sbrk provided in heap_usenewlib_NXP was being used, I tried only using the implementation of FreeRTOS's memory API (the functions at the bottom of&amp;nbsp;&lt;A href="https://github.com/DRNadler/FreeRTOS_helpers/blob/master/heap_useNewlib_NXP.c" target="_blank"&gt;https://github.com/DRNadler/FreeRTOS_helpers/blob/master/heap_useNewlib_NXP.c&lt;/A&gt;). But, this is resulting in MMARVALID and DACCVIOL errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All I want is a single FreeRTOS task to run these tests, with a working heap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 02:33:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448024#M3739</guid>
      <dc:creator>Embedded_Noob</dc:creator>
      <dc:date>2022-04-23T02:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: heap_usenewlib_NXP confusion</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448823#M3746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199943"&gt;@Embedded_Noob&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest you refer to Erich's article: Using FreeRTOS with newlib and newlib-nano.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2017/07/02/using-freertos-with-newlib-and-newlib-nano/" target="_blank"&gt;https://mcuoneclipse.com/2017/07/02/using-freertos-with-newlib-and-newlib-nano/&lt;/A&gt;&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;</description>
      <pubDate>Tue, 26 Apr 2022 02:00:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448823#M3746</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2022-04-26T02:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: heap_usenewlib_NXP confusion</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448833#M3747</link>
      <description>&lt;P&gt;My problem with this article is the lack of instructions regarding how to remove any sbrk implementations from Newlib. I see that heap_usenewlib provides a new sbrk implementation, but won't newlib still continue to use its own sbrk implementation, since sbrk is a strong symbol in newlib?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 02:10:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448833#M3747</guid>
      <dc:creator>Embedded_Noob</dc:creator>
      <dc:date>2022-04-26T02:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: heap_usenewlib_NXP confusion</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448895#M3748</link>
      <description>&lt;P&gt;You might consider rebuilding the library. See &lt;A href="https://mcuoneclipse.com/2014/08/23/gnu-libs-with-debug-information-rebuilding-the-gnu-arm-libraries/" target="_blank"&gt;https://mcuoneclipse.com/2014/08/23/gnu-libs-with-debug-information-rebuilding-the-gnu-arm-libraries/&lt;/A&gt; how this could be done. The article is a bit dated, but the process is still the same.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 03:45:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/heap-usenewlib-NXP-confusion/m-p/1448895#M3748</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-04-26T03:45:40Z</dc:date>
    </item>
  </channel>
</rss>

