<?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: error while porting example code to s32k312</title>
    <link>https://community.nxp.com/t5/S32K/error-while-porting-example-code-to-s32k312/m-p/1789926#M30730</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224860"&gt;@vikmonti7804&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Maybe you didn't add declaration files those global variables and functions. I saw that they was placed files at the path (in HSE_DEMOAPP):&lt;/P&gt;
&lt;P&gt;for example: C:\NXP\HSE_DEMOAPP_S32K3XX_0_2_1_0\demo_security_installer\src\demo_app\services&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 03:52:35 GMT</pubDate>
    <dc:creator>DanNguyenDuy</dc:creator>
    <dc:date>2024-01-17T03:52:35Z</dc:date>
    <item>
      <title>error while porting example code to s32k312</title>
      <link>https://community.nxp.com/t5/S32K/error-while-porting-example-code-to-s32k312/m-p/1787010#M30517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am converting one HSE example code form S32k344 to S32k312, everything went well , but when i am adding the folder serves to the project and include path of folders , the it start giving the many errors, i have added the respective headers file to the source file but these errors are not getting resolved.&lt;/P&gt;&lt;P&gt;please look these error and provide the solution.&lt;/P&gt;&lt;P&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_get_capabilities.c:82: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_attribute/non-otp/hse_get_version.o: in function `getFwVersionService':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_get_version.c:123: undefined reference to `gHseFwVersion'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_attribute/non-otp/hse_mu_config.o: in function `MU_EnablementService':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_mu_config.c:129: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_mu_config.c:129: undefined reference to `write_attr'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_mu_config.c:129: undefined reference to `WriteMu1Config'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_mu_config.c:129: undefined reference to `ReadMu1Config'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_attribute/otp/hse_advance_LC.o: in function `Advance_LifeCycle_Service':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_advance_LC.c:157: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_advance_LC.c:157: undefined reference to `write_attr'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_attribute/otp/hse_boot_auth.o: in function `IVT_Auth_Service':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_boot_auth.c:153: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_boot_auth.c:153: undefined reference to `write_attr'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_attribute/otp/hse_debug_auth_mode.o: in function `Debug_Auth_Service':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_debug_auth_mode.c:136: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_debug_auth_mode.c:136: undefined reference to `write_attr'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_attribute/otp/hse_debug_key.o: in function `ProgramADKPService':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_debug_key.c:299: undefined reference to `write_attr'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_debug_key.c:299: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_attribute/otp/hse_extend_cust_security_policy.o: in function `ExtendCustomerSecurityPolicyService':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_extend_cust_security_policy.c:148: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_extend_cust_security_policy.c:148: undefined reference to `write_attr'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_extend_cust_security_policy.c:148: undefined reference to `GetStartAsUserBit'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_extend_cust_security_policy.c:148: undefined reference to `GetEnableAdkmBit'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/fw_update/standard/hse_fw_update.o: in function `firmwareUpdateService':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_update/standard/hse_fw_update.c:402: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_update/standard/hse_fw_update.c:402: undefined reference to `fwudpate_only'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_update/standard/hse_fw_update.c:402: undefined reference to `ActivatePassiveBlock'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_update/standard/hse_fw_update.c:402: undefined reference to `gHseFwVersion'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/hse_demo_app_config.o: in function `WaitandSetFWEnablefeatureflag':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:27: undefined reference to `gProgramAttributes'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:27: undefined reference to `gsrvResponse'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/hse_demo_app_config.o: in function `CopyFlashToSRAMHseHost':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:75: undefined reference to `HSE_HOST_FLASH_SRC_START_ADDR'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:75: undefined reference to `HSE_HOST_FLASH_SRC_END_ADDR'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:75: undefined reference to `HSE_HOST_RAM_DST_START_ADDR'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/hse_demo_app_config.o: in function `attributeProgrammingService':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:172: undefined reference to `gEnableIVTAuthBit'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/hse_host_flash.o: in function `HostFlash_Init':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_host_flash.c:156: undefined reference to `FLASH_DRIVER_FLASH_SRC_START_ADDRESS'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_host_flash.c:156: undefined reference to `FLASH_DRIVER_FLASH_SRC_END_ADDRESS'&lt;BR /&gt;c:/nxp/s32ds.3.4/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:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_host_flash.c:156: undefined reference to `FLASH_DRIVER_RAM_DST_START_ADDRESS'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/secure_boot/hse_secure_boot.o: in function `ConfigureSHESecureBoot':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/secure_boot/hse_secure_boot.c:378: undefined reference to `gRunSecureBootType'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/secure_boot/hse_secure_boot.o: in function `VerifyKeys':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/secure_boot/hse_secure_boot.c:402: undefined reference to `authentication_type'&lt;BR /&gt;c:/nxp/s32ds.3.4/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: ./services/src/secure_boot/hse_secure_boot.o: in function `SecureBootService':&lt;BR /&gt;C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/secure_boot/hse_secure_boot.c:209: undefined reference to `gsrvResponse'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:60: Secure_boot_s32k32.elf] Error 1&lt;BR /&gt;"make -j8 all" terminated with exit code 2. Build might be incomplete.&lt;/P&gt;&lt;P&gt;13:44:33 Build Failed. 35 errors, 117 warnings. (took 41s.130ms)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting&lt;/P&gt;&lt;P&gt;"${ProjDirPath}/services/inc/host_flash/S32K3x2"&lt;BR /&gt;"${ProjDirPath}/services/inc"&lt;BR /&gt;"${ProjDirPath}/services/inc/standard"&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 08:23:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/error-while-porting-example-code-to-s32k312/m-p/1787010#M30517</guid>
      <dc:creator>vikmonti7804</dc:creator>
      <dc:date>2024-01-11T08:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: error while porting example code to s32k312</title>
      <link>https://community.nxp.com/t5/S32K/error-while-porting-example-code-to-s32k312/m-p/1789926#M30730</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224860"&gt;@vikmonti7804&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Maybe you didn't add declaration files those global variables and functions. I saw that they was placed files at the path (in HSE_DEMOAPP):&lt;/P&gt;
&lt;P&gt;for example: C:\NXP\HSE_DEMOAPP_S32K3XX_0_2_1_0\demo_security_installer\src\demo_app\services&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 03:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/error-while-porting-example-code-to-s32k312/m-p/1789926#M30730</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2024-01-17T03:52:35Z</dc:date>
    </item>
  </channel>
</rss>

