devicetree in VS code

Hi 

I would like to use DeviceTree in VS code. The VS code had installed "nRF Connect for VS Code Extension Pack" and tools chain.

But I can't see any file in "DEVICETREE VISUAL EDITOR".

What is missing? Is it not yet install? If yes, please let me know how to install it.

I know it is very simple for you, but I need your hint to fix it. Please share your advise with me.

Good device treemy NG device tree

// IMPORTANT: The following data can contain sensitive or confidential information about your environment.
// If you do not want others to see this information, make sure to remove it before sharing the data.

// For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.

{
  "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Pro N",
    "osKernel": "10.0.19045",
    "vscode": "1.96.2",
    "electron": "32.2.6",
    "node": "v20.18.1"
  },
  "system": {
    "date": "2024-12-24T05:04:40.059Z",
    "vscodeRoot": "c:\\Users\\Owner\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:00:44",
    "osUptime": "03:17:48",
    "cpu": "AMD Ryzen 5 5600G with Radeon Graphics"
  },
  "workspace": {
    "name": "test02",
    "workspaceFile": null,
    "folders": [
      "c:\\Users\\Owner\\Documents\\nRF\\test02"
    ]
  },
  "sdks": [
    {
      "version": "v2.9.0",
      "path": "c:\\ncs\\v2.9.0"
    }
  ],
  "activeBuild": "c:\\Users\\Owner\\Documents\\nRF\\test02\\build",
  "apps": [
    {
      "workspace": "c:\\Users\\Owner\\Documents\\nRF\\test02",
      "uri": "c:\\Users\\Owner\\Documents\\nRF\\test02",
      "buildConfigurations": [
        {
          "id": "c:\\Users\\Owner\\Documents\\nRF\\test02\\build",
          "name": "build",
          "boardId": "nrf52_sparkfun/nrf52832",
          "type": "Sysbuild",
          "isChild": false,
          "isStale": false,
          "taskBindings": {
            "build": [],
            "pristineBuild": [],
            "flash": [],
            "eraseAndFlash": []
          },
          "sdk": "c:\\ncs\\v2.9.0",
          "toolchain": "nRF Connect SDK Toolchain v2.9.0"
        }
      ]
    }
  ],
  "toolchains": [
    {
      "version": "2.9.0",
      "path": "c:\\ncs\\toolchains\\b620d30767"
    }
  ],
  "connectedDevices": [
    {
      "serialNumber": "000268002086"
    }
  ],
  "tools": {
    "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
    "C:\\Program Files\\SEGGER\\JLink_V794l\\JLink.exe": "7.94l",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
    "C:\\ncs\\toolchains\\b620d30767\\cmake": "3.21.0",
    "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts\\west.exe": "1.2.0",
    "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\python.exe": "3.12.4",
    "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\ninja.exe": "1.10.2",
    "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gperf.exe": "3.1",
    "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\dtc.exe": "1.4.7",
    "C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\gn.exe": "2202",
    "C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
    "arm-gdbPath": "c:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
    "riscv-gdbPath": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
  },
  "nrfutil": {
    "nrfutil-device": {
      "version": "2.7.2",
      "binPath": "c:\\Users\\Owner\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
      "jlinkInfo": {
        "description": "This version of SEGGER J-Link is different from the J-Link version that was used to test nrfutil device commands",
        "expectedVersion": {
          "version": "JLink_V7.94i",
          "versionFormat": "string"
        },
        "name": "JlinkARM",
        "version": "JLink_V7.94l",
        "versionFormat": "string"
      }
    },
    "nrfutil-toolchain-manager": {
      "version": "0.14.4",
      "binPath": "c:\\Users\\Owner\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
    }
  },
  "environment": {
    "westEnv": {
      "HOME": "C:\\Users\\Owner",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\Owner",
      "PATH": "C:\\ncs\\toolchains\\b620d30767;C:\\ncs\\toolchains\\b620d30767\\mingw64\\bin;C:\\ncs\\toolchains\\b620d30767\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\b620d30767\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\Owner\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Owner\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Owner\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
      "ZEPHYR_BASE": "c:\\ncs\\v2.9.0\\zephyr",
      "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
      "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\b620d30767\\opt\\zephyr-sdk",
      "PYTHONPATH": "C:\\ncs\\toolchains\\b620d30767\\opt\\bin;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib;C:\\ncs\\toolchains\\b620d30767\\opt\\bin\\Lib\\site-packages"
    },
    "inherited": {
      "HOME": "C:\\Users\\Owner",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\Owner",
      "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Owner\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Owner\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
      "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Owner\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Owner\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
    }
  },
  "terminal": {
    "defaultProfile": null
  },
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "",
      "toolchain": {
        "path": ""
      },
      "ozonePath": "",
      "applications": [],
      "applicationOptions": {},
      "kconfig": {
        "interface": "kconfig"
      },
      "west": {
        "env": {
          "$base": "terminal"
        }
      },
      "boardRoots": [],
      "taskBindings": {},
      "buildTerminal": {
        "condensedProgress": true
      },
      "debugging": {
        "flash": true,
        "bindings": {},
        "justMyCode": false
      },
      "activeAppFollowActiveEditor": true,
      "flash": {
        "softreset": false,
        "erase": false,
        "recover": false
      },
      "enableTelemetry": false,
      "thirdpartyIntegration": {},
      "toolchainManager": {
        "indexURL": null,
        "installDirectory": null
      },
      "nrfutil": {
        "home": null
      },
      "defaultOpenAction": "ask",
      "terminalProfile": {
        "shell": null
      }
    },
    "nordic-semiconductor.nrf-terminal": {
      "terminalMode": "character"
    }
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2024.12.55",
        "path": "c:\\Users\\Owner\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.12.55-win32-x64",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2024.9.14",
        "path": "c:\\Users\\Owner\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
        "isActive": true
      },
      "nordic-semiconductor.nrf-devicetree": {
        "version": "2024.12.15",
        "path": "c:\\Users\\Owner\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.12.15",
        "isActive": true
      },
      "nordic-semiconductor.nrf-kconfig": {
        "version": "2024.12.13",
        "path": "c:\\Users\\Owner\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.12.13",
        "isActive": true
      }
    },
    "external": {
      "marus25.cortex-debug": null,
      "ms-vscode.cpptools": "1.22.11",
      "ms-vscode.js-debug": "1.96.0",
      "ms-vscode.js-debug-companion": "1.1.3",
      "ms-vscode.vscode-js-profile-table": "1.0.10",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "twxs.cmake": "0.0.17"
    }
  }
}

  • I am not sure what could be the issue at your end.

    May I ask you to restart your system, and reopen the VS Code, and then rebuilt the project and see if the problem is still there.

    Please share full screen as you would see the visual editor on the right.

  • Hi Naeem,

    Thank you for your support. I've tried restarting your system, reopening VS Code, and rebuilding the project multiple times, but without success.

    Fortunately, it finally succeeded recently. However, I'm still unclear on the installation process.

    I suspect the issue might be something minor, like the installation sequence or attaching the .cfg file (e.g., proj.cfg).

    I'd like to send you a snapshot and guide you step by step. Hopefully, together we can identify the problem.

    Wishing you a Happy New Year!

  • Hi Naeem,

    Thank you for your previous support.

    Despite restarting my system, reopening VS Code, and rebuilding the project multiple times, I am still facing issues with the "DeviceTree Visual Editor" in VS Code. Although it succeeded once recently, I am still unclear on the installation process and suspect the issue might be minor, possibly related to the installation sequence or configuration file attachment (e.g., proj.cfg).

    Could you please provide a more detailed step-by-step guide or troubleshooting tips? I am also ready to share a snapshot of my current setup to help identify the problem more efficiently.

    Your assistance is greatly appreciated.

  • Hello,

    I will look into your issue. Could you tell me what happens when you open the DEVICETREE VISUAL EDITOR? Do you see any message? If so, please share a screenshot of the entire screen.

    Additionally, can you try double-clicking the build info of the application you have built? You can find this when you expand the build under the Application tab.

    Please see the screenshot below:

    Kind Regards,

    Abhijith

  • Hi Abhijith,

    Thanks for your support.

    I am a beginner in nRF programming, and I am following Nordic's information to install nRF Connect in VS Code. However, I am experiencing an issue where the "Devicetree" tag appears intermittently in the "Action" tab, but most of the time it does not.

    My setup includes the installed toolchain and SDK version 2.9.0. I have created a blank new project and a custom board with the nRF52832. Initially, I intended to use the "Devicetree" to configure the nRF chip for my application. Without it, I am unsure how to proceed.

    Additionally, I would like to know if it is necessary to have the target board connected during development. In my current state, I prefer to set up the entire environment, board configuration, and draft the program before connecting the board.

    Is it possible that I am missing a step, such as creating a new west workspace? I do not want to give up on nRF Connect. Please provide detailed, step-by-step instructions to help me succeed.

    Thank you.

    Best regards,

    LC

Related