create_nordic_project.py failed(1)

Hello,

I am currently using nRF Connect SDK v1.7.1 with a nrf9160DK. I keep getting "create_nordic_project.py filed (1)" when I try to open a new project with a overlay file.  Same projects can be opened if I delete the overlay.  I tried pretty much all the solutions/suggestions from the devzone, but so far no luck.  This situation also happened when I was using v1.7.0.  I also tried reinstalling the SDK, but didn't work.  Did I miss anything?  Is there a procedure I have to follow in order to load in a overlay file?  Thank you.

  • I open hello_world without the overlay.  No problem there.  Then I add a overlay and Run CMake.  I have the following error.  This is a freshly installed SDK v1.7.1.  I believe this is the same error as I open hello_world with a overlay file.  What have I done wrong?

    Creating solution hello_world.emProject
    -- Application: C:/Users/flau/ncs/v1.7.1/zephyr/samples/hello_world
    -- Zephyr version: 2.6.99 (C:/Users/flau/ncs/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: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Cache files will be written to: C:/Users/flau/ncs/v1.7.1/zephyr/.cache
    -- Found dtc: C:/Users/flau/ncs/v1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:/Users/flau/ncs/v1.7.1/toolchain/opt)
    -- Found BOARD.dts: C:/Users/flau/ncs/v1.7.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: C:/Users/flau/ncs/v1.7.1/zephyr/samples/hello_world/nrf9160dk_nrf9160_ns.overlay
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/flau/ncs/v1.7.1/zephyr/samples/hello_world/build_nrf9160dk_nrf9160_ns/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/flau/ncs/v1.7.1/zephyr/samples/hello_world/build_nrf9160dk_nrf9160_ns/CMakeFiles/CMakeError.log".
    Including boilerplate (Zephyr base (cached)): C:/Users/flau/ncs/v1.7.1/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.7.1 for building. (C:/Users/flau/ncs/v1.7.1/toolchain/cmake)
    Error: nrf9160dk_nrf9160_ns.dts.pre.tmp:656.2-657.1 syntax error
    FATAL ERROR: Unable to parse input tree
    CMake Error at C:/Users/flau/ncs/v1.7.1/zephyr/cmake/dts.cmake:219 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Users/flau/ncs/v1.7.1/zephyr/cmake/app/boilerplate.cmake:553 (include)
    C:/Users/flau/ncs/v1.7.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/Users/flau/ncs/v1.7.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
    CMakeLists.txt:5 (find_package)

    error: cmake failed
    create_nordic_project.py failed (1)

  • Hi,

    Where did you place your overlay files inside the hello_world sample? Also, is it possible to share your overlay file?

    Regards,

    Priyanka

  • Hi Priyanka,

    I placed the nrf9160dk_nrf9160_ns.overlay right at where the prj.conf and CMakeLists.txt are, i.e. inside the hello_world folder.  And I always get the "create_nordic_project.py failed (1)" error when I open the project.    Below is my overlay file.

    &pwm0 {
    status = "okay";
    ch0-pin = <28>;
    };

    &spi3 {
    status = "okay";
    sck-pin = <3>;
    mosi-pin = <4>;
    miso-pin = <5>;
    };

    &uart0 {
    status = "okay";
    tx-pin = <6>;
    rx-pin = <7>;
    rts-pin = <13>;
    cts-pin = <2>;
    };

    &i2c2 {
    status = "disabled";
    }

    Then last night I realized that if I remove the &uart0 and &i2c2 in my overlay, then the project opens and the new pin assignments are put into the devicetree_unfixed.h.  Looks like it has something to do with the uart0 maybe.  Not sure!

  • Hi Floyd,

    Unfortunately, I was not able to replicate your error and when applying your overlay file, it works well for me. That does seem strange! But we can try some solutions.

    First, could you try shortening you path length of you SDK ?(not really sure this might be the issue but there have been customers who faced similar problems due to the path length).

    Try giving something like C:/ncs/v1.7.1/ instead of C:/Users/flau/ncs/v1.7.1/ and build within this path.

    Regards,

    Priyanka

  • Hi Priyanka,

    First of all, thank you very much for your effort. I really don't have a clue why but when I just have the pwm0, spi3 and uart0 in my overlay then SES seems to accept it and puts it into zephyr.dts and also changes the devicetree_unfixed.h.  Since I am not using rts and cts, I assigned 0xFFFFFFFF to those two pins.  I then deleted the entire build_nrf9160dk_nrf9160_ns folder and reloaded the project.  There no more "create_nordic_project.py failed (1)" error.  Finger-crossed that won't appear again.  I think we can close this ticket for now.

Related