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

mbedtls missing

Dear, 

I started a new laptop Windows 10 Pro

installed nRF Connect, and followed the Started Assistant

installed the toolchain

downloaded the SES (v4.20a) 

-------------- i done it manytimes before 

then, I tried to run asset_tracker or at_client, gps.....

I got the same error:

Building ‘spm/zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/driver-validation.h’
Building ‘spm/zephyr/CMakeFiles/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/kobj-types-enum.h’
Building ‘spm/zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/CMakeFiles/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/misc/generated/syscalls.json’
Building ‘spm/zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/syscall_list.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/syscall_macros.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets’ from solution ‘build’ in configuration ‘Common’
1> Compiling ‘offsets.c’
Building ‘spm/zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/include/generated/offsets.h’
Building ‘spm/zephyr/CMakeFiles/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_app’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m__mpu’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_drivers__serial’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_kernel’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_lib__libc__minimal’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbedcrypto_vanilla’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbeddrbg’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘spm/zephyr/linker.cmd’
Building ‘spm/zephyr/CMakeFiles/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr_prebuilt’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/spm_app/libspm_app.a’ from solution ‘build’ in configuration ‘Common’
2> Compiling ‘main.c’
Building ‘spm/zephyr/libspm_zephyr.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_app.a’
2> Compiling ‘isr_tables.c’
3> Compiling ‘sw_isr_common.c’
4> Compiling ‘arm_core_cmse.c’
5> Compiling ‘arm_core_tz.c’
6> Compiling ‘crc32_sw.c’
1> Compiling ‘crc8_sw.c’
7> Compiling ‘crc16_sw.c’
8> Compiling ‘crc7_sw.c’
9> Compiling ‘fdtable.c’
10> Compiling ‘mempool.c’
11> Compiling ‘rb.c’
12> Compiling ‘thread_entry.c’
2> Compiling ‘work_q.c’
3> Compiling ‘printk.c’
6> Compiling ‘configs.c’
1> Compiling ‘soc.c’
7> Compiling ‘mpu_regions.c’
5> Compiling ‘nrfx_glue.c’
8> Compiling ‘system_nrf9160.c’
4> Compiling ‘power.c’
12> Compiling ‘reboot.c’
9> Compiling ‘policy_residency.c’
6> Compiling ‘uart_console.c’
2> Compiling ‘nrf_power_clock.c’
7> Compiling ‘sys_clock_init.c’
10> Compiling ‘nrf_rtc_timer.c’
8> Compiling ‘spm.c’
1> Compiling ‘secure_services.c’
Building ‘spm/zephyr/arch/arm/core/libspm_arch__arm__core.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_zephyr.a’
2> Assembling ‘exc_exit.S’
3> Assembling ‘swap_helper.S’
4> Assembling ‘cpu_idle.S’
5> Assembling ‘fault_s.S’
6> Assembling ‘isr_wrapper.S’
7> Compiling ‘irq_init.c’
8> Compiling ‘swap.c’
1> Compiling ‘irq_manage.c’
9> Compiling ‘fault.c’
10> Compiling ‘thread.c’
11> Compiling ‘fatal.c’
12> Compiling ‘sys_fatal_error_handler.c’
3> Compiling ‘thread_abort.c’
Building ‘spm/zephyr/arch/arm/core/cortex_m/libspm_arch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_arch__arm__core.a’
2> Assembling ‘vector_table.S’
3> Assembling ‘reset.S’
4> Assembling ‘nmi_on_reset.S’
5> Compiling ‘prep_c.c’
6> Compiling ‘scb.c’
7> Compiling ‘nmi.c’
8> Compiling ‘exc_manage.c’
Building ‘spm/zephyr/arch/arm/core/cortex_m/mpu/libspm_arch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_arch__arm__core__cortex_m.a’
2> Compiling ‘arm_core_mpu.c’
3> Compiling ‘arm_mpu.c’
Building ‘spm/zephyr/lib/libc/minimal/libspm_lib__libc__minimal.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_arch__arm__core__cortex_m__mpu.a’
2> Compiling ‘atoi.c’
3> Compiling ‘strtol.c’
4> Compiling ‘strtoul.c’
5> Compiling ‘malloc.c’
6> Compiling ‘bsearch.c’
7> Compiling ‘exit.c’
1> Compiling ‘strstr.c’
8> Compiling ‘strncasecmp.c’
9> Compiling ‘string.c’
10> Compiling ‘prf.c’
11> Compiling ‘stdout_console.c’
12> Compiling ‘sprintf.c’
2> Compiling ‘fprintf.c’
Building ‘spm/zephyr/drivers/serial/libspm_drivers__serial.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_lib__libc__minimal.a’
2> Compiling ‘uart_nrfx_uarte.c’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbeddrbg.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_drivers__serial.a’
2> Compiling ‘ctr_drbg.c’
3> Compiling ‘entropy.c’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbedcrypto_vanilla.a’ from solution ‘build’ in configuration ‘Common’
1> Archiving ‘libspm_mbeddrbg.a’
2> Compiling ‘aes.c’
3> Compiling ‘aesni.c’
4> Compiling ‘arc4.c’
5> Compiling ‘aria.c’
6> Compiling ‘asn1parse.c’
7> Compiling ‘asn1write.c’
1> Compiling ‘bignum.c’
8> Compiling ‘base64.c’
9> Compiling ‘blowfish.c’
10> Compiling ‘camellia.c’
11> Compiling ‘ccm.c’
12> Compiling ‘chacha20.c’
2> Compiling ‘chachapoly.c’
3> Compiling ‘cipher.c’
5> Compiling ‘cmac.c’
9> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/blowfish.c:32:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\blowfish.c.obj.d: No such file or directory
9> compilation terminated.
10> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/camellia.c:32:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\camellia.c.obj.d: No such file or directory
10> compilation terminated.
12> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/chacha20.c:30:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\chacha20.c.obj.d: No such file or directory
12> compilation terminated.
6> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/asn1parse.c:387:1: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\asn1parse.c.obj.d: No such file or directory
6> compilation terminated.
2> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/chachapoly.c:27:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\chachapoly.c.obj.d: No such file or directory
2> compilation terminated.
7> C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/mbedtls/library/asn1write.c:389:1: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_master_07oct2019/nrf/samples/nrf9160/at_client/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_master_07oct2019\mbedtls\library\asn1write.c.obj.d: No such file or directory
7> compilation terminated.
Build failed

