Using external modules with nRF Connect SDK vscode environment

Hello,*

I'm new to nRF Connect SDK environment, but I'm used to work with Zephyr.

I'm actually confused using west.yml file. I created a new application based on existing Zephyr application. I have west.yml, CMakeLists.txt, Kconfig, src,...

What the west.yml file should look like to reference the ncs installation on my computer?

I have tried to do the following, it has downloaded a new copy of the SDK in the parent directory of the app, but while trying to add a new build configuration I get the "no boards found":

manifest:
self:
west-commands: scripts/west-commands.yml

remotes:
- name: sdk
projects:
- name: sdk-nrf
remote: sdk
revision: v3.0.2
import:
# By using name-allowlist we can clone only the modules that are
# strictly needed by the application.
name-allowlist:
- cmsis_6
- hal_nordic
- hal_stm32
- hostap # required for nrf7002dk board
- littlefs
- mbedtls
- mcuboot
- nrf_hw_models # required for nrf7002dk board
- nrf_wifi # required for nrf7002dk board
- picolibc
In general, can you point the exact workflow to create a new app with west? I need external modules so I need west.yml I guess.
Thanks
Joel
Parents
  • Important note: I'm using sysbuild because I need a bootloader (mcuboot)

  • Hi Joel,

    Could you try to move your app inside the sdk-nrf/applications/ location?

    Then From the root of sdk-nrf, run:

    west init -1
    west update
    west zephyr-export

    after that you can:

    cd applications/your_app
    west build -b <your_board> --sysbuild

    please try this and let me know how it goes.

    -Priyanka

  • Hello Priyanka,

    Thanks for the reply.

    I have done the following, instead of copy my application, which may be broken:

    - I have tried to compile the "matter_bridge" application which is provided in the SDK, using board "nrf7002dk/nrf5340/cpuapp" => same error, "include could not find requested file: ncs_sysbuild_extensions"

    - I have tried to create a new, empty, application from the vscode environment installed with nrf connect sdk => same error.

    Also, I don't understand the workflow. Is it mandatory to move the application in the sdk-nrf/applications directory?? Looks ugly. Moreover, doing this doesn't help on the initial topic: importing external custom module. I need west.yml to do it.

    We can restart from beginnings. Please can you point me a documentation/video/any media indicating what is the correct workflow to work with nrf connect sdk ? I don't find it.

    Thanks

    Joel

Reply
  • Hello Priyanka,

    Thanks for the reply.

    I have done the following, instead of copy my application, which may be broken:

    - I have tried to compile the "matter_bridge" application which is provided in the SDK, using board "nrf7002dk/nrf5340/cpuapp" => same error, "include could not find requested file: ncs_sysbuild_extensions"

    - I have tried to create a new, empty, application from the vscode environment installed with nrf connect sdk => same error.

    Also, I don't understand the workflow. Is it mandatory to move the application in the sdk-nrf/applications directory?? Looks ugly. Moreover, doing this doesn't help on the initial topic: importing external custom module. I need west.yml to do it.

    We can restart from beginnings. Please can you point me a documentation/video/any media indicating what is the correct workflow to work with nrf connect sdk ? I don't find it.

    Thanks

    Joel

Children
No Data
Related