failed to compile tfm_secure_peripheral under 2.2.0 using vscode

Hello,  I am attempting to evaluate the tfm_secure_peripheral reference using the build configuration "nRF9160 DK non secure" under sdk 2.2.0 but am unable to successfully compile under VSCode.   I have tried using the toolchain manager to uninstall and re-install but I get the same error every time.  Any hints?   See below:



[176/184] Linking C static library secure_fw\partitions\crypto\libtfm_psa_rot_partition_crypto.a
[177/184] Linking C static library secure_fw\partitions\lib\sprt\libtfm_sprt.a
[178/184] Linking C static library secure_fw\spm\libtfm_spm.a
[179/184] Building C object platform/target/nrf9160/nrf_common/CMakeFiles/tfm_s_scatter.dir/gcc/nordic_nrf_s.ld
[180/184] Linking C executable bin\tfm_s.axf
FAILED: bin/tfm_s.axf
cmd.exe /C "cd . && C:\ncs\toolchains\v2.2.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -mcpu=cortex-m33+nodsp -Os -DNDEBUG -mcpu=cortex-m33+nodsp --entry=Reset_Handler --specs=nano.specs -Wl,-check-sections -Wl,-fatal-warnings -Wl,--gc-sections -Wl,--no-wchar-size-warning -Wl,-Map=C:/ncs/v2.2.0/nrf/samples/tfm/tfm_secure_peripheral/build/tfm/bin/tfm_s.map -Wl,--undefined=tfm_crypto_get_key_attributes -Wl,--undefined=tfm_crypto_open_key -Wl,--undefined=tfm_crypto_close_key -Wl,--undefined=tfm_crypto_reset_key_attributes -Wl,--undefined=tfm_crypto_import_key -Wl,--undefined=tfm_crypto_destroy_key -Wl,--undefined=tfm_crypto_export_key -Wl,--undefined=tfm_crypto_export_public_key -Wl,--undefined=tfm_crypto_purge_key -Wl,--undefined=tfm_crypto_copy_key -Wl,--undefined=tfm_crypto_hash_compute -Wl,--undefined=tfm_crypto_hash_compare -Wl,--undefined=tfm_crypto_hash_setup -Wl,--undefined=tfm_crypto_hash_update -Wl,--undefined=tfm_crypto_hash_finish -Wl,--undefined=tfm_crypto_hash_verify -Wl,--undefined=tfm_crypto_hash_abort -Wl,--undefined=tfm_crypto_hash_clone -Wl,--undefined=tfm_crypto_mac_compute -Wl,--undefined=tfm_crypto_mac_verify -Wl,--undefined=tfm_crypto_mac_sign_setup -Wl,--undefined=tfm_crypto_mac_verify_setup -Wl,--undefined=tfm_crypto_mac_update -Wl,--undefined=tfm_crypto_mac_sign_finish -Wl,--undefined=tfm_crypto_mac_verify_finish -Wl,--undefined=tfm_crypto_mac_abort -Wl,--undefined=tfm_crypto_cipher_encrypt -Wl,--undefined=tfm_crypto_cipher_decrypt -Wl,--undefined=tfm_crypto_cipher_encrypt_setup -Wl,--undefined=tfm_crypto_cipher_decrypt_setup -Wl,--undefined=tfm_crypto_cipher_generate_iv -Wl,--undefined=tfm_crypto_cipher_set_iv -Wl,--undefined=tfm_crypto_cipher_update -Wl,--undefined=tfm_crypto_cipher_finish -Wl,--undefined=tfm_crypto_cipher_abort -Wl,--undefined=tfm_crypto_aead_encrypt -Wl,--undefined=tfm_crypto_aead_decrypt -Wl,--undefined=tfm_crypto_aead_encrypt_setup -Wl,--undefined=tfm_crypto_aead_decrypt_setup -Wl,--undefined=tfm_crypto_aead_generate_nonce -Wl,--undefined=tfm_crypto_aead_set_nonce -Wl,--undefined=tfm_crypto_aead_set_lengths -Wl,--undefined=tfm_crypto_aead_update_ad -Wl,--undefined=tfm_crypto_aead_update -Wl,--undefined=tfm_crypto_aead_finish -Wl,--undefined=tfm_crypto_aead_verify -Wl,--undefined=tfm_crypto_aead_abort -Wl,--undefined=tfm_crypto_sign_message -Wl,--undefined=tfm_crypto_verify_message -Wl,--undefined=tfm_crypto_sign_hash -Wl,--undefined=tfm_crypto_verify_hash -Wl,--undefined=tfm_crypto_asymmetric_encrypt -Wl,--undefined=tfm_crypto_asymmetric_decrypt -Wl,--undefined=tfm_crypto_key_derivation_setup -Wl,--undefined=tfm_crypto_key_derivation_get_capacity -Wl,--undefined=tfm_crypto_key_derivation_set_capacity -Wl,--undefined=tfm_crypto_key_derivation_input_bytes -Wl,--undefined=tfm_crypto_key_derivation_input_key -Wl,--undefined=tfm_crypto_key_derivation_key_agreement -Wl,--undefined=tfm_crypto_key_derivation_output_bytes -Wl,--undefined=tfm_crypto_key_derivation_output_key -Wl,--undefined=tfm_crypto_key_derivation_abort -Wl,--undefined=tfm_crypto_raw_key_agreement -Wl,--undefined=tfm_crypto_generate_random -Wl,--undefined=tfm_crypto_generate_key -Wl,--undefined=platform_sp_system_reset -Wl,--undefined=platform_sp_ioctl -Wl,--undefined=platform_sp_nv_counter_read -Wl,--undefined=platform_sp_nv_counter_increment -mfloat-abi=hard -mfpu=fpv5-sp-d16 -Wl,--cmse-implib,--out-implib=C:/ncs/v2.2.0/nrf/samples/tfm/tfm_secure_peripheral/build/tfm/secure_fw/s_veneers.o -T C:/ncs/v2.2.0/nrf/samples/tfm/tfm_secure_peripheral/build/tfm/platform/target/nrf9160/nrf_common/CMakeFiles/tfm_s_scatter.dir/./gcc/nordic_nrf_s.ld @CMakeFiles\tfm_s.rsp -o bin\tfm_s.axf  && cd ."
c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: secure_fw/CMakeFiles/tfm_s.dir/__/secure_peripheral_partition/auto_generated/load_info_tfm_secure_peripheral_partition.o:(.part_load+0x64): undefined reference to `tfm_peripheral_timer1'
c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: secure_fw/CMakeFiles/tfm_s.dir/__/secure_peripheral_partition/auto_generated/load_info_tfm_secure_peripheral_partition.o:(.part_load+0x70): undefined reference to `tfm_peripheral_spim3'
c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: secure_fw/CMakeFiles/tfm_s.dir/__/secure_peripheral_partition/auto_generated/load_info_tfm_secure_peripheral_partition.o:(.part_load+0x7c): undefined reference to `tfm_timer1_irq_init'
c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: secure_fw/CMakeFiles/tfm_s.dir/__/secure_peripheral_partition/auto_generated/load_info_tfm_secure_peripheral_partition.o:(.part_load+0x90): undefined reference to `tfm_spim3_irq_init'
c:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: secure_fw/CMakeFiles/tfm_s.dir/__/secure_peripheral_partition/auto_generated/load_info_tfm_secure_peripheral_partition.o:(.part_load+0xa4): undefined reference to `tfm_gpiote0_irq_init'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[61/231] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
FAILED: modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build tfm/secure_fw/s_veneers.o tfm/tf-m-tests/app/libtfm_api_ns.a tfm/generated/interface/include/psa_manifest/sid.h tfm/platform/libplatform_ns.a tfm/bin/tfm_s.elf tfm/bin/tfm_s.bin tfm/bin/tfm_s.hex tfm/bin/tfm_ns.bin tfm/bin/tfm_ns.hex tfm/bin/tfm_s_signed.bin tfm/bin/tfm_ns_signed.bin tfm/bin/tfm_s_ns_signed.bin tfm/install/interface/src/tfm_platform_ipc_api.c tfm/install/interface/src/tfm_ps_ipc_api.c tfm/install/interface/src/tfm_its_ipc_api.c tfm/install/interface/src/tfm_crypto_ipc_api.c tfm/install/interface/src/tfm_initial_attestation_ipc_api.c tfm/install/interface/src/tfm_firmware_update_ipc_api.c tfm/install/interface/src/tfm_psa_ns_api.c tfm/install/interface/src/tfm_platform_func_api.c tfm/install/interface/src/tfm_ps_func_api.c tfm/install/interface/src/tfm_its_func_api.c tfm/install/interface/src/tfm_crypto_func_api.c tfm/install/interface/src/tfm_initial_attestation_func_api.c tfm/install/interface/src/tfm_firmware_update_func_api.c tfm/install/interface/src/tfm_ioctl_core_ns_api.c
cmd.exe /C "cd /D C:\ncs\v2.2.0\nrf\samples\tfm\tfm_secure_peripheral\build\tfm && C:\ncs\toolchains\v2.2.0\opt\bin\cmake.exe --build . -j 1"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.2.0\opt\bin\cmake.EXE' --build 'c:\ncs\v2.2.0\nrf\samples\tfm\tfm_secure_peripheral\build'

 *  The terminal process terminated with exit code: 1.
 *  Terminal will be reused by tasks, press any key to close it.

Parents Reply Children
No Data
Related