issues with nrf sdk and zephyr board files for nrf 9160dk

C:/nordic/v1.9.1/zephyr/boards/arm/nrf9160dk_nrf52840/Kconfig.defconfig:15: error: couldn't parse 'default BT && $(dt_nodelabel_enabled,reset_input)': macro expanded to blank string

Hey I am trying to write a program that sends integers from the 52 to the 91 of the nrf 9160 dk but I the nrf sdk is not working. I installed it through toolchain manager. I get no option to do pristin build, I am not able to open kconfig. I am not able to regular build either as shown below. You need anymore information let me know.

thank you

Parents
  • Hey Sry about the delay here is the log

    > Executing task: nRF Connect: Build: uartAttemp91/build (active) <

    Building uartAttemp91
    west build --build-dir c:\nordic\Wicelab\uartAttemp91\build c:\nordic\Wicelab\uartAttemp91 --pristine --board nrf9160dk_nrf9160_ns -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONF_FILE:STRING="c:/nordic/Wicelab/uartAttemp91/prj.conf" -DDTC_OVERLAY_FILE:STRING="c:/nordic/Wicelab/uartAttemp91/nrf9160dk_nrf9160_ns.overlay"

    usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
    west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')
    The terminal process failed to launch (exit code: 2).

    Terminal will be reused by tasks, press any key to close it.

  • Hi,

    There seems to be an issue with the installation or environment variables, since you get an issue with running west build. Please generate support information in VS Code and upload it here. To do so, open command palette in VS Code and write nRF Connect: Generate support information. After selecting this the information will be generated in the output terminal. Copy the output and upload it here using Insert > Code. 

    Best regards,

    Marte

Reply
  • Hi,

    There seems to be an issue with the installation or environment variables, since you get an issue with running west build. Please generate support information in VS Code and upload it here. To do so, open command palette in VS Code and write nRF Connect: Generate support information. After selecting this the information will be generated in the output terminal. Copy the output and upload it here using Insert > Code. 

    Best regards,

    Marte

Children
  •   "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Home",
        "osKernel": "10.0.22000",
        "vscode": "1.66.2",
        "electron": "17.2.0",
        "node": "v16.13.0"
      },
      "system": {
        "date": "2022-05-04T18:53:30.979Z",
        "vscodeRoot": "c:\\Users\\alimh\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:05:53",
        "osUptime": "157:02:13",
        "cpu": {
          "model": "11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz",
          "speed": "2918 MHz",
          "count": 4
        },
        "memory": {
          "total": "15.75 GB",
          "free": "7.35 GB"
        }
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1651430091892",
        "folders": [
          "c:\\nordic\\Wicelab\\hello_world",
          "c:\\nordic\\Wicelab\\uartAttemp91"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.4.219",
            "path": "c:\\Users\\alimh\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.4.219",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.4.61",
            "path": "c:\\Users\\alimh\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.4.61",
            "isActive": true
          },
          "nordic-semiconductor.devicetree": null,
          "nordic-semiconductor.kconfig": null
        },
        "external": {
          "marus25.cortex-debug": "1.4.4",
          "ms-vscode.cpptools": "1.9.8",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.15",
          "ms-vscode.js-debug": "1.66.1",
          "ms-vscode.js-debug-companion": "1.0.17",
          "ms-vscode.references-view": "0.0.89",
          "ms-vscode.vscode-js-profile-table": "1.0.0",
          "cschlosser.doxdocgen": "1.4.0",
          "go2sh.cmake-integration-vscode": "0.7.1",
          "jeff-hykin.better-cpp-syntax": "1.15.13",
          "ms-python.python": "2022.4.1",
          "ms-python.vscode-pylance": "2022.4.3",
          "ms-toolsai.jupyter": "2022.3.1000901801",
          "ms-toolsai.jupyter-keymap": "1.0.0",
          "ms-toolsai.jupyter-renderers": "1.0.6",
          "ms-vscode-remote.remote-containers": "0.231.6",
          "ms-vscode-remote.remote-ssh": "0.78.0",
          "ms-vscode-remote.remote-ssh-edit": "0.80.0",
          "ms-vscode-remote.remote-wsl": "0.66.2",
          "ms-vscode.cmake-tools": "1.10.5",
          "ms-vscode.cpptools-extension-pack": "1.1.0",
          "ms-vscode.cpptools-themes": "1.0.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.58b",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.4",
        "nrfutil": "Not found",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.12.0",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
        "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\gn.exe": "1977",
        "c:\\nordic\\v1.9.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
      },
      "sdks": [
        {
          "version": "1.9.1",
          "path": "c:\\nordic\\v1.9.1"
        }
      ],
      "toolchains": [
        {
          "version": "1.9.1",
          "path": "c:\\nordic\\v1.9.1\\toolchain"
        }
      ],
      "connectedDevices": [],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:1.9.1}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:1.9.1}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}",
            "c:\\nordic\\Wicelab\\uartAttemp91",
            "c:\\nordic\\Wicelab\\hello_world"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "nordic-semiconductor.devicetree": {
          "modules": [
            "${zephyrBase}",
            "${zephyrBase}/../nrf",
            "."
          ],
          "zephyr": "",
          "ctxFile": "",
          "defaultBoard": ""
        },
        "nordic-semiconductor.kconfig": {
          "root": "",
          "env": {},
          "cfiles": true,
          "disable": false,
          "zephyr": {
            "base": ""
          },
          "python": "C:\\Users\\alimh\\AppData\\Local\\Programs\\Python\\Python36-32\\python.exe",
          "liveValue": true
        },
        "marus25.cortex-debug": {
          "armToolchainPath": "",
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "flattenAnonymous": false,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\alimh",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\alimh",
          "Path": "c:\\nordic\\v1.9.1\\toolchain\\mingw64\\bin;c:\\nordic\\v1.9.1\\toolchain\\mingw64\\libexec\\git-core;c:\\nordic\\v1.9.1\\toolchain\\opt\\bin;c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\Scripts;C:\\Program Files\\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\\dotnet\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\CMake\\bin;C:\\Users\\alimh\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts\\;C:\\Users\\alimh\\AppData\\Local\\Programs\\Python\\Python36-32\\;C:\\Users\\alimh\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\alimh\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\JetBrains\\PyCharm Community Edition 2022.1\\bin;",
          "ZEPHYR_BASE": "c:\\nordic\\v1.9.1\\zephyr",
          "GNUARMEMB_TOOLCHAIN_PATH": "c:\\nordic\\v1.9.1\\toolchain\\opt",
          "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
          "PYTHONPATH": "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin;c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\Lib;c:\\nordic\\v1.9.1\\toolchain\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin"
        },
        "toolchainPath": "c:\\nordic\\v1.9.1\\toolchain",
        "toolchainBinPath": "c:\\nordic\\v1.9.1\\toolchain\\opt\\bin",
        "toolchainVersion": "1.9.1"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }


  • Hi,

    Can you try deleting your build configuration and the .vscode before creating a new build configuration? The .vscode folder should be located in your project folder. It is possible that you have one in both c:/nordic/v1.9.1 and your application folders (c:/nordic/Wicelab/uartAttemp91 and c:/nordic/Wicelab/hello_world), so make sure to check and delete it all places.

    Best regards,

    Marte

Related