This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error compiling Asset Tracker Application example

I've setup SDK 1.4 with Segger, however I can't get the Asset tracker Application to compile.  It seems to be building the SPM even though the project is setup to use the Non-secure memory.  Is there any configuration of zephry required with the new SDK 1.4?

Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-mkdir’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-mkdir’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-download’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-download’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-update’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-update’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-patch’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-patch’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-configure’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-configure’
Building ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build’
1> [1/201] Building C object modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx_noglue.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> FAILED: modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx_noglue.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -IC:/nRF_Connect_SDK/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -IC:/nRF_Connect_SDK/mbedtls/include -IC:/nRF_Connect_SDK/mbedtls/include/mbedtls -Imodules/nrfxlib/nrf_security/include -IC:/nRF_Connect_SDK/nrfxlib/nrf_security/include/mbedcrypto_glue/mbedtls/threading -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -MD -MT modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx_noglue.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -MF modules\nrfxlib\nrf_security\src\mbedtls\cc310\CMakeFiles\mbedcrypto_cc3xx_noglue.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d -o modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx_noglue.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -c C:/nRF_Connect_SDK/zephyr/misc/empty_file.c
1> C:/nRF_Connect_SDK/zephyr/misc/empty_file.c:1:0: fatal error: opening dependency file modules\nrfxlib\nrf_security\src\mbedtls\cc310\CMakeFiles\mbedcrypto_cc3xx_noglue.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d: No such file or directory
1>
1> compilation terminated.
1>
1> [2/201] Building C object modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> FAILED: modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config-noglue.h\" -IC:/nRF_Connect_SDK/nrfxlib/nrf_security/include/mbedcrypto_glue/mbedtls/threading -IC:/nRF_Connect_SDK/nrfxlib/crypto/nrf_cc310_platform/include -IC:/nRF_Connect_SDK/mbedtls/include -IC:/nRF_Connect_SDK/mbedtls/include/mbedtls -Imodules/nrfxlib/nrf_security/include -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -MD -MT modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -MF modules\nrfxlib\nrf_security\src\mbedtls\shared\CMakeFiles\mbedcrypto_shared.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d -o modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -c C:/nRF_Connect_SDK/zephyr/misc/empty_file.c
1> C:/nRF_Connect_SDK/zephyr/misc/empty_file.c:1:0: fatal error: opening dependency file modules\nrfxlib\nrf_security\src\mbedtls\shared\CMakeFiles\mbedcrypto_shared.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d: No such file or directory
1>
1> compilation terminated.
1>
1> [3/201] Building C object modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> FAILED: modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -MD -MT modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -MF modules\nrfxlib\nrf_security\src\mbedtls\cc310\CMakeFiles\mbedcrypto_cc3xx.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d -o modules/nrfxlib/nrf_security/src/mbedtls/cc310/CMakeFiles/mbedcrypto_cc3xx.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -c C:/nRF_Connect_SDK/zephyr/misc/empty_file.c
1> C:/nRF_Connect_SDK/zephyr/misc/empty_file.c:1:0: fatal error: opening dependency file modules\nrfxlib\nrf_security\src\mbedtls\cc310\CMakeFiles\mbedcrypto_cc3xx.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d: No such file or directory
1>
1> compilation terminated.
1>
1> [4/201] Building C object modules/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedtls_external.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> FAILED: modules/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedtls_external.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj
1> C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -MD -MT modules/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedtls_external.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -MF modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\mbedtls_external.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d -o modules/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedtls_external.dir/C_/nRF_Connect_SDK/zephyr/misc/empty_file.c.obj -c C:/nRF_Connect_SDK/zephyr/misc/empty_file.c
1> C:/nRF_Connect_SDK/zephyr/misc/empty_file.c:1:0: fatal error: opening dependency file modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\mbedtls_external.dir\C_\nRF_Connect_SDK\zephyr\misc\empty_file.c.obj.d: No such file or directory
1>
1> compilation terminated.
1>
1> [5/201] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
1> [6/201] Building C object modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/mbedtls/library/sha512.c.obj
1> FAILED: modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/mbedtls/library/sha512.c.obj
1> C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DMBEDTLS_CONFIG_FILE=\"nrf-config-noglue.h\" -IC:/nRF_Connect_SDK/nrfxlib/nrf_security/include/mbedcrypto_glue/mbedtls/threading -IC:/nRF_Connect_SDK/nrfxlib/crypto/nrf_cc310_platform/include -IC:/nRF_Connect_SDK/mbedtls/include -IC:/nRF_Connect_SDK/mbedtls/include/mbedtls -Imodules/nrfxlib/nrf_security/include -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -MD -MT modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/mbedtls/library/sha512.c.obj -MF modules\nrfxlib\nrf_security\src\mbedtls\shared\CMakeFiles\mbedcrypto_shared.dir\C_\nRF_Connect_SDK\mbedtls\library\sha512.c.obj.d -o modules/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/nRF_Connect_SDK/mbedtls/library/sha512.c.obj -c C:/nRF_Connect_SDK/mbedtls/library/sha512.c
1> C:/nRF_Connect_SDK/mbedtls/library/sha512.c:514:1: fatal error: opening dependency file modules\nrfxlib\nrf_security\src\mbedtls\shared\CMakeFiles\mbedcrypto_shared.dir\C_\nRF_Connect_SDK\mbedtls\library\sha512.c.obj.d: No such file or directory
1>
1> }
1>
1> ^
1>
1> compilation terminated.
1>
1> ninja: build stopped: subcommand failed.
Build failed

  • If I try and build external to SES using west build -b thingy91_nrf9160 I get completely different errors:

    C:\Users\DC\Desktop\Firmware_Projects\Nordic_Cellular_IoT_Projects\asset_tracker> west build -b thingy91_nrf9160
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/nRF_Connect_SDK/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/Users/DC/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/asset_tracker
    -- Zephyr version: 2.4.0 (C:/nRF_Connect_SDK/zephyr)
    -- Found Python3: C:/Python37/python.exe (found suitable exact version "3.7.0") found components: Interpreter
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    -- Board: thingy91_nrf9160
    -- Cache files will be written to: C:\Users\DC\AppData\Local/.cache/zephyr
    CMake Warning at C:/nRF_Connect_SDK/zephyr/cmake/host-tools.cmake:31 (message):
    Could NOT find dtc: Found unsuitable version "1.4.4", but required is at
    least "1.4.6" (found C:/ProgramData/chocolatey/bin/dtc.exe). Optional
    devicetree error checking with dtc will not be performed.
    Call Stack (most recent call first):
    C:/nRF_Connect_SDK/zephyr/cmake/app/boilerplate.cmake:571 (include)
    C:/nRF_Connect_SDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/nRF_Connect_SDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:9 (find_package)


    -- Found toolchain: gnuarmemb (C:/gnu_arm_embedded/9-2019-q4-major)
    -- Found BOARD.dts: C:/nRF_Connect_SDK/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160.dts
    -- Generated zephyr.dts: C:/Users/DC/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/asset_tracker/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Users/DC/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/asset_tracker/build/zephyr/include/generated/devicetree_unfixed.h

    warning: BSD_LIBRARY (defined at C:/nRF_Connect_SDK/nrf\lib\bsdlib/Kconfig:8) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: TRUSTED_EXECUTION_NONSECURE (=n).
    See docs.zephyrproject.org/.../CONFIG_BSD_LIBRARY.html and/or look up
    BSD_LIBRARY in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.


    warning: NRF9160_GPS (defined at C:/nRF_Connect_SDK/nrf\drivers\gps\nrf9160_gps/Kconfig:8) was
    assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: BSD_LIBRARY
    (=n). See docs.zephyrproject.org/.../CONFIG_NRF9160_GPS.html and/or look
    up NRF9160_GPS in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.


    warning: Parsing C:/Users/DC/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/asset_tracker/Kconfig
    Loaded configuration 'C:/nRF_Connect_SDK/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_defconfig'
    Merged configuration 'C:/Users/DC/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/asset_tracker/prj.conf'
    The choice symbol AGPS_SRC_SUPL (defined at C:/nRF_Connect_SDK/nrf\lib\agps/Kconfig:29) was
    selected (set =y), but no symbol ended up as the choice selection. See
    docs.zephyrproject.org/.../CONFIG_AGPS_SRC_SUPL.html and/or look up
    AGPS_SRC_SUPL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.


    warning: The choice symbol NRF9160_GPS_LOG_LEVEL_DBG (defined at
    C:/nRF_Connect_SDK/zephyr/subsys/logging/Kconfig.template.log_config:20) was selected (set =y), but
    no symbol ended up as the choice selection. See
    docs.zephyrproject.org/.../CONFIG_NRF9160_GPS_LOG_LEVEL_DBG.html and/or
    look up NRF9160_GPS_LOG_LEVEL_DBG in the menuconfig/guiconfig interface. The Application Development
    Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
    might be helpful too.


    warning: AT_CMD (defined at C:/nRF_Connect_SDK/nrf\lib\at_cmd/Kconfig:9) has direct dependencies BSD_LIBRARY with value n, but is currently being y-selected by the following symbols:
    - LTE_LINK_CONTROL (defined at C:/nRF_Connect_SDK/nrf\lib\lte_link_control/Kconfig:7), with value y, direct dependencies y (value: y)
    - AT_HOST_LIBRARY (defined at C:/nRF_Connect_SDK/nrf\lib\at_host/Kconfig:9), with value y, direct dependencies y (value: y)

    error: Aborting due to Kconfig warnings

    CMake Error at C:/nRF_Connect_SDK/zephyr/cmake/kconfig.cmake:239 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/nRF_Connect_SDK/zephyr/cmake/app/boilerplate.cmake:591 (include)
    C:/nRF_Connect_SDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/nRF_Connect_SDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:9 (find_package)

    This is so confusing as everything was working until I updated SES and SDK

  • This issue was that the files generated during compile had a path length that was too long for windows.  Causing corrupted files to be generated and grind overall compilations to a halt.  Classic windows issue.  I shortened the name of the folders and everything works

Related