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

I have installed the toolchain according to nRF Connect guideline, on my MAC OSX.

My option settings are listed in the attached image.

I downloaded release 1.4.2.

When I open a project to evaluate my nRF5340 PDK, I get this error:

Creating solution hello_world.emProject
/usr/local/bin/cmake -GNinja -DBOARD=nrf5340pdk_nrf5340_cpuapp -DBOARD_DIR=/Users/chatojakobsendatek/ncs/zephyr/boards/arm/nrf5340dk_nrf5340 -B/Users/chatojakobsendatek/ncs/zephyr/samples/hello_world/build_nrf5340pdk_nrf5340_cpuapp -S/Users/chatojakobsendatek/ncs/zephyr/samples/hello_world -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc -D WEST=~/Library/Frameworks/Python.framework/Versions/3.8/bin/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Users/chatojakobsendatek/Documents/nordicsemi/arm_segger_embedded_studio_v534a_macos_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: /Users/chatojakobsendatek/ncs/zephyr/samples/hello_world
-- Zephyr version: 2.4.0 (/Users/chatojakobsendatek/ncs/zephyr)
-- Found Python3: /usr/bin/python3 (found suitable exact version "3.7.3") found components: Interpreter
-- Board: nrf5340pdk_nrf5340_cpuapp
-- Cache files will be written to: /Users/chatojakobsendatek/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/gnuarmemb)
-- Found BOARD.dts: /Users/chatojakobsendatek/ncs/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340pdk_nrf5340_cpuapp.dts
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): /Users/chatojakobsendatek/ncs/zephyr/cmake/app/boilerplate.cmake
nrf5340pdk_nrf5340_cpuapp.dts.pre.tmp:55.42-67.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000)
nrf5340pdk_nrf5340_cpuapp.dts.pre.tmp:329.19-335.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000)
nrf5340pdk_nrf5340_cpuapp.dts.pre.tmp:593.31-594.5: Warning (unique_unit_address_if_enabled): /reserved-memory/image@20000000: duplicate unit-address (also used in node /reserved-memory/image_s@20000000)
also defined at nrf5340pdk_nrf5340_cpuapp.dts.pre.tmp:613.14-615.3
Traceback (most recent call last):
File "/Users/chatojakobsendatek/ncs/zephyr/scripts/dts/gen_defines.py", line 29, in <module>
import edtlib
File "/Users/chatojakobsendatek/ncs/zephyr/scripts/dts/edtlib.py", line 78, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
CMake Error at /Users/chatojakobsendatek/ncs/zephyr/cmake/dts.cmake:246 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
/Users/chatojakobsendatek/ncs/zephyr/cmake/app/boilerplate.cmake:590 (include)
/Users/chatojakobsendatek/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/chatojakobsendatek/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:5 (find_package)



error: cmake failed
create_nordic_project.py failed (1)

--

I do not understand where it fails...

Parents Reply Children
No Data
Related