<?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>S32K中的主题 Re: S32K344 FreeRTOS example fails to link</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-FreeRTOS-example-fails-to-link/m-p/2390179#M59671</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Joe Shidle,&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience we bring you!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I was able to reproduce the issue where example does not build correctly because of Ld errors, and their solution is correct:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Root cause:&amp;nbsp;MPU is enabled by default in the S32CT. This causes code generator to emit MPU-aware code (including references to the FreeRTOS MPU linker symbols). However, the linker script for the&amp;nbsp;&lt;STRONG&gt;Toggle_Led_Example_S32K344&amp;nbsp;&lt;/STRONG&gt;(linker_flash_s32k344.ld) does not define these MPU memory regions or their boundary symbols — those are only present in MPU-specific examples (e.g., FreeRTOS_MPU_Example_S32K389/linker_flash_s32k389.ld). The mismatch between the generated code expecting MPU symbols and the non-MPU linker script causes the undefined reference errors.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Disabling 'use mpu' makes the example compile correctly:&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="Toggle_Led_Example_S32K344 disable MPU.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/391185i1EB33B6DD8E84E79/image-size/large?v=v2&amp;amp;px=999" role="button" title="Toggle_Led_Example_S32K344 disable MPU.png" alt="Toggle_Led_Example_S32K344 disable MPU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Side effect note: Disabling MPU by default means users who need MPU must explicitly enable it in S32CT and configure the memory regions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Robin&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2026 07:30:22 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2026-07-03T07:30:22Z</dc:date>
    <item>
      <title>S32K344 FreeRTOS example fails to link</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-FreeRTOS-example-fails-to-link/m-p/2389958#M59649</link>
      <description>&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;I'm just starting out with the S32K344 EVK (S32K344MINI-EVB) and am using the IDE 3.6.5 with FreeRTOS 7.0.0 (D2511) that came in the FRDM automotive bundle created by the package manager.&lt;BR /&gt;&lt;BR /&gt;I'm trying to build one of the provided sample applications for the 344, via the "S32DS Project from Example", the FreeRTOS_Toggle_Led_Example_S32K344..&lt;/P&gt;&lt;P&gt;I've use the ConfigTools to Update Code, but so far that's the only modification to the code that I've made.&lt;/P&gt;&lt;P&gt;But out of the box the code fails at the link stage:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;c:/nxp/s32ds.3.6.5/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: ./FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o: in function `vPortStoreTaskMPUSettings':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C:\Workspaces-35\FreeRTOS_Toggle_Led_Example_S32K344\Debug_FLASH/../FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.c:1890: undefined reference to `__FreeRTOS_code_data_start__'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c:/nxp/s32ds.3.6.5/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: C:\Workspaces-35\FreeRTOS_Toggle_Led_Example_S32K344\Debug_FLASH/../FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.c:1890: undefined reference to `__FreeRTOS_code_data_end__'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c:/nxp/s32ds.3.6.5/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: ./FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o: in function `prvSetupMPU':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C:\Workspaces-35\FreeRTOS_Toggle_Led_Example_S32K344\Debug_FLASH/../FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.c:1723: undefined reference to `__FreeRTOS_code_data_end__'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c:/nxp/s32ds.3.6.5/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: C:\Workspaces-35\FreeRTOS_Toggle_Led_Example_S32K344\Debug_FLASH/../FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.c:1723: undefined reference to `__FreeRTOS_code_data_start__'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="freertos_error.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/391140i6F9B5DFD5CB3E51F/image-size/large?v=v2&amp;amp;px=999" role="button" title="freertos_error.png" alt="freertos_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I assume these are linker sections, but they do not appear to be defined anywhere inside either the sample code, the FreeRTOS folder inside the package, or elsewhere.&lt;BR /&gt;&lt;BR /&gt;Are the "S32DS Project from Example" sample projects outdated? Or is there a simple fix to this issue that I'm missing?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Joe Shidle&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 22:02:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-FreeRTOS-example-fails-to-link/m-p/2389958#M59649</guid>
      <dc:creator>joeshidle</dc:creator>
      <dc:date>2026-07-02T22:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 FreeRTOS example fails to link</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-FreeRTOS-example-fails-to-link/m-p/2390179#M59671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Joe Shidle,&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience we bring you!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I was able to reproduce the issue where example does not build correctly because of Ld errors, and their solution is correct:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Root cause:&amp;nbsp;MPU is enabled by default in the S32CT. This causes code generator to emit MPU-aware code (including references to the FreeRTOS MPU linker symbols). However, the linker script for the&amp;nbsp;&lt;STRONG&gt;Toggle_Led_Example_S32K344&amp;nbsp;&lt;/STRONG&gt;(linker_flash_s32k344.ld) does not define these MPU memory regions or their boundary symbols — those are only present in MPU-specific examples (e.g., FreeRTOS_MPU_Example_S32K389/linker_flash_s32k389.ld). The mismatch between the generated code expecting MPU symbols and the non-MPU linker script causes the undefined reference errors.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Disabling 'use mpu' makes the example compile correctly:&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="Toggle_Led_Example_S32K344 disable MPU.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/391185i1EB33B6DD8E84E79/image-size/large?v=v2&amp;amp;px=999" role="button" title="Toggle_Led_Example_S32K344 disable MPU.png" alt="Toggle_Led_Example_S32K344 disable MPU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Side effect note: Disabling MPU by default means users who need MPU must explicitly enable it in S32CT and configure the memory regions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Robin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2026 07:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-FreeRTOS-example-fails-to-link/m-p/2390179#M59671</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-07-03T07:30:22Z</dc:date>
    </item>
  </channel>
</rss>

