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

  • 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

  • Hi  Melt,

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

    -Priyanka

Related