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

create_nordic_project.py failed (1)

Hello,

I want to create tfm_ipc project for NRF52840 DK board.

I configured options like below.

But I got an error message, "create_nordic_project.py failed (1)".

I don't have any idea what is the problem.

How could I fix error? Please let me know.

Parents
  • Hellom Jiyeon!

    I need some more details from you before I can determine the issue here. Please double click the error message in the output window of SES (see the image below) and share the details there with me. 

     

    Best regards,
    Carl Richard

  • Hello,

    This is error message.

    Creating solution tfm_ipc.emProject
    cmake -GNinja -DBOARD=nrf52840dk_nrf52840 -DBOARD_DIR=/home/parkji2/SWS/ncs/zephyr/boards/arm/nrf52840dk_nrf52840 -B/home/parkji2/SWS/ncs/zephyr/samples/tfm_integration/tfm_ipc/build_nrf52840dk_nrf52840 -S/home/parkji2/SWS/ncs/zephyr/samples/tfm_integration/tfm_ipc -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/home/parkji2/gnuarmemb -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/home/parkji2/arm_segger_embedded_studio_v550d_linux_x64_nordic/html/configure_nordic_project_menuconfig.py
    -- Application: /home/parkji2/SWS/ncs/zephyr/samples/tfm_integration/tfm_ipc
    -- Zephyr version: 2.6.0-rc1 (/home/parkji2/SWS/ncs/zephyr), build: v2.6.0-rc1-ncs1-3-g0944459b5b62
    -- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Cache files will be written to: /home/parkji2/.cache/zephyr
    -- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (/home/parkji2/gnuarmemb)
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base (cached)): /home/parkji2/SWS/ncs/zephyr/cmake/app/boilerplate.cmake
    CMake Deprecation Warning at /home/parkji2/SWS/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
    The OLD behavior for policy CMP0079 will be removed from a future version
    of CMake.

    The cmake-policies(7) manual explains that the OLD behaviors of all
    policies are deprecated and that a policy should be set to OLD only under
    specific short-term circumstances. Projects should be ported to the NEW
    behavior and not rely on setting a policy to OLD.
    Call Stack (most recent call first):
    /home/parkji2/SWS/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    /home/parkji2/SWS/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
    CMakeLists.txt:5 (find_package)


    CMake Error at /home/parkji2/SWS/ncs/zephyr/cmake/compiler/gcc/generic.cmake:8 (message):
    Zephyr was unable to find the toolchain. Is the environment misconfigured?

    User-configuration:

    ZEPHYR_TOOLCHAIN_VARIANT: gnuarmemb

    Internal variables:

    CROSS_COMPILE: /home/parkji2/gnuarmemb/bin/arm-none-eabi-

    TOOLCHAIN_HOME: /home/parkji2/gnuarmemb

    Call Stack (most recent call first):
    /home/parkji2/SWS/ncs/zephyr/cmake/generic_toolchain.cmake:42 (include)
    /home/parkji2/SWS/ncs/zephyr/cmake/app/boilerplate.cmake:553 (include)
    /home/parkji2/SWS/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    /home/parkji2/SWS/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
    CMakeLists.txt:5 (find_package)



    error: cmake failed
    create_nordic_project.py failed (1)

    Thanks for your support:)

  • Hi again!

    There seems to be an issue with your SDK and Toolchain setup as the build tool can't locate the toolchain. What is the value of the GNUARMEMB_TOOLCHAIN_PATH environment variable?

    Best regards,
    Carl Richard

  • Hi, 

    I set ZEPHYR_TOOLCHAIN_VARIANT and GNUARMEMB_TOOLCHAIN_PATH at ~/.bashrc.

    And it works now.

    Thank you:)

  • Good to hear! Glad I could help.

    Best regards,
    Carl Richard

Reply Children
No Data
Related