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.

Parents Reply Children
  • 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.

  • Hi Floyd,

    Glad that you got it working! Do get in touch in case anything more occurs Slight smile

    Regards,

    Priyanka

Related