<?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: Link error while building S32K14X MCAL Sample Application in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Link-error-while-building-S32K14X-MCAL-Sample-Application/m-p/1598839#M20664</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please do not manually modify the generation code. Instead, please configure user mode in EB Tresos GUI. Besides, build the app with&amp;nbsp;&lt;SPAN&gt;MODE=SUPR means&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MCAL_ENABLE_SUPERVISOR_MODE is defined, not&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MCAL_ENABLE_USER_MODE_SUPPORT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Nam&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 10:48:05 GMT</pubDate>
    <dc:creator>namnguyenviet</dc:creator>
    <dc:date>2023-02-14T10:48:05Z</dc:date>
    <item>
      <title>Link error while building S32K14X MCAL Sample Application</title>
      <link>https://community.nxp.com/t5/S32K/Link-error-while-building-S32K14X-MCAL-Sample-Application/m-p/1593501#M20444</link>
      <description>&lt;P&gt;I am trying to build&amp;nbsp;S32K14X MCAL Sample Application as per the attached PDF file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have compiled the code by adding&lt;/P&gt;&lt;P&gt;#define MCAL_ENABLE_USER_MODE_SUPPORT 1&lt;BR /&gt;in&lt;BR /&gt;cfg/include/CDD_Mcl_Cfg.h&lt;BR /&gt;cfg/include/Can_Cfg.h&lt;BR /&gt;cfg/include/Fls_Cfg.h&lt;BR /&gt;cfg/include/Gpt_Cfg.h&lt;BR /&gt;cfg/include/Mcu_Cfg.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build using the command inside build.bat: (refer attached 7z file)&lt;/P&gt;&lt;P&gt;call launch.bat TOOLCHAIN=linaro MODE=SUPR DERIV=144&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am getting following link errors:&lt;/P&gt;&lt;P&gt;Kindly help to resolve these issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: bin/sample_app_mcal.elf has a LOAD segment with RWX permissions&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Can.o: in function `Can_Init':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:471: undefined reference to `Sys_GoToSupervisor'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:471: undefined reference to `Sys_GoToUser_Return'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Can.o: in function `Can_ChangeBaudrate':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:590: undefined reference to `Sys_GoToSupervisor'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:590: undefined reference to `Sys_GoToUser_Return'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Can.o: in function `Can_SetControllerMode':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:757: undefined reference to `Sys_GoToSupervisor'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:757: undefined reference to `Sys_GoToUser_Return'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Can.o: in function `Can_MainFunction_BusOff':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:2005: undefined reference to `Sys_GoToSupervisor'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:2005: undefined reference to `Sys_GoToUser_Return'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Can.o: in function `Can_MainFunction_Mode':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:2105: undefined reference to `Sys_GoToSupervisor'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Can_TS_T40D2M10I0R0/src/Can.c:2105: undefined reference to `Sys_GoToUser'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Fls_Flash.o: in function `Fls_Flash_VerifyWrite':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Fls_TS_T40D2M10I0R0/src/Fls_Flash.c:1237: undefined reference to `Mcal_Trusted_Call'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Fls_Flash.o: in function `Fls_Flash_VerifyErase':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Fls_TS_T40D2M10I0R0/src/Fls_Flash.c:1044: undefined reference to `Mcal_Trusted_Call'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Fls_Flash.o: in function `Fls_Flash_SectorRead':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Fls_TS_T40D2M10I0R0/src/Fls_Flash.c:3033: undefined reference to `Mcal_Trusted_Call'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Fls_Flash.o: in function `Fls_Flash_SectorCompare':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Fls_TS_T40D2M10I0R0/src/Fls_Flash.c:3407: undefined reference to `Mcal_Trusted_Call'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_Init':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:405: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:409: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:413: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_InitClock':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:439: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:447: undefined reference to `Mcal_Trusted_Call'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:455: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:462: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:468: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:475: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:482: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_SetMode':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:581: undefined reference to `Mcal_Trusted_Call'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:585: undefined reference to `Mcal_Trusted_Call'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_GetResetReason':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:663: undefined reference to `Mcal_Trusted_Call_Return'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_Init':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:416: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_InitClock':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:487: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_DistributePllClock':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:514: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_SetMode':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:618: undefined reference to `Mcal_Trusted_Call1param'&lt;BR /&gt;c:/toolchain/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld.exe: ./bin/Mcu_IPW.o: in function `Mcu_Ipw_GetResetRawValue':&lt;BR /&gt;C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins/Mcu_TS_T40D2M10I0R0/src/Mcu_IPW.c:683: undefined reference to `Mcal_Trusted_Call_Return'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:230: bin/sample_app_mcal.elf] Error 1&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>Mon, 06 Feb 2023 06:33:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Link-error-while-building-S32K14X-MCAL-Sample-Application/m-p/1593501#M20444</guid>
      <dc:creator>anbunathanr</dc:creator>
      <dc:date>2023-02-06T06:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Link error while building S32K14X MCAL Sample Application</title>
      <link>https://community.nxp.com/t5/S32K/Link-error-while-building-S32K14X-MCAL-Sample-Application/m-p/1598839#M20664</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please do not manually modify the generation code. Instead, please configure user mode in EB Tresos GUI. Besides, build the app with&amp;nbsp;&lt;SPAN&gt;MODE=SUPR means&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MCAL_ENABLE_SUPERVISOR_MODE is defined, not&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MCAL_ENABLE_USER_MODE_SUPPORT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Nam&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 10:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Link-error-while-building-S32K14X-MCAL-Sample-Application/m-p/1598839#M20664</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2023-02-14T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Link error while building S32K14X MCAL Sample Application</title>
      <link>https://community.nxp.com/t5/S32K/Link-error-while-building-S32K14X-MCAL-Sample-Application/m-p/1598841#M20665</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;We solved this issue by selecting right combination as follows:&lt;/P&gt;&lt;P&gt;SET TRESOS_DIR=C:/EB/tresos23&lt;BR /&gt;SET MAKE_DIR=C:/NXP/S32DS_ARM_v2018.R1/utils/msys32/usr&lt;BR /&gt;SET GCC_DIR=C:/GNUArmEmbeddedToolchain/102021.10&lt;BR /&gt;SET LINARO_DIR=C:/GNUToolsARMEmbedded/62017-q2-update&lt;/P&gt;&lt;P&gt;SET PLUGINS_DIR=C:/NXP/AUTOSAR/S32K14X_MCAL4_2_RTM_1_0_0/eclipse/plugins&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 11:02:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Link-error-while-building-S32K14X-MCAL-Sample-Application/m-p/1598841#M20665</guid>
      <dc:creator>anbunathanr</dc:creator>
      <dc:date>2023-02-14T11:02:36Z</dc:date>
    </item>
  </channel>
</rss>

