error while porting example code to s32k312

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

error while porting example code to s32k312

383件の閲覧回数
vikmonti7804
Contributor III

Hi,

  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.

please look these error and provide the solution.

C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_get_capabilities.c:82: undefined reference to `gsrvResponse'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_get_version.c:123: undefined reference to `gHseFwVersion'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/non-otp/hse_mu_config.c:129: undefined reference to `gsrvResponse'
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'
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'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_advance_LC.c:157: undefined reference to `gsrvResponse'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_boot_auth.c:153: undefined reference to `gsrvResponse'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_debug_auth_mode.c:136: undefined reference to `gsrvResponse'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_debug_key.c:299: undefined reference to `write_attr'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_attribute/otp/hse_extend_cust_security_policy.c:148: undefined reference to `gsrvResponse'
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'
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'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/fw_update/standard/hse_fw_update.c:402: undefined reference to `gsrvResponse'
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'
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'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:27: undefined reference to `gProgramAttributes'
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'
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':
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'
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'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_demo_app_config.c:172: undefined reference to `gEnableIVTAuthBit'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/hse_host_flash.c:156: undefined reference to `FLASH_DRIVER_FLASH_SRC_START_ADDRESS'
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'
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'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/secure_boot/hse_secure_boot.c:378: undefined reference to `gRunSecureBootType'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/secure_boot/hse_secure_boot.c:402: undefined reference to `authentication_type'
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':
C:\Work\S32K312\Secure_boot_s32k32\Debug_FLASH/../services/src/secure_boot/hse_secure_boot.c:209: undefined reference to `gsrvResponse'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:60: Secure_boot_s32k32.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

13:44:33 Build Failed. 35 errors, 117 warnings. (took 41s.130ms)

 

Setting

"${ProjDirPath}/services/inc/host_flash/S32K3x2"
"${ProjDirPath}/services/inc"
"${ProjDirPath}/services/inc/standard"

タグ(1)
0 件の賞賛
返信
1 返信

357件の閲覧回数
nxf78987
NXP Employee
NXP Employee

Hello @vikmonti7804,

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):

for example: C:\NXP\HSE_DEMOAPP_S32K3XX_0_2_1_0\demo_security_installer\src\demo_app\services

Best regards,

Dan

0 件の賞賛
返信