Unable to create a build configuration in VS Code using nRF Connect Extension

Hi, 

I followed the instructions listed in Installing the nRF Connect SDK (nordicsemi.com). Then I followed the steps in How to create and build an application (nordicsemi.com) but I keep getting the error shown in the attachment when trying to build the application. I am stuck at the 'Add Build Configuration' step with the error attached. ("Could NOT find Python3"). Could someone please help me figure out what I am missing?

When I hit 'Build Configuration' the nRFConnect Terminal just sits there spinning with no output or error. Then, I tried to use 'west build' command and that's when I see the error attached. 

Using toolchain v2.7.0

SDK v2.7.0

Parents Reply Children
  • Hello Andreas,

    I followed the steps on the link you provided(which is what I have done quite a few times before I decided to ask for help on the forum). I installed the 2.7.0 toolchain and the 2.7.0 SDK. When I try to add a build configuration and start a build, the task seems to be "hanging" (spinning wheel and grayed out configuration tab). There is an error on the 'Output' tab reported right away. "Error: there is no registered task type 'nrf-connect-generate'. Did you miss installing an extension that provides a corresponding task provider?"

    To try another way to generate a build output file, I tried to use the command on ther terminal

    > west build --board nrf52832 (possibly incorrect but I have a build folder and a file in there that I have attached)

    # This is the CMakeCache file.
    # For build in directory: c:/nordic/myapps/blinky_pwm_1/build
    # It was generated by CMake: C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe
    # You can edit this file to change values found and used by cmake.
    # If you do not want to change any of the values, simply exit the editor.
    # If you do want to change a value, simply edit, save, and exit the editor.
    # The syntax for the file is as follows:
    # KEY:TYPE=VALUE
    # KEY is the name of a variable in the cache.
    # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
    # VALUE is the current value for the KEY.
    
    ########################
    # EXTERNAL cache entries
    ########################
    
    //Application Binary Directory
    APPLICATION_BINARY_DIR:PATH=C:/nordic/myapps/blinky_pwm_1/build
    
    //Application Source Directory
    APPLICATION_SOURCE_DIR:PATH=C:/nordic/myapps/blinky_pwm_1
    
    //No help, variable specified on the command line.
    BOARD:UNINITIALIZED=nrf52832
    
    //NCS Toolchain DTC
    DTC:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/dtc.exe
    
    //NCS Toolchain Git
    GIT_EXECUTABLE:FILEPATH=C:/ncs/toolchains/ce3b5ff664/bin/git.exe
    
    //NCS GNU ARM emb path
    GNUARMEMB_TOOLCHAIN_PATH:PATH=C:/ncs/toolchains/ce3b5ff664/opt
    
    //NCS Toolchain gperf
    GPERF:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/gperf.exe
    
    //The directory containing a CMake configuration file for NcsToolchain.
    NcsToolchain_DIR:PATH=C:/ncs/toolchains/ce3b5ff664/cmake
    
    //NCS Toolchain protoc
    PROTOBUF_PROTOC_EXECUTABLE:STRING=C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe;-E;env;PATH=C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\;C:\ncs\toolchains\ce3b5ff664\mingw64\bin\;C:\ncs\toolchains\ce3b5ff664\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\Scripts\;C:\ncs\toolchains\ce3b5ff664\opt\nanopb\generator-bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\aarch64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\x86_64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\riscv64-zephyr-elf\bin\;c:\Users\paulek\.vscode\extensions\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\platform\nrfutil\lib\nrfutil-toolchain-manager\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath\;C:\WINDOWS\system32\;C:\WINDOWS\;C:\WINDOWS\System32\Wbem\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\MATLAB\R2022b\bin\;C:\Program Files\Git\cmd\;C:\Program Files\TortoiseGit\bin\;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\;C:\Program Files (x86)\Plantronics\Spokes3G\;C\;C:\ProgramData\chocolatey\bin\;C:\Program Files\CMake\bin\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Microsoft VS Code\bin\;C:\Python\Scripts\;C:\Python\;C:\ncs\;C:\Users\paulek\AppData\Local\Microsoft\WindowsApps\;C:\Users\paulek\AppData\Local\gitkraken\bin\;C:\Users\paulek\;C:\Program Files (x86)\Keil_v5\ARM\ARMCLANG\bin;C:/ncs/toolchains/ce3b5ff664/opt/nanopb/generator-bin/protoc.exe
    
    //NCS Toolchain protoc
    PROTOC:STRING=C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe;-E;env;PATH=C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\;C:\ncs\toolchains\ce3b5ff664\mingw64\bin\;C:\ncs\toolchains\ce3b5ff664\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\;C:\ncs\toolchains\ce3b5ff664\opt\bin\Scripts\;C:\ncs\toolchains\ce3b5ff664\opt\nanopb\generator-bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\aarch64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\x86_64-zephyr-elf\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\;C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\riscv64-zephyr-elf\bin\;c:\Users\paulek\.vscode\extensions\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\platform\nrfutil\lib\nrfutil-toolchain-manager\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath\;C:\WINDOWS\system32\;C:\WINDOWS\;C:\WINDOWS\System32\Wbem\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\MATLAB\R2022b\bin\;C:\Program Files\Git\cmd\;C:\Program Files\TortoiseGit\bin\;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\;C:\Program Files (x86)\Plantronics\Spokes3G\;C\;C:\ProgramData\chocolatey\bin\;C:\Program Files\CMake\bin\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Microsoft VS Code\bin\;C:\Python\Scripts\;C:\Python\;C:\ncs\;C:\Users\paulek\AppData\Local\Microsoft\WindowsApps\;C:\Users\paulek\AppData\Local\gitkraken\bin\;C:\Users\paulek\;C:\Program Files (x86)\Keil_v5\ARM\ARMCLANG\bin;C:/ncs/toolchains/ce3b5ff664/opt/nanopb/generator-bin/protoc.exe
    
    //NCS Toolchain Python
    PYTHON_EXECUTABLE:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    //NCS Toolchain Python
    Python3_EXECUTABLE:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    //NCS Toolchain West
    WEST:FILEPATH=C:/ncs/toolchains/ce3b5ff664/opt/bin/Scripts/west.exe
    
    //No help, variable specified on the command line.
    WEST_PYTHON:UNINITIALIZED=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    //Zephyr base
    ZEPHYR_BASE:PATH=C:/ncs/v2.7.0/zephyr
    
    //NCS Zephyr SDK install dir
    ZEPHYR_SDK_INSTALL_DIR:PATH=C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk
    
    //NCS Toolchain Variant
    ZEPHYR_TOOLCHAIN_VARIANT:STRING=zephyr
    
    //The directory containing a CMake configuration file for ZephyrAppConfiguration.
    ZephyrAppConfiguration_DIR:PATH=ZephyrAppConfiguration_DIR-NOTFOUND
    
    //The directory containing a CMake configuration file for ZephyrBuildConfiguration.
    ZephyrBuildConfiguration_DIR:PATH=C:/ncs/v2.7.0/nrf/share/zephyrbuild-package/cmake
    
    //The directory containing a CMake configuration file for Zephyr.
    Zephyr_DIR:PATH=C:/ncs/v2.7.0/zephyr/share/zephyr-package/cmake
    
    
    ########################
    # INTERNAL cache entries
    ########################
    
    //This is the directory where this CMakeCache.txt was created
    CMAKE_CACHEFILE_DIR:INTERNAL=c:/nordic/myapps/blinky_pwm_1/build
    //Major version of cmake used to create the current loaded cache
    CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
    //Minor version of cmake used to create the current loaded cache
    CMAKE_CACHE_MINOR_VERSION:INTERNAL=21
    //Patch version of cmake used to create the current loaded cache
    CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
    //Path to CMake executable.
    CMAKE_COMMAND:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/cmake.exe
    //Path to cpack program executable.
    CMAKE_CPACK_COMMAND:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/cpack.exe
    //Path to ctest program executable.
    CMAKE_CTEST_COMMAND:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/ctest.exe
    //Name of external makefile project generator.
    CMAKE_EXTRA_GENERATOR:INTERNAL=
    //Name of generator.
    CMAKE_GENERATOR:INTERNAL=Ninja
    //Generator instance identifier.
    CMAKE_GENERATOR_INSTANCE:INTERNAL=
    //Name of generator platform.
    CMAKE_GENERATOR_PLATFORM:INTERNAL=
    //Name of generator toolset.
    CMAKE_GENERATOR_TOOLSET:INTERNAL=
    //Source directory with the top level CMakeLists.txt file for this
    // project
    CMAKE_HOME_DIRECTORY:INTERNAL=C:/nordic/myapps/blinky_pwm_1
    //NCS Toolchain ninja
    CMAKE_MAKE_PROGRAM:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/ninja.exe
    //number of local generators
    CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
    //Path to CMake installation.
    CMAKE_ROOT:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/share/cmake-3.21
    _Python3_EXECUTABLE:INTERNAL=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe
    
    

    I am working remotely and wonder if the antivirus software installed by my company could be preventing any script from running? The reason I used chocolatey was to try another installation method - Installing manually (nordicsemi.com). I ran into an error from Cyclance preventing the scripts from running completely so I abandoned that route. 

    Any help or guidance you can provide would be greatly appreciated. 

    Thanks!

  • Hi,

    1. Could you open a command pallette and generate support information? ctrl+shift+p >generate support information 


    2. So the general approach I would recommend is that you start completely from scratch, i.e uninstall all the tools (nrfutil, nrf-command-line tools, Segger, vs code extensions, any appdata) and follow the procedure once more. These are errors that typically come when something has gone wrong in the steps. And yes, I know you've reinstalled it many times, and so have I in the past when I've seen these kinds of errors.

    3. Alternatively if you have another windows machine available you can see if you're able to reinstall

    4. Could you verify which version of Windows you're using? I'm assuming W10 or W11

    5. Is this the exact build command? "west build --board nrf52832" should not return the build log you're seeing unless you've set up custom aliases. It should return the following

    (v2.6.2) C:\ncs\sdk\zephyr\samples\hello_world> west build --board nrf52832
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/sdk/zephyr/samples/hello_world
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.6.20240605.885759407716 for building. (C:/ncs/toolchains/ce3b5ff664/cmake)
    -- Found Python3: C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/sdk/zephyr/.cache
    -- Zephyr version: 3.5.99 (C:/ncs/sdk/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52832
    No board named 'nrf52832' found.
    
    Please choose one of the following boards:
    
    arc:
      em_starterkit
      em_starterkit_em11d
      em_starterkit_em7d
      em_starterkit_em7d_v22
      emsdp
      emsdp_em4
      emsdp_em5d
      emsdp_em6
      emsdp_em7d
      emsdp_em7d_esp
      emsdp_em9d
      hsdk
      hsdk4xd
      hsdk_2cores
      iotdk
      nsim_em
      nsim_em11d
      nsim_em7d_v22
      nsim_hs
      nsim_hs3x_hostlink
      
      .... the list goes on and lists every available board in NCS
    

    Kind regards,
    Andreas

  • Hi Andreas,

    Thank you for your response. 

    1. I have attached the general support information. 

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Enterprise",
        "osKernel": "10.0.19045",
        "vscode": "1.94.2",
        "electron": "30.5.1",
        "node": "v20.16.0"
      },
      "system": {
        "date": "2024-10-14T13:22:15.798Z",
        "vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": false,
        "vscodeUptime": "64:41:24",
        "osUptime": "115:09:31",
        "cpu": "11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz"
      },
      "workspace": {
        "name": "blinky_pwm_1",
        "workspaceFile": null,
        "folders": [
          "c:\\nordic\\myapps\\blinky_pwm_1"
        ]
      },
      "sdks": [
        {
          "version": "v2.7.0",
          "path": "c:\\ncs\\v2.7.0"
        }
      ],
      "apps": [
        {
          "workspace": "c:\\nordic\\myapps\\blinky_pwm_1",
          "uri": "c:\\nordic\\myapps\\blinky_pwm_1",
          "buildConfigurations": []
        }
      ],
      "topdir": "c:\\ncs\\v2.7.0",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        }
      ],
      "activeToolchain": {
        "type": "installation",
        "path": "c:\\ncs\\toolchains\\ce3b5ff664",
        "version": "2.7.0",
        "displayName": "nRF Connect SDK Toolchain v2.7.0"
      },
      "connectedDevices": [
        {
          "serialNumber": "123456"
        }
      ],
      "deviceProvider": "nrfutil",
      "tools": {
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5-1",
        "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gn.exe": "2172",
        "C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.5.0",
          "binPath": "c:\\Users\\paulek\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\paulek\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\paulek",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\paulek",
          "PATH": "C:\\ncs\\toolchains\\ce3b5ff664;C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\paulek\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\MATLAB\\R2022b\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files (x86)\\Plantronics\\Spokes3G\\;C;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Python\\Scripts\\;C:\\Python\\;C:\\ncs;C:\\Users\\paulek\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\paulek\\AppData\\Local\\gitkraken\\bin;C:\\Users\\paulek;C:\\Program Files (x86)\\Keil_v5\\ARM\\ARMCLANG\\bin;",
          "ZEPHYR_BASE": "c:\\ncs\\v2.7.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\paulek",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\paulek",
          "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\MATLAB\\R2022b\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files (x86)\\Plantronics\\Spokes3G\\;C;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Python\\Scripts\\;C:\\Python\\;C:\\ncs;C:\\Users\\paulek\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\paulek\\AppData\\Local\\gitkraken\\bin;C:\\Users\\paulek;C:\\Program Files (x86)\\Keil_v5\\ARM\\ARMCLANG\\bin;C:\\Program Files\\CMake\\bin;",
          "PATH": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\MATLAB\\R2022b\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files (x86)\\Plantronics\\Spokes3G\\;C;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Python\\Scripts\\;C:\\Python\\;C:\\ncs;C:\\Users\\paulek\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\paulek\\AppData\\Local\\gitkraken\\bin;C:\\Users\\paulek;C:\\Program Files (x86)\\Keil_v5\\ARM\\ARMCLANG\\bin;C:\\Program Files\\CMake\\bin;",
          "PYTHONPATH": "C:\\Python;C:\\Python\\libs;C:\\Watlow\\projects;"
        }
      },
      "terminal": {
        "defaultProfile": "nRF Connect"
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": "c:\\ncs"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfutil",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "welcome": {
            "showOnStartup": true
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.9.87",
            "path": "c:\\Users\\paulek\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\paulek\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.9.26",
            "path": "c:\\Users\\paulek\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.9.26",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.9.20",
            "path": "c:\\Users\\paulek\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.9.20",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.21.6",
          "ms-vscode.js-debug": "1.94.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "ms-vscode.cmake-tools": "1.19.52",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    

    2. I will give this another try. 

    3. I don't have access to another machine. I would have to ask one of my colleagues to try this out which is currently not an option. 

    4. Windows 10. 

    5. The file I attached earlier is the CMakeCache.txt file found in the build folder, not exactly the build log. Maybe that's why it looks different. I apologize for attaching another screenshot but I don't know where this build log is located. This is what I see when I run the 'west build' command. 

    Lekha

  • Thank you for verifying 

    LPauly said:
    . The file I attached earlier is the CMakeCache.txt file found in the build folder, not exactly the build log. Maybe that's why it looks different. I apologize for attaching another screenshot but I don't know where this build log is located. This is what I see when I run the 'west build' command. 

    A quick thought: Is this command entered in a generic cmd or one opened through the toolchain? I.e 

    (Ignore the mismatched toolchain and SDK on my part, I have multiple instances opened at the moment). If it is a generic terminal and not a "Terminal Profile", could you try again by opening the Terminal profile?

    And if you do see the same issue that I saw when building with "west build --board nrf52832dk", could you try again with the correct target, i.e "west build --board nrf52dk_nrf5232". I assume it is a nRF52DK you're using (which has the nRF52832 SoC onboard)?

    Kind regards,
    Andreas

  • I opened the terminal from the toolchain and tried the command again with the same build errors as before. I also tried with the correct target with the same error - "Could NOT find Python3". I think reinstallation is the way to go. 

Related