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

Build nrf project using Cmd

Hi ,

I am working on nrf based project . I m trying to build my project using Cmd  . I followed the steps given in link -

https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/ncs-tutorial---temporary#h155sjwm56iy71nftthh5gikrw9b2thl

But when i trying to build project using cmd instead of bash with following command - C:\project_folder_path\v1.2.0\toolchain\opt\bin\Scripts\west.exe build -b nrf910

i encountered the following error - ModuleNotFoundError: No module named 'west'

i could not able to build my project . Will you please suggest the steps for building project in cmd . 

Best Regards,

Shruti Mishra

Parents
  • Hi.

    Based on the path you used, I assume you installed NCS using the Toolchain Manager?

    Did you open CMD from the Toolchain Manager?

    If you did, it should work without any problems, and you should not need to provide the full path to the executible, 'west build -b <board name>' should work.

    Finally, the board name you wrote is wrong, for the nRF91DK, you should use "nrf9160_pca10090ns", though I assume this is just a typo in your ticket, and not related to the issue.

    Best regards,

    Didrik

  • Hi Didrik , 

    I didn't open the cmd not from toolchain manager , i opened cmd.exe there i was trying to build my project . i tried to open cmd through toolchain  -

    1 .open my test project

    2. then i have given command  -west build -b "nrf9160_pca10090ns"

    but still following error came - 

    Please let me know which configuration i am missing 

Reply Children
Related