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

Error in building project using segger for nrf9160

HI

I had setup the toolchain as described but on building the blinky project and other projects i got the following error. 

Creating solution blinky.emProject
cmake -GNinja -DBOARD=nrf9160dk_nrf9160 -DBOARD_DIR=C:\nordic_semi\ncs\zephyr\boards\arm\nrf9160dk_nrf9160 -BC:\nordic_semi\ncs\zephyr\samples\basic\blinky\build_nrf9160dk_nrf9160 -SC:\nordic_semi\ncs\zephyr\samples\basic\blinky -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:\nordic_semi\v1.4.0\toolchain\opt -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\nordic_semi\arm_segger_embedded_studio_v520b_win_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: C:/nordic_semi/ncs/zephyr/samples/basic/blinky
-- Zephyr version: 2.4.0 (C:/nordic_semi/ncs/zephyr)
-- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.0") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160
-- Cache files will be written to: C:/nordic_semi/ncs/zephyr/.cache
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/nordic_semi/v1.4.0/toolchain/opt)
-- Found BOARD.dts: C:/nordic_semi/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Generated zephyr.dts: C:/nordic_semi/ncs/zephyr/samples/basic/blinky/build_nrf9160dk_nrf9160/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/nordic_semi/ncs/zephyr/samples/basic/blinky/build_nrf9160dk_nrf9160/zephyr/include/generated/devicetree_unfixed.h
Parsing C:/nordic_semi/ncs/zephyr/Kconfig
Loaded configuration 'C:/nordic_semi/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration 'C:/nordic_semi/ncs/zephyr/samples/basic/blinky/prj.conf'
Configuration saved to 'C:/nordic_semi/ncs/zephyr/samples/basic/blinky/build_nrf9160dk_nrf9160/zephyr/.config'
Kconfig header saved to 'C:/nordic_semi/ncs/zephyr/samples/basic/blinky/build_nrf9160dk_nrf9160/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/nordic_semi/v1.4.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
-- Configuring incomplete, errors occurred!
See also "C:/nordic_semi/ncs/zephyr/samples/basic/blinky/build_nrf9160dk_nrf9160/CMakeFiles/CMakeOutput.log".
See also "C:/nordic_semi/ncs/zephyr/samples/basic/blinky/build_nrf9160dk_nrf9160/CMakeFiles/CMakeError.log".
Including boilerplate (Zephyr base): C:/nordic_semi/ncs/zephyr/cmake/app/boilerplate.cmake
CMake Error at ../../../cmake/extensions.cmake:1557 (message):
Assertion failed: The toolchain is unable to build a dummy C file. See
CMakeError.log.
Call Stack (most recent call first):
../../../CMakeLists.txt:42 (assert)



error: cmake failed
create_nordic_project.py failed (1)

Kindly help me out to solve the issue as soon as possible.

Parents Reply
  • Setting up the Toochain and using the Toolchain Manager is not the same thing. If you use the Toolchain Manager, you don't need to set the toolchain.

    To use the Toolchain Manager, do the following:

    • Install NCS v1.4.0

    • Then the SDK will get stored here:

    • The Toolchain will get stored here (python, west, git, cmake, segger, GNU compiler etc..):

    Y0g1 said:
    one more thing i wanna ask how to enable the gpio output as 3.3or 3v instead of 1.7 bold can't able to find proper resource to this.

    Could you open a new ticket about this?

     

    Best regards,

    Simon

Children
No Data
Related