I tried with SES v4.18 and the ncs_joakim#943 (it worked well on my old computer before) and I got the same problem. 

What did I miss on my new computer? Could you plz help me. 

Thanks, 

Best Regards, 

Hoang Nguyen

  • Hi,

     

    What did I miss on my new computer? Could you plz help me. 

    If you see issues with dependencies, like mbedtls missing, it is usually due to "west update" not being executed after checking out a different revision.

    Could you ensure that "west update" has been issued and completed successfully?

     

    Kind regards,

    Håkon

  • HI

    I tried to follow the Guide to set up the nRF Connect SDK -official, v1.0.2 again

    and, and checkout master branch, west update. Then, I could run asset_tracker, gsp, ... 

     I tried to run my source code - which could run on my old computer  (ncs_joakim#943), it DOES NOT work, 

    the problem: 

    1> Memory region Used Size Region Size %age Used
    1> FLASH: 203884 B 380416 B 53.60%
    1> SRAM: 134016 B 128 KB 102.25%
    1> c:/gnuarmemb/7 2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_prebuilt.elf section `datas' will not fit in region `SRAM'
    1> c:/gnuarmemb/7 2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: section .intList VMA [20040000,200400a7] overlaps section datas VMA [2003f628,20040861]
    1> c:/gnuarmemb/7 2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM' overflowed by 2944 bytes
    1> collect2.exe: error: ld returned 1 exit status
    1> IDT_LIST: 168 B 2 KB 8.20%
    Build failed

    Can I extend SRAM to fix this error? do you have any suggestions 
    MVH, 
    Hoang Nguyen
  • sorry. I pressed the wrong option (reply/verify Answer)

  • and, with ncs_joakim#943, i just copied from the SDcard to my new comp

  • just tried to west update 

     

    cd to ncs/nrf
    git fetch origin pull/943/head:joakim
    git checkout joakim
    west update

    PS C:\Users\HoangNguyen\Projects\ziot_01\ncs_v1.0.0_joakim\nrf> git branch
    * joakim
      master
    PS C:\Users\HoangNguyen\Projects\ziot_01\ncs_v1.0.0_joakim\nrf> west update                                                                      === updating fw-nrfconnect-zephyr (zephyr):
    --- fw-nrfconnect-zephyr: checked out a8933a2ead01db56a3d3828d81887535be8b5bda as detached HEAD
    === updating nffs (modules\fs\nffs):
    --- nffs: checked out bc62a2fa9d98ddb5d633c932ea199bc68e10f194 as detached HEAD
    === updating segger (modules\debug\segger):
    --- segger: checked out 6fcf61606d6012d2c44129edc033f59331e268bc as detached HEAD
    === updating fw-nrfconnect-mbedtls (modules\crypto\mbedtls):
    --- fw-nrfconnect-mbedtls: checked out 900c7eea92e45adba1067e044ec705d4541c84a5 as detached HEAD
    === updating fw-nrfconnect-mcuboot (mcuboot):
    --- fw-nrfconnect-mcuboot: checked out 8b0e50cd5898e66e8bf92b5378c5b29fb0838471 as detached HEAD
    === updating fw-nrfconnect-mcumgr (modules\lib\mcumgr):
    --- fw-nrfconnect-mcumgr: checked out f663988d35da559a37f263d369842dbce309d1fa as detached HEAD
    === updating fw-nrfconnect-tinycbor (modules\lib\tinycbor):
    --- fw-nrfconnect-tinycbor: checked out 543ecb7c8662580ef803d59ceda7bd3b8a84a11b as detached HEAD
    === updating nrfxlib (nrfxlib):
    --- nrfxlib: checked out f8b3cf45090227fe45a0d2c7e5943e61c3150012 as detached HEAD
    === updating cmock (test\cmock):
    --- cmock: checked out c243b9a7a7b3c471023193992b46cf1bd1910450 as detached HEAD
    === updating unity (test\cmock\vendor\unity):
    --- unity: checked out 031f3bbe45f8adf504ca3d13e6f093869920b091 as detached HEAD
    === updating mbedtls (mbedtls):
    --- mbedtls: checked out 53546ea099f6f53d0be653a64accd250e170337f as detached HEAD
    PS C:\Users\HoangNguyen\Projects\ziot_01\ncs_v1.0.0_joakim\nrf>

    but couldnt fix it

    3> C:/Users/HoangNguyen/Projects/ziot_01/ncs_v1.0.0_joakim/mbedtls/library/entropy_poll.c:39:0: fatal error: opening dependency file C:/Users/HoangNguyen/Projects/ziot_01/ncs_v1.0.0_joakim/nrf/samples/nrf9160/at_client/build_nrf9160_pca20035ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\HoangNguyen\Projects\ziot_01\ncs_v1.0.0_joakim\mbedtls\library\entropy_poll.c.obj.d: No such file or directory
    3> compilation terminated.
    9> Compiling ‘hkdf.c’
    Build failed

Related