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
  • Hi, 

    Please provide the Support log via the right top in the Welcome view.

    Regards,
    Amanda H.

  • 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.

  • Hi Amanda Hsieh,

    1. Please help me solve the problem that no Boards found in the Board taget bar when the user ubuntu2 added build configuration, as shown in the following figure:user:ubuntu2

    user:ubuntu2 log:

    // 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-20T09:17:02.849Z",
        "vscodeRoot": "/home/ubuntu2/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:35",
        "osUptime": "01:26:28",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu2]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "/home/ubuntu2/.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/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu2",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/ubuntu2/.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:/home/ubuntu2/.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",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "USER": "ubuntu2"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/ubuntu2",
          "PATH": "/home/ubuntu2/.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",
          "USER": "ubuntu2"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "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": true,
          "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/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "/home/ubuntu2/.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"
        }
      }
    }
    
    


    2. I added two users to the ubuntu server: User 1: ubuntu user 2: Ubuntu 2
    3. I used Remote SSH to log in to ubuntu and ubuntu2 respectively and then tried to compile the hello_world example respectively
    4. User ubuntu can find a Board in the Board taget bar when adding build configuration. However, user ununtu2 found no Boards found in the Board taget bar when adding build configuration

    user:ubuntu 

    user:ubuntu log

    // 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-20T09:24:46.639Z",
        "vscodeRoot": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:49",
        "osUptime": "01:34:12",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "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": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/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:/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",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "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",
          "USER": "ubuntu"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "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": true,
          "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"
        }
      }
    }
    
    

    5. Through my tests, I found that when the owner of the /opt/ncs directory was changed to user ubuntu, the user ubuntu could find boards during compilation, while the user Ubuntu 2 compiled was no boards found.

    However, when the owner of the /opt/ncs directory was changed to user Ubuntu 2, no boards found when ubuntu is compiled. The boards can be discovered when Ubuntu 2 is compiled.

    If the owner of the /opt/ncs directory is changed to root, no boards found is displayed for both ubuntu and ubuntu2 Board target users

    6. How do I solve this problem so that both ubuntu and user ubuntu2 can find boards when compiling?

    Kind regards,
    Peter.Min

Reply
  • Hi Amanda Hsieh,

    1. Please help me solve the problem that no Boards found in the Board taget bar when the user ubuntu2 added build configuration, as shown in the following figure:user:ubuntu2

    user:ubuntu2 log:

    // 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-20T09:17:02.849Z",
        "vscodeRoot": "/home/ubuntu2/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:35",
        "osUptime": "01:26:28",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu2]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "/home/ubuntu2/.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/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu2",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/ubuntu2/.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:/home/ubuntu2/.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",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "USER": "ubuntu2"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/ubuntu2",
          "PATH": "/home/ubuntu2/.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",
          "USER": "ubuntu2"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "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": true,
          "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/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "/home/ubuntu2/.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"
        }
      }
    }
    
    


    2. I added two users to the ubuntu server: User 1: ubuntu user 2: Ubuntu 2
    3. I used Remote SSH to log in to ubuntu and ubuntu2 respectively and then tried to compile the hello_world example respectively
    4. User ubuntu can find a Board in the Board taget bar when adding build configuration. However, user ununtu2 found no Boards found in the Board taget bar when adding build configuration

    user:ubuntu 

    user:ubuntu log

    // 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-20T09:24:46.639Z",
        "vscodeRoot": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:49",
        "osUptime": "01:34:12",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "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": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/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:/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",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "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",
          "USER": "ubuntu"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "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": true,
          "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"
        }
      }
    }
    
    

    5. Through my tests, I found that when the owner of the /opt/ncs directory was changed to user ubuntu, the user ubuntu could find boards during compilation, while the user Ubuntu 2 compiled was no boards found.

    However, when the owner of the /opt/ncs directory was changed to user Ubuntu 2, no boards found when ubuntu is compiled. The boards can be discovered when Ubuntu 2 is compiled.

    If the owner of the /opt/ncs directory is changed to root, no boards found is displayed for both ubuntu and ubuntu2 Board target users

    6. How do I solve this problem so that both ubuntu and user ubuntu2 can find boards when compiling?

    Kind regards,
    Peter.Min

Children
  • peter.min said:
    If the owner of the /opt/ncs directory is changed to root, no boards found is displayed for both ubuntu and ubuntu2 Board target users

    Maybe you can set the permission to 777 for all users. If you still have permission issues on Ubuntu, please contact your IT.

  • Hi Amanda Hsieh,

    1. I have changed the permission of directory /opt/ncs to 777, but the following problem still occurs: no boards found is displayed for both ubuntu and ubuntu2 Board target users

    user:ubuntu

    user:ubuntu

    // 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-21T01:23:46.497Z",
        "vscodeRoot": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:31",
        "osUptime": "00:10:05",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "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": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/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:/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",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "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",
          "USER": "ubuntu"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "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": true,
          "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"
        }
      }
    }
    
    

    user:ubuntu2

    user:ubuntu2

    // 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-21T01:28:27.111Z",
        "vscodeRoot": "/home/ubuntu2/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:29",
        "osUptime": "00:14:46",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu2]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "/home/ubuntu2/.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/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu2",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/ubuntu2/.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:/home/ubuntu2/.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",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "USER": "ubuntu2"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/ubuntu2",
          "PATH": "/home/ubuntu2/.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",
          "USER": "ubuntu2"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "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": true,
          "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/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "/home/ubuntu2/.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"
        }
      }
    }
    
    

    The IT you're talking about is me

    3. Please feedback this problem to the developer to see if there is a solution.

    Kind regards,
    Peter.Min

  • Hi Amanda Hsieh,

    any update?

    Kind regards,
    Peter.Min

  • Is there a reason why it is set as the following figure? 


Related