case about nRF Connect SDK install on ubuntu 22.04.5 server

Hi,

1. Using VS Code plugin remote ssh to access the nRF Connect SDK environment on ubuntu server on windows, the board cannot be found.
2. Please help me troubleshoot the settings configuration file on ubuntu and see how to configure it correctly
3. The ncs version is v2.9.0

The error message is as follows. I think this is the problem

Kind regards,
Peter.Min

Parents Reply Children
  • Hi Amanda Hsieh,

    log as follows

    // 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": "linux",
        "osVersion": "#141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025",
        "osKernel": "5.15.0-131-generic",
        "vscode": "1.96.4",
        "node": "v20.18.1",
        "name": "Ubuntu",
        "id": "ubuntu",
        "version": "22.04.5 LTS (Jammy Jellyfish)",
        "versionId": "22.04"
      },
      "system": {
        "date": "2025-02-08T01:14:06.160Z",
        "vscodeRoot": "/home/ubuntu/.vscode-server/cli/servers/Stable-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:32",
        "osUptime": "00:07:37",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "hello_world [SSH: 192.168.3.11]",
        "workspaceFile": null,
        "folders": [
          "/home/ubuntu/ncs/v2.9.0/peter/hello_world"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/home/ubuntu/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/home/ubuntu/ncs/v2.9.0/peter/hello_world",
          "uri": "/home/ubuntu/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/home/ubuntu/ncs/toolchains/b620d30767"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/SEGGER/JLink/JLinkExe": "7.94e",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/home/ubuntu/ncs/toolchains/b620d30767/cmake": null,
        "/usr/bin/python3": "3.10.12",
        "/usr/bin/git": "2.34.1",
        "arm-gdbPath": "not found",
        "riscv-gdbPath": "not found"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-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.94e",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "/home/ubuntu",
          "PATH": "/home/ubuntu/ncs/toolchains/b620d30767:/home/ubuntu/ncs/toolchains/b620d30767/mingw64/bin:/home/ubuntu/ncs/toolchains/b620d30767/bin:/home/ubuntu/ncs/toolchains/b620d30767/opt/bin:/home/ubuntu/ncs/toolchains/b620d30767/opt/bin/Scripts:/home/ubuntu/ncs/toolchains/b620d30767/opt/nanopb/generator-bin:/home/ubuntu/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin:/home/ubuntu/ncs/toolchains/b620d30767/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/ubuntu/.vscode-server/cli/servers/Stable-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/.vscode-server/cli/servers/Stable-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
          "ZEPHYR_BASE": "/home/ubuntu/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/home/ubuntu/ncs/toolchains/b620d30767/opt/zephyr-sdk",
          "PYTHONPATH": "/home/ubuntu/ncs/toolchains/b620d30767/opt/bin:/home/ubuntu/ncs/toolchains/b620d30767/opt/bin/Lib:/home/ubuntu/ncs/toolchains/b620d30767/opt/bin/Lib/site-packages",
          "USER": "ubuntu"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/ubuntu",
          "PATH": "/home/ubuntu/.vscode-server/cli/servers/Stable-cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
          "USER": "ubuntu"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": "",
            "manager": {
              "installDirectory": "/home/ubuntu/ncs/toolchains"
            }
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "menuconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": true,
            "recover": true
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": "${env:HOME}/.nrfutil"
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          },
          "deviceProvider": "nrfjprog"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.1.127",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-kconfig-2024.12.13",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.23.6",
          "ms-vscode.js-debug": "1.96.0",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "Natizyskunk.sftp": "1.16.3",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    

    Kind regards,
    Peter.Min

  • Hi, 

    May I know the exact steps for how you set up his environment?

    It seems you somehow installed a toolchain bundle that belongs to Windows and not Linux. The correct toolchain bundle ID for NCS 2.9.0 on Linux is b77d8c1312 instead of b620d30767.

    Perhaps just removing and reinstalling the toolchain fixes this issue, but it would be nice to know how was it installed in the first place.

    -Amanda H.

  • Hi Amanda Hsieh,

    1. I installed the nRF Connect SDK on Ubuntu Server for multiple ubuntu users
    2. I create a new directory to Add example hello_world but Add build configuration is gray, click no response, how to solve

    The installation directory is:

    /opt/ncs/toolchains/b77d8c1312

    /opt/ncs/v2.9.0


    3. See the following log for more information:

    // 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": "linux",
        "osVersion": "#53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2",
        "osKernel": "6.8.0-52-generic",
        "vscode": "1.97.2",
        "node": "v20.18.1",
        "name": "Ubuntu",
        "id": "ubuntu",
        "version": "22.04.5 LTS (Jammy Jellyfish)",
        "versionId": "22.04"
      },
      "system": {
        "date": "2025-02-19T09:33:32.025Z",
        "vscodeRoot": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:04:53",
        "osUptime": "00:09:18",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "ncs [SSH: 192.168.3.11]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs"
        ]
      },
      "sdks": [],
      "apps": [],
      "toolchains": [],
      "connectedDevices": [],
      "tools": {},
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-device",
          "jlinkInfo": {
            "name": "JlinkARM",
            "version": "JLink_V7.94i",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "/home/ubuntu",
          "PATH": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads:/opt/ncs/downloads",
          "USER": "ubuntu"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/ubuntu",
          "PATH": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads:/opt/ncs/downloads",
          "USER": "ubuntu"
        }
      },
      "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": "/opt/ncs"
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.1.127",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-kconfig-2024.12.13",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.23.6",
          "ms-vscode.js-debug": "1.97.1",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    

    root@ubuntu-Inspiron:/home/ubuntu# which nrfutil
    /opt/ncs/downloads/nrfutil
    root@ubuntu-Inspiron:/home/ubuntu# ls /opt/ncs
    downloads  tmp  toolchains  v2.9.0
    root@ubuntu-Inspiron:/home/ubuntu# ls /opt/ncs/downloads
    code_1.97.0-1738713410_amd64.deb  id_rsa.pub                    ncs-toolchain-x86_64-linux-b77d8c1312.tar.gz  nrfconnect-5.1.0-x86_64.appimage  nrfutil     v2.9.0.zip
    id_rsa                            JLink_Linux_V794i_x86_64.deb  nrf-command-line-tools_10.24.2_amd64.deb      nrf-udev_1.0.1-all.deb            readme.txt
    root@ubuntu-Inspiron:/home/ubuntu# ls /opt/ncs/toolchains/
    b77d8c1312  toolchains.json
    root@ubuntu-Inspiron:/home/ubuntu# ls -al /opt
    total 20
    drwxrwxrwx  5 root   root   4096  2月 19 14:45 .
    drwxr-xr-x 20 root   root   4096  2月 12 13:14 ..
    drwxrwxrwx  6 ubuntu ubuntu 4096  2月 19 15:20 ncs
    drwxrwxrwx  7 root   root   4096  2月 19 14:54 nrf-command-line-tools
    drwxrwxrwx  3 root   root   4096  2月 19 14:54 SEGGER
    root@ubuntu-Inspiron:/home/ubuntu# ls -al /opt/ncs/toolchains
    total 16
    drwxrwxrwx  3 ubuntu ubuntu 4096  2月 19 15:19 .
    drwxrwxrwx  6 ubuntu ubuntu 4096  2月 19 15:20 ..
    drwxrwxrwx 13 ubuntu ubuntu 4096  2月 19 15:19 b77d8c1312
    -rwxrwxrwx  1 ubuntu ubuntu  260  2月 19 15:19 toolchains.json
    root@ubuntu-Inspiron:/home/ubuntu# ls -al /opt/ncs/v2.9.0
    total 44
    drwxrwxrwx 10 ubuntu ubuntu 4096 12月 31 12:08 .
    drwxrwxrwx  6 ubuntu ubuntu 4096  2月 19 15:20 ..
    drwxrwxrwx  3 ubuntu ubuntu 4096 12月 31 11:27 bootloader
    -rwxrwxrwx  1 ubuntu ubuntu 1887 12月 13 16:05 branch.sh
    drwxrwxrwx 11 ubuntu ubuntu 4096 12月 31 11:44 modules
    drwxrwxrwx 25 ubuntu ubuntu 4096 12月 31 10:59 nrf
    drwxrwxrwx 22 ubuntu ubuntu 4096 12月 31 11:32 nrfxlib
    drwxrwxrwx  3 ubuntu ubuntu 4096 12月 31 11:38 test
    drwxrwxrwx  5 ubuntu ubuntu 4096 12月 31 11:44 tools
    drwxrwxrwx  2 ubuntu ubuntu 4096 12月 31 10:59 .west
    drwxrwxrwx 24 ubuntu ubuntu 4096 12月 31 11:58 zephyr
    root@ubuntu-Inspiron:/home/ubuntu# sudo su
    root@ubuntu-Inspiron:/home/ubuntu# ls -al /opt/ncs/v2.9.0
    total 48
    drwxrwxrwx 11 ubuntu ubuntu 4096  2月 19 17:46 .
    drwxrwxrwx  7 ubuntu ubuntu 4096  2月 19 17:47 ..
    drwxrwxrwx  3 ubuntu ubuntu 4096 12月 31 11:27 bootloader
    -rwxrwxrwx  1 ubuntu ubuntu 1887 12月 13 16:05 branch.sh
    drwxrwxrwx 11 ubuntu ubuntu 4096 12月 31 11:44 modules
    drwxrwxrwx 25 ubuntu ubuntu 4096 12月 31 10:59 nrf
    drwxrwxrwx 22 ubuntu ubuntu 4096 12月 31 11:32 nrfxlib
    drwxrwxr-x  4 ubuntu ubuntu 4096  2月 19 17:47 peter
    drwxrwxrwx  3 ubuntu ubuntu 4096 12月 31 11:38 test
    drwxrwxrwx  5 ubuntu ubuntu 4096 12月 31 11:44 tools
    drwxrwxrwx  2 ubuntu ubuntu 4096 12月 31 10:59 .west
    drwxrwxrwx 24 ubuntu ubuntu 4096 12月 31 11:58 zephyr
    root@ubuntu-Inspiron:/home/ubuntu# sudo chmod -R 777 /opt
    root@ubuntu-Inspiron:/home/ubuntu# ls -al /opt/ncs/v2.9.0
    total 48
    drwxrwxrwx 11 ubuntu ubuntu 4096  2月 19 17:46 .
    drwxrwxrwx  7 ubuntu ubuntu 4096  2月 19 17:47 ..
    drwxrwxrwx  3 ubuntu ubuntu 4096 12月 31 11:27 bootloader
    -rwxrwxrwx  1 ubuntu ubuntu 1887 12月 13 16:05 branch.sh
    drwxrwxrwx 11 ubuntu ubuntu 4096 12月 31 11:44 modules
    drwxrwxrwx 25 ubuntu ubuntu 4096 12月 31 10:59 nrf
    drwxrwxrwx 22 ubuntu ubuntu 4096 12月 31 11:32 nrfxlib
    drwxrwxrwx  4 ubuntu ubuntu 4096  2月 19 17:47 peter
    drwxrwxrwx  3 ubuntu ubuntu 4096 12月 31 11:38 test
    drwxrwxrwx  5 ubuntu ubuntu 4096 12月 31 11:44 tools
    drwxrwxrwx  2 ubuntu ubuntu 4096 12月 31 10:59 .west
    drwxrwxrwx 24 ubuntu ubuntu 4096 12月 31 11:58 zephyr
    root@ubuntu-Inspiron:/home/ubuntu# ls -al /opt/ncs/v2.9.0/peter
    total 16
    drwxrwxrwx  4 ubuntu ubuntu 4096  2月 19 17:47 .
    drwxrwxrwx 11 ubuntu ubuntu 4096  2月 19 17:46 ..
    drwxrwxrwx  3 ubuntu ubuntu 4096  2月 19 17:47 hello_world
    drwxrwxrwx  5 ubuntu ubuntu 4096  2月 19 17:47 peripheral_uart
    root@ubuntu-Inspiron:/home/ubuntu# reboot
    

    Kind regards,
    Peter.Min

  • The SDK and ToolChain are empty. It seems they are not installed. Please install them and the nRF Connect for Visual Studio Code Extension Pack.

Related