This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF Connect SDK v1.7.1 Release does not compile Sample:lpUART

Problem:

Tried to compile (west build  --board nr52dk_nr52832) the C:\nRF\v1.7.1\nrf\samples\peripheral\lpuart project but it failed to compile. I discovered this after updating my toolchain from v1.7.0 and having my project break...classic. Seems to be something wrong with MBDEDTLS since I can't get anything to compile with this new toolchain, not just this sample. 

Error output to cmd prompt:

C:\nRF\v1.7.1\nrf\samples\peripheral\lpuart>west build --board=nrf52dk_nrf52832
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): C:/nRF/v1.7.1/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart
-- Using NCS Toolchain 1.7.1 for building. (C:/nRF/v1.7.1/toolchain/cmake)
-- Zephyr version: 2.6.99 (C:/nRF/v1.7.1/zephyr), build: v2.6.99-ncs1-1
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: nrf52dk_nrf52832
-- Cache files will be written to: C:/nRF/v1.7.1/zephyr/.cache
-- Found dtc: C:/nRF/v1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/nRF/v1.7.1/toolchain/opt)
-- Found BOARD.dts: C:/nRF/v1.7.1/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
-- Found devicetree overlay: C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart/boards/nrf52dk_nrf52832.overlay
-- Generated zephyr.dts: C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart/build/zephyr/dts.cmake

warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at C:/nRF/v1.7.1/nrf\lib\nrf_modem_lib/Kconfig:105) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined)

warning: MBEDTLS_SHA1_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls.defconfig:9, C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:1) defined without a type

warning: MBEDTLS_SHA512_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:4) defined without a type

warning: MBEDTLS_TLS_LIBRARY (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:9) defined without a type

warning: MBEDTLS_X509_LIBRARY (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:12) defined without a type

warning: MBEDTLS_DHM_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:18) defined without a type

warning: MBEDTLS_ECP_C (defined at CParsing C:/nRF/v1.7.1/zephyr/Kconfig
Loaded configuration 'C:/nRF/v1.7.1/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig'
Merged configuration 'C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart/prj.conf'
Merged configuration 'C:/nRF/v1.7.1/nrf/samples/peripheral/lpuart/boards/nrf52dk_nrf52832.conf'
:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:21) defined without a type

warning: MBEDTLS_HMAC_DRBG_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:24) defined without a type

warning: MBEDTLS_CIPHER_MODE_CBC (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:27) defined without a type

warning: MBEDTLS_CIPHER_MODE_CTR (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:30) defined without a type

warning: MBEDTLS_CMAC_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:33) defined without a type

warning: MBEDTLS_CCM_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:36) defined without a type

warning: MBEDTLS_GCM_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:39) defined without a type

warning: MBEDTLS_CHACHA20_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:42) defined without a type

warning: MBEDTLS_POLY1305_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:45) defined without a type

warning: MBEDTLS_PSA_CRYPTO_STORAGE_C (defined at C:/nRF/v1.7.1/nrf/modules/trusted-firmware-m\Kconfig.mbedtls_minimal.defconfig:48) defined without a type

error: Aborting due to Kconfig warnings

CMake Error at C:/nRF/v1.7.1/zephyr/cmake/kconfig.cmake:268 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/nRF/v1.7.1/zephyr/cmake/app/boilerplate.cmake:554 (include)
  C:/nRF/v1.7.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/nRF/v1.7.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\nRF\v1.7.1\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=C:\nRF\v1.7.1\toolchain\opt\bin\python.exe' '-BC:\nRF\v1.7.1\nrf\samples\peripheral\lpuart\build' '-SC:\nRF\v1.7.1\nrf\samples\peripheral\lpuart' -GNinja

Parents
  • My bad all it was was I had to do a "git-bash" cmd to init ncs mgr. There was a very easily missed printout when I opened the command prompt. Not sure why this wasn't done as part of the installation i don't remember having to do this extra step when i installed it from the toolchain manager. It's easy enough to do so I don't mind it but i would like it to have a more obvious attention-grabbing printout. 

Reply
  • My bad all it was was I had to do a "git-bash" cmd to init ncs mgr. There was a very easily missed printout when I opened the command prompt. Not sure why this wasn't done as part of the installation i don't remember having to do this extra step when i installed it from the toolchain manager. It's easy enough to do so I don't mind it but i would like it to have a more obvious attention-grabbing printout. 

Children
No Data
Related