central_multilink nrf sdk v2.02 zephyr no source files -missing compile_commands.json

Good day

Im trying out the central multilink BLE example on sdk 2.02 with VS Code zephyr. After adding the example, under source file there is a warning stating

"missing compile_commands.json" click to regenerate.

I looked in the sample directory and the SRC files are there, any reason it is not pulling through to the workspace?

thanks a mil

Parents
  • Hi Melt,

    Which board are you trying on? Could you attach a screenshot of the error message that comes up or any logs that are also generated?

    Best Regards,

    Priyanka

  • hello Priyana

    Its the default app and board. in some of the examples there are no main.c files pulled through to the workspace even though I can find them in the Zephyr directory


    Building central_multilink
    west build --build-dir c:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink\build c:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/meltb/ncs/v2.0.2/zephyr/samples/bluetooth/central_multilink
    -- Cache files will be written to: C:/Users/meltb/ncs/v2.0.2/zephyr/.cache
    -- Zephyr version: 3.0.99 (C:/Users/meltb/ncs/v2.0.2/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.14.1 (C:/Users/meltb/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
    -- Found dtc: C:/Users/meltb/ncs/toolchains/v2.0.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: zephyr 0.14.1 (C:/Users/meltb/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/Users/meltb/ncs/v2.0.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/Users/meltb/ncs/v2.0.2/zephyr/samples/bluetooth/central_multilink/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Users/meltb/ncs/v2.0.2/zephyr/samples/bluetooth/central_multilink/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/Users/meltb/ncs/v2.0.2/zephyr/samples/bluetooth/central_multilink/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/Users/meltb/ncs/v2.0.2/zephyr/samples/bluetooth/central_multilink/build/zephyr/dts.cmake

    warning: BT_MAX_CONN (defined at C:\Users\meltb\ncs\v2.0.2\nrf\subsys\bluetooth\Kconfig:14,
    C:\Users\meltb\ncs\v2.0.2\nrf\subsys\bluetooth\rpc\Kconfig:170, c:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink\build\subsys\bluetooth\Kconfig:115) was
    assigned the value '62' but got the value '1'. See
    docs.zephyrproject.org/.../kconfig.html and/or look up BT_MAX_CONN in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


    warning: BT_PRIVACY (defined at C:\Users\meltb\ncs\v2.0.2\zephyr\subsys\bluetooth\host\Kconfig:322,
    c:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink\build\subsys\bluetooth\host\Kconfig:322) was assigned the value 'y' but got the value 'n'. Check these
    unsatisfied dependencies: ((BT_SMP && BT_CONN && BT_HCI_HOST && BT_RPC_STACK) || (BT_SMP && BT_CONN
    && BT_HCI_HOST && BT_HCI && BT)) (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up BT_PRIVACY in the
    menuconfig/guiconfig interface. The AppliParsing C:/Users/meltb/ncs/v2.0.2/zephyr/samples/bluetooth/central_multilink/Kconfig
    Loaded configuration 'C:/Users/meltb/ncs/v2.0.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'c:/Users/meltb/ncs/v2.0.2/zephyr/samples/bluetooth/central_multilink/prj.conf'
    cation Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


    warning: user value 62 on the int symbol BT_MAX_CONN (defined at C:\Users\meltb\ncs\v2.0.2\nrf\subsys\bluetooth\Kconfig:14, C:\Users\meltb\ncs\v2.0.2\nrf\subsys\bluetooth\rpc\Kconfig:170, c:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink\build\subsys\bluetooth\Kconfig:115) ignored due to being outside the active range ([1, 20]) -- falling back on defaults

    error: Aborting due to Kconfig warnings

    CMake Error at C:\Users\meltb\ncs\v2.0.2\zephyr\cmake\modules\kconfig.cmake:290 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:\Users\meltb\ncs\v2.0.2\zephyr\cmake\modules\zephyr_default.cmake:121 (include)
    C:\Users\meltb\ncs\v2.0.2\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:51 (include)
    C:\Users\meltb\ncs\v2.0.2\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:81 (include_boilerplate)
    c:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink\build\CMakeLists.txt:4 (find_package)


    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\Users\meltb\ncs\toolchains\v2.0.2\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\Users\meltb\ncs\toolchains\v2.0.2\opt\bin\python.exe' '-Bc:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink\build' '-Sc:\Users\meltb\ncs\v2.0.2\zephyr\samples\bluetooth\central_multilink' -GNinja

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

  • Hi,

    This looks like an installation issue. Are you able to program on other samples?

    -Priyanka

Reply Children
  • Hi  Melt,

    Sorry for the delayed response. Could you attach the Support Information?

    -Priyanka

  • sure no problem 

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.

    For help and support, visit the Nordic DevZone at devzone.nordicsemi.com/.

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Pro",
        "osKernel": "10.0.19044",
        "vscode": "1.70.2",
        "electron": "18.3.5",
        "node": "v16.13.2"
      },
      "system": {
        "date": "2022-09-07T13:57:32.603Z",
        "vscodeRoot": "c:\\Users\\meltb\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:01:14",
        "osUptime": "03:06:26",
        "cpu": {
          "model": "Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz",
          "speed": "1800 MHz",
          "count": 4
        },
        "memory": {
          "total": "7.89 GB",
          "free": "0.60 GB"
        }
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1661931679883",
        "folders": [
          "d:\\my_vscode_apps\\neopixel_pca10059\\led_ws2812_52833",
          "d:\\my_vscode_apps\\central_multilink_pca10056\\central_multilink_pca10056"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.7.242",
            "path": "c:\\Users\\meltb\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.7.242-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.7.21",
            "path": "c:\\Users\\meltb\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.7.21",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2022.7.36",
            "path": "c:\\Users\\meltb\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2022.7.36",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2022.7.24",
            "path": "c:\\Users\\meltb\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2022.7.24",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.6.2",
          "ms-vscode.cpptools": "1.12.4",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.15",
          "ms-vscode.js-debug": "1.70.0",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "cschlosser.doxdocgen": "1.4.0",
          "espressif.esp-idf-extension": "1.5.0",
          "jeff-hykin.better-cpp-syntax": "1.15.19",
          "ms-python.python": "2022.12.1",
          "ms-python.vscode-pylance": "2022.8.50",
          "ms-toolsai.jupyter": "2022.7.1102252217",
          "ms-toolsai.jupyter-keymap": "1.0.0",
          "ms-toolsai.jupyter-renderers": "1.0.9",
          "ms-vscode.cpptools-extension-pack": "1.2.0",
          "ms-vscode.cpptools-themes": "1.0.0",
          "particle.particle-vscode-core": "1.15.2",
          "particle.particle-vscode-pack": "1.15.2",
          "particle.particle-vscode-snippets": "1.15.2",
          "particle.particle-vscode-theme": "1.15.2",
          "platformio.platformio-ide": "2.5.2",
          "trond-snekvik.gnu-mapfiles": "1.1.0"
        }
      },
      "tools": {
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.14.1",
        "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.66a",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.17.0",
        "nrfutil": "Not found",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\Scripts\\west.exe": "0.13.1",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\python.exe": "3.8.2",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\gperf.exe": "3.1",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\gn.exe": "2055",
        "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
      },
      "sdks": [
        {
          "version": "2.0.2",
          "path": "c:\\Users\\meltb\\ncs\\v2.0.2"
        }
      ],
      "toolchains": [
        {
          "version": "2.0.2",
          "path": {
            "$mid": 1,
            "fsPath": "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2",
            "_sep": 1,
            "path": "/C:/Users/meltb/ncs/toolchains/v2.0.2",
            "scheme": "file"
          }
        }
      ],
      "connectedDevices": [],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.0.2}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.0.2}"
          },
          "ozonePath": "",
          "applications": [
            "d:\\my_vscode_apps\\central_multilink_pca10056\\central_multilink_pca10056"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "guiconfig"
          },
          "welcome": {
            "showOnStartup": false
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": true,
          "taskBindings": {},
          "debugging": {
            "backend": "Cortex-Debug"
          },
          "activeAppFollowActiveEditor": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\meltb",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\meltb",
          "Path": "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\mingw64\\bin;c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\mingw64\\libexec\\git-core;c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin;c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\arm-zephyr-eabi\\bin;c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Go\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\meltb\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\meltb\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\Users\\meltb\\go\\bin;C:\\Users\\meltb\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Microsoft Office\\root\\Client",
          "ZEPHYR_BASE": "c:\\Users\\meltb\\ncs\\v2.0.2\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin;c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\Lib;c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\meltb",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\meltb",
          "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Go\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\meltb\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\meltb\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\Users\\meltb\\go\\bin;C:\\Users\\meltb\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Microsoft Office\\root\\Client",
          "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Go\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\meltb\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\meltb\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\Users\\meltb\\go\\bin;C:\\Users\\meltb\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Microsoft Office\\root\\Client"
        },
        "toolchainPath": "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2",
        "toolchainBinPath": "c:\\Users\\meltb\\ncs\\toolchains\\v2.0.2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.0.2"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": "nRF Connect"
      }
    }


  • Hi,
    Thanks for the information. This could be because of the default configurations. Could you try to make the changes mentioned in this ticket? The number of connections is limited to 20 for our softdevice controller.

    -Priyanka

Related