Getting Errors by building an application

Hey everyone,

I am tyring to build a configuration for this application called " adxl362-data-collection" from this source --> https://github.com/benlhy/thingy91-fall-detection.git

but get this Error while building:

"

[3/95] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.3.0-rc1/modules/crypto/mbedtls/library/memory_buffer_alloc.o
FAILED: secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.3.0-rc1/modules/crypto/mbedtls/library/memory_buffer_alloc.o
C:\ncs\toolchains\v2.3.0-rc1\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DBL1_HEADER_SIZE=0x000 -DBL1_TRAILER_SIZE=0x000 -DBL2_HEADER_SIZE=0x000 -DBL2_TRAILER_SIZE=0x000 -DCONFIG_HW_UNIQUE_KEY -DCONFIG_HW_UNIQUE_KEY_RANDOM -DCONFIG_TFM_DOORBELL_API=1 -DCONFIG_TFM_FP=2 -DCONFIG_TFM_LAZY_STACKING -DCONFIG_TFM_PARTITION_META -DDAUTH_CHIP_DEFAULT -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DMCUBOOT_IMAGE_NUMBER=1 -DNRF9160_XXAA -DNRF_ALLOW_NON_SECURE_RESET -DNRF_HW_INIT_NRF_PERIPHERALS -DNRF_HW_INIT_RESET_ON_BOOT -DNRF_NS_SECONDARY -DNRF_NS_STORAGE -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPLATFORM_DEFAULT_BL1 -DPSA_CRYPTO_SECURE -DTFM_FIH_PROFILE_OFF -DTFM_INTERNAL_TRUSTED_STORAGE_SERVICE_SID=0x00000070 -DTFM_LVL=1 -DTFM_PARTITION_CRYPTO -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_SILENCE -DTFM_PARTITION_PLATFORM -DTFM_PSA_API -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_SILENCE -D__NRF_TFM__ -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto -Isecure_fw/partitions/crypto/mbedcrypto/nrf_security_src/include/generated -IC:/ncs/v2.3.0-rc1/nrfxlib/nrf_security/tfm/../include -IC:/ncs/v2.3.0-rc1/nrfxlib/nrf_security/tfm/../include/mbedtls -IC:/ncs/v2.3.0-rc1/nrfxlib/nrf_security/tfm/../include/psa -IC:/ncs/v2.3.0-rc1/modules/crypto/mbedtls/include -IC:/ncs/v2.3.0-rc1/modules/crypto/mbedtls/include/mbedtls -IC:/ncs/v2.3.0-rc1/modules/crypto/mbedtls/include/psa -IC:/ncs/v2.3.0-rc1/modules/crypto/mbedtls/library -IC:/ncs/v2.3.0-rc1/nrfxlib/nrf_security/tfm/../../crypto/nrf_oberon/include -IC:/ncs/v2.3.0-rc1/nrfxlib/nrf_security/tfm/../../crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.3.0-rc1/nrfxlib/nrf_security/tfm/../../crypto/nrf_oberon/include/psa -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/interface/include -Igenerated/interface/include -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/. -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/native_drivers -IC:/ncs/v2.3.0-rc1/modules/hal/nordic/nrfx -IC:/ncs/v2.3.0-rc1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.3.0-rc1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/common -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/.. -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/services/include -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf9160/. -IC:/ncs/v2.3.0-rc1/nrf/modules/tfm/tfm/boards/partition -I../zephyr/include/generated -IC:/ncs/v2.3.0-rc1/nrf/modules/tfm/tfm/boards/board -I../zephyr/misc/generated/syscalls_links/include -IC:/ncs/v2.3.0-rc1/zephyr/include/zephyr -IC:/ncs/v2.3.0-rc1/zephyr/include -IC:/ncs/v2.3.0-rc1/nrf/modules/tfm/tfm/boards/services/include -IC:/ncs/v2.3.0-rc1/nrf/include -IC:/ncs/v2.3.0-rc1/nrf/modules/tfm/tfm/boards/include -IC:/ncs/v2.3.0-rc1/nrf/include/tfm -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/ext/accelerator/interface -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/./ext -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/./ext/cmsis -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/./ext/common -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/./ext/driver -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/platform/./include -IC:/ncs/v2.3.0-rc1/modules/tee/tf-m/trusted-firmware-m/lib/fih/inc -isystem C:/ncs/v2.3.0-rc1/nrfxlib/crypto/nrf_cc310_platform/include -isystem C:/ncs/v2.3.0-rc1/nrfxlib/crypto/nrf_oberon/include/psa -isystem C:/ncs/v2.3.0-rc1/nrfxlib/crypto/nrf_oberon/include -isystem C:/ncs/v2.3.0-rc1/nrfxlib/crypto/nrf_oberon/include/mbedtls -mcpu=cortex-m33+nodsp -Os -DNDEBUG --specs=nano.specs -Wall -Wno-format -Wno-return-type -Wno-unused-but-set-variable -c -fdata-sections -ffunction-sections -fno-builtin -fshort-enums -funsigned-char -mthumb -nostdlib -std=c99 -gdwarf-4 -g -imacros C:/Users/USER/Downloads/thingy91-fall-detection/firmware/adxl362-data-collection/build/zephyr/include/generated/autoconf.h -Wno-unused-function -Wno-unused-variable -Wno-unused-const-variable -Wno-unused-parameter -mfloat-abi=hard -mfpu=fpv5-sp-d16 -mcmse -Wno-unused-value -MD -MT secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.3.0-rc1/modules/crypto/mbedtls/library/memory_buffer_alloc.o -MF secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\CMakeFiles\crypto_service_mbedcrypto.dir\C_\ncs\v2.3.0-rc1\modules\crypto\mbedtls\library\memory_buffer_alloc.o.d -o secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_service_mbedcrypto.dir/C_/ncs/v2.3.0-rc1/modules/crypto/mbedtls/library/memory_buffer_alloc.o -c C:/ncs/v2.3.0-rc1/modules/crypto/mbedtls/library/memory_buffer_alloc.c
C:\ncs\v2.3.0-rc1\modules\crypto\mbedtls\library\memory_buffer_alloc.c:608:1: fatal error: opening dependency file secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\CMakeFiles\crypto_service_mbedcrypto.dir\C_\ncs\v2.3.0-rc1\modules\crypto\mbedtls\library\memory_buffer_alloc.o.d: No such file or directory
608 | }
| ^
compilation terminated.
ninja: build stopped: subcommand failed.
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:\Users\USER\Downloads\thingy91-fall-detection\firmware\adxl362-data-collection\build\tfm && C:\ncs\toolchains\v2.3.0-rc1\opt\bin\cmake.exe --build . -j 1"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0-rc1\opt\bin\cmake.EXE' --build 'c:\Users\USER\Downloads\thingy91-fall-detection\firmware\adxl362-data-collection\build'"

would you please please try to build a configuration to run it in order to get as result this file  --> (project-home)/build/zephyr/app_signed.hex

by the way, i am using the Thingy91 to build something.

I would be really happy for some helpful infos

best regards 

Obeyda

  • Hi Obeyda,

    I see that the project you linked was last updated 10 months ago. That would be Apr 2022, before the release of nRF Connect SDK v2.0.0.

    On the other hand, there are a number of major changes starting from v2.0.0 until v2.3.0-rc1, which you are building with.

    I recommend you check with the project owner which version of NCS he used with his project, perhaps via a GitHub issue. The author probably wants to put the NCS version number in the README file too.

    Best regards,

    Hieu

Related