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
  • Update, I have used this west.yml content now:

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

    remotes:
    - name: nrfconnect
    projects:
    - name: sdk-nrf
    remote: nrfconnect
    revision: v3.0.2
    import: true
    This fetch everything which is not really good... but at least I can continue. Then I have errors when creating a build configuration with sysbuild, particularly:
    CMake Error at /home/joel/Projects/Mender/workspace-ncs/sdk-nrf/sysbuild/CMakeLists.txt:860 (include):
    include could not find requested file:

    ncs_sysbuild_extensions
    This is because ZEPHYR_NRF_MODULE_DIR is not defined in sdk-nrf/sysbuild/CMakeLists.txt.
    Why ??
    Any feedback is appreciated.
Reply
  • Update, I have used this west.yml content now:

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

    remotes:
    - name: nrfconnect
    projects:
    - name: sdk-nrf
    remote: nrfconnect
    revision: v3.0.2
    import: true
    This fetch everything which is not really good... but at least I can continue. Then I have errors when creating a build configuration with sysbuild, particularly:
    CMake Error at /home/joel/Projects/Mender/workspace-ncs/sdk-nrf/sysbuild/CMakeLists.txt:860 (include):
    include could not find requested file:

    ncs_sysbuild_extensions
    This is because ZEPHYR_NRF_MODULE_DIR is not defined in sdk-nrf/sysbuild/CMakeLists.txt.
    Why ??
    Any feedback is appreciated.
Children
No Data
Related