<?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: Facing Compilation error undefined reference to `_sbrk' in S32G</title>
    <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342017#M16183</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/24163"&gt;@chenyin_h&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please let me know if there is any Update on this issue.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2026 06:48:13 GMT</pubDate>
    <dc:creator>Prithviraj_k</dc:creator>
    <dc:date>2026-03-30T06:48:13Z</dc:date>
    <item>
      <title>Facing Compilation error undefined reference to `_sbrk'</title>
      <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2340112#M16170</link>
      <description>&lt;P&gt;Hello, I am using S32G399A Series ,&lt;BR /&gt;Earlier i was successfully able to build package but now i was trying to integrate HSE in it due to which i had to add hse sections in linker file [board-gnu.ldscript ].&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linker error.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/380475iC228CBB89DF68D4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="linker error.PNG" alt="linker error.PNG" /&gt;&lt;/span&gt;I have attached the image of the error .Could you please check this and let me know if you need further details.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 09:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2340112#M16170</guid>
      <dc:creator>Prithviraj_k</dc:creator>
      <dc:date>2026-03-26T09:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Facing Compilation error undefined reference to `_sbrk'</title>
      <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2340241#M16171</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240359"&gt;@Prithviraj_k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your post.&lt;/P&gt;
&lt;P&gt;Would you mind introducing more about the background?&lt;/P&gt;
&lt;P&gt;1. What project was built? Is it a custom application or examples from NXP?&lt;/P&gt;
&lt;P&gt;2. Which version of the software packages(HSE, goldvip, etc.) involved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 11:03:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2340241#M16171</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2026-03-26T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Facing Compilation error undefined reference to `_sbrk'</title>
      <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2340303#M16172</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/24163"&gt;@chenyin_h&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;1.I am Building the Custom changes done on BSW Application over the GoldVip Package&lt;BR /&gt;2. Hse FW Version is 2_64&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We are using GCC Compiler of 9.2&amp;nbsp;&lt;BR /&gt;. TARGET = CORTEXM&lt;BR /&gt;. DERIVATE = S32G399&lt;BR /&gt;. TOOLCHAIN = gnu&lt;BR /&gt;. TOOLPATH_COMPILER = C:/NXP/S32DS.3.5/S32DS/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi&lt;BR /&gt;. TRESOS_BASE = D:/EB_BSW/EB_GVIP/EB_GVIP&lt;BR /&gt;. PLUGINS_BASE = D:/EB_BSW/EB_GVIP/EB_GVIP/plugins.&lt;BR /&gt;&lt;BR /&gt;If you need more Details please let me know .Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 12:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2340303#M16172</guid>
      <dc:creator>Prithviraj_k</dc:creator>
      <dc:date>2026-03-26T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Facing Compilation error undefined reference to `_sbrk'</title>
      <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342017#M16183</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/24163"&gt;@chenyin_h&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please let me know if there is any Update on this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 06:48:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342017#M16183</guid>
      <dc:creator>Prithviraj_k</dc:creator>
      <dc:date>2026-03-30T06:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Facing Compilation error undefined reference to `_sbrk'</title>
      <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342104#M16184</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240359"&gt;@Prithviraj_k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel sorry for the late reply due on leave.&lt;/P&gt;
&lt;P&gt;From the log you shared, seems the heap is introduced since sbrk is involved, the linker does not find the definition of sbrk,&amp;nbsp; no sure if your application rely on the heap for allocating memory?&lt;/P&gt;
&lt;P&gt;Which version GoldVIP is used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Chenyin&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 09:40:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342104#M16184</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2026-03-30T09:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Facing Compilation error undefined reference to `_sbrk'</title>
      <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342898#M16187</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/24163"&gt;@chenyin_h&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;The RTD Version :&lt;SPAN&gt;SW32G_RTD_4.4_4.0.2&amp;nbsp;&lt;BR /&gt;I have found a NXP Query with similiar issue&amp;nbsp; :&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Design-Studio/New-KDS-3-problem-undefined-reference-to-sbrk/m-p/444517#M4263" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Design-Studio/New-KDS-3-problem-undefined-reference-to-sbrk/m-p/444517#M4263&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So i have tried to enable the LD Flags by using&amp;nbsp;LINK_OPT += --specs=$(TOOLPATH_COMPILER)/arm-none-eabi/newlib/lib/nosys.specs and after making the above changes in makefile i am getting below error .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/380933i2DDD63C7811189DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 10:28:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342898#M16187</guid>
      <dc:creator>Prithviraj_k</dc:creator>
      <dc:date>2026-03-31T10:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Facing Compilation error undefined reference to `_sbrk'</title>
      <link>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342984#M16188</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240359"&gt;@Prithviraj_k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The symbol "end" needs to be defined in your linker file, which is used to set the location of the heap. It usually depends on your own implementation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Chenyin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 10:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/Facing-Compilation-error-undefined-reference-to-sbrk/m-p/2342984#M16188</guid>
      <dc:creator>chenyin_h</dc:creator>
      <dc:date>2026-03-31T10:57:53Z</dc:date>
    </item>
  </channel>
</rss>

