nRF Connect for VSCode - custom board selection

Hello,

I have a question about the Kconfig extension for VSCode.

When I use the nrf52840 DK, the Board Selection correctly check the nrf52840dk_nrf52840 and all the configs made inside the nrf52840dk_nrf52840_defconf. In this case, I can correctly check the LOG_BACKEND_SWO option for example.

But when I use our custom board based on the DK (with all the files correctly named and with a correct build), our board is not checked inside the Board Selection menu. And then the LOG_BACKEND_SWO (for example), cannot be checked as Kconfig think that the board has no SWO...

Yes I can just put "CONFIG_LOG_BACKEND_SWO" inside the prj.conf but I want to use the graphical extension as it's easier to navigate in it.

Also, when I use guiconfig or menuconfig, I see that my board is selected in the Board Selection menu.

Is there something I'm doing wrong or is the Kconfig extension not made for custom board ?

Regards,

Andrew

Parents
  • Hi Andrew,

    I have forwarded your observation to our VS Code Extension team. I will get back to you once I receive their feedback.

    Best regard,

    Hieu

  • Hi Andrew,

    We don't have the same experience on our end. Could you please run the "nRF Connect: Generate Support Information" and send us the result?

    Best regards,

    Hieu

  • Hello,

    Here is the report.

    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 Home",
        "osKernel": "10.0.22621",
        "vscode": "1.72.0",
        "electron": "19.0.17",
        "node": "v16.14.2"
      },
      "system": {
        "date": "2022-10-10T13:14:23.635Z",
        "vscodeRoot": "c:\\Users\\atome\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "02:12:17",
        "osUptime": "141:37:34",
        "cpu": {
          "model": "AMD Ryzen 9 5900HX with Radeon Graphics",
          "speed": "3294 MHz",
          "count": 8
        },
        "memory": {
          "total": "15.41 GB",
          "free": "4.08 GB"
        }
      },
      "workspace": {
        "name": "louis_multicom (Espace de travail)",
        "workspaceFile": "c:\\Users\\atome\\Documents\\safehear\\louis_multicom\\louis_multicom.code-workspace",
        "folders": [
          "c:\\Users\\atome\\Documents\\safehear\\louis_multicom\\Louis",
          "c:\\Users\\atome\\Documents\\safehear\\louis_multicom"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.10.30",
            "path": "c:\\Users\\atome\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.10.30-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.10.7",
            "path": "c:\\Users\\atome\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.10.7",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2022.9.11",
            "path": "c:\\Users\\atome\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2022.9.11",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2022.10.7",
            "path": "c:\\Users\\atome\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2022.10.7",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.6.5",
          "ms-vscode.cpptools": "1.12.4",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.17",
          "ms-vscode.js-debug": "1.72.1",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "cschlosser.doxdocgen": "1.4.0",
          "eamodio.gitlens": "12.2.2",
          "GitHub.copilot": "1.50.6974",
          "Gruntfuggly.todo-tree": "0.0.215",
          "jeff-hykin.better-cpp-syntax": "1.16.1",
          "johnpapa.vscode-peacock": "4.2.2",
          "josetr.cmake-language-support-vscode": "0.0.4",
          "mintlify.document": "2.2.1",
          "monokai.theme-monokai-pro-vscode": "1.1.21",
          "MS-CEINTL.vscode-language-pack-fr": "1.72.10051001",
          "ms-dotnettools.vscode-dotnet-runtime": "1.5.0",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.6",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
          "ms-vscode-remote.remote-ssh": "0.84.0",
          "ms-vscode-remote.remote-ssh-edit": "0.84.0",
          "ms-vscode-remote.remote-wsl": "0.72.0",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "1.0.0",
          "ms-vscode.hexeditor": "1.9.9",
          "PKief.material-icon-theme": "4.20.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17",
          "WakaTime.vscode-wakatime": "20.0.0",
          "yzhang.markdown-all-in-one": "3.4.3"
        }
      },
      "tools": {
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.14.1",
        "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.66a",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.4",
        "nrfutil": "Not found",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Scripts\\west.exe": null,
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\python.exe": "3.8.2",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\gperf.exe": "3.1",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\gn.exe": "2060",
        "c:\\ncs\\toolchains\\v2.1.0\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
      },
      "sdks": [
        {
          "version": "2.1.0",
          "path": "c:\\Users\\atome\\Documents\\safehear\\louis_multicom"
        },
        {
          "version": "2.0.0",
          "path": "c:\\ncs\\v2.0.0"
        },
        {
          "version": "2.1.0",
          "path": "c:\\ncs\\v2.1.0"
        }
      ],
      "toolchains": [
        {
          "version": "2.0.0",
          "path": "c:\\ncs\\toolchains\\v2.0.0"
        },
        {
          "version": "2.1.0",
          "path": "c:\\ncs\\toolchains\\v2.1.0"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "683747905"
        }
      ],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${workspaceFolder:louis_multicom}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.1.0}"
          },
          "ozonePath": "C:\\Program Files\\SEGGER\\Ozone\\Ozone.exe",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "welcome": {
            "showOnStartup": false
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [
            "${workspaceFolder}"
          ],
          "enableTelemetry": true,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true
          },
          "activeAppFollowActiveEditor": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": false,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\atome",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\atome",
          "Path": "c:\\ncs\\toolchains\\v2.1.0\\mingw64\\bin;c:\\ncs\\toolchains\\v2.1.0\\mingw64\\libexec\\git-core;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin;c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.1.0\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Scripts;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.15.10-hotspot\\bin;C:\\Program Files\\Renode\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\ncs\\toolchains\\v2.1.0;C:\\ncs\\toolchains\\v2.1.0\\opt\\bin;C:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Scripts;C:\\Program Files\\Google\\Google Apps Sync\\;C:\\Program Files\\Google\\Google Apps Migration\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\SEGGER\\JLink\\;C:\\Program Files (x86)\\GnuWin32\\bin\\;C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\;C:\\Program Files\\Cppcheck\\;C:\\Program Files\\Git\\usr\\bin\\;C:\\Users\\atome\\AppData\\Roaming\\Python\\Python38\\Scripts;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Go\\bin;C:\\Users\\atome\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\atome\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\atome\\AppData\\Local\\gitkraken\\bin;C:\\Users\\atome\\spicetify-cli;C:\\Users\\atome\\go\\bin;C:\\Users\\atome\\AppData\\Local\\Microsoft\\WindowsApps",
          "ZEPHYR_BASE": "c:\\Users\\atome\\Documents\\safehear\\louis_multicom\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Lib;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\atome",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\atome",
          "Path": "C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.15.10-hotspot\\bin;C:\\Program Files\\Renode\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\ncs\\toolchains\\v2.1.0;C:\\ncs\\toolchains\\v2.1.0\\opt\\bin;C:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Scripts;C:\\Program Files\\Google\\Google Apps Sync\\;C:\\Program Files\\Google\\Google Apps Migration\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\SEGGER\\JLink\\;C:\\Program Files (x86)\\GnuWin32\\bin\\;C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\;C:\\Program Files\\Cppcheck\\;C:\\Program Files\\Git\\usr\\bin\\;C:\\Users\\atome\\AppData\\Roaming\\Python\\Python38\\Scripts;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Go\\bin;C:\\Users\\atome\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\atome\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\atome\\AppData\\Local\\gitkraken\\bin;C:\\Users\\atome\\spicetify-cli;C:\\Users\\atome\\go\\bin;C:\\Users\\atome\\AppData\\Local\\Microsoft\\WindowsApps",
          "PATH": "C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.15.10-hotspot\\bin;C:\\Program Files\\Renode\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\ncs\\toolchains\\v2.1.0;C:\\ncs\\toolchains\\v2.1.0\\opt\\bin;C:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Scripts;C:\\Program Files\\Google\\Google Apps Sync\\;C:\\Program Files\\Google\\Google Apps Migration\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\SEGGER\\JLink\\;C:\\Program Files (x86)\\GnuWin32\\bin\\;C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\;C:\\Program Files\\Cppcheck\\;C:\\Program Files\\Git\\usr\\bin\\;C:\\Users\\atome\\AppData\\Roaming\\Python\\Python38\\Scripts;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Go\\bin;C:\\Users\\atome\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\atome\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\atome\\AppData\\Local\\gitkraken\\bin;C:\\Users\\atome\\spicetify-cli;C:\\Users\\atome\\go\\bin;C:\\Users\\atome\\AppData\\Local\\Microsoft\\WindowsApps"
        },
        "toolchainPath": "c:\\ncs\\toolchains\\v2.1.0",
        "toolchainBinPath": "c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.1.0"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

    Regards,

    Andrew

  • Hi Andrew,

    Our VS Code Extension team has received your information. However, they are out of office at the moment. They will check on this next week.
    I'm sorry for the inconvenience. I hope it doesn't block your work, since guiconfig and menuconfig can serve as workarounds for now?

    By the way, have you seen this same issue in any other project?

    Best regards,

    Hieu

  • Hello,

    Yes it's not blocking me as I can use guiconfig or just type the parameters in the .conf file.

    It's just easier to use Kconfig.


    And yes I have the same issue with others projects when I want to use a custom board.

    Regards,

    Andrew

Reply Children
Related