This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

app_ZDebugB0.conf of nrf_desktop in NCS

Hi all:

About with the nrf_desktop example in NCS ,

would like to modify the CONFIG_BT_HIDS_MAX_CLIENT_COUNT to '2' ,

so I add below command at "app_ZDebugB0.conf"

CONFIG_BT_HIDS_MAX_CLIENT_COUNT=2

But when I use Serrger_Embeded_Studio to open project ,it always shows "create_nordic_project.py failed".

Could  I write this command at "app_ZDebugB0.conf"? or another file?

condition:

nrf connect SDK 1.7.0

board name:nrf52kbd_nrf52832

project: nrf_desktop

best regards,

Joe

  • Hi,

    I will look into it and get back to you tomorrow.

    Regards,

    PK

  • Hi,

    Could you select the 'OK' when this error occurs and show me what appears in the Output Console?

  • issue.pdf

    Hi PK:

    please refer attached file.

    When I select 'ok' ,the "error: cmake failed" was showed in Output Console.

    because I want two host can connect to my device(not in the same time) ,I modify the CONFIG_BT_HIDS_MAX_CLIENT_COUNT to "2". 

  • Hi,

    Thank you. Also, In the output window that you shared, 

    Please change this "Tasks" to output and kindly share that screen too.

  • the output as below,

    Creating solution nrf_desktop.emProject
    C:/ncs/v1.7.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf52kbd_nrf52832 -DBOARD_DIR=C:\ncs\v1.7.0\nrf\boards\arm\nrf52kbd_nrf52832 -BC:\ncs\v1.7.0\nrf\applications\nrf_desktop\build_nrf52kbd_nrf52832 -SC:\ncs\v1.7.0\nrf\applications\nrf_desktop -DNCS_TOOLCHAIN_VERSION=1.7.0 -DCMAKE_BUILD_TYPE=ZDebugB0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\ncs\v1.7.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
    -- Application: C:/ncs/v1.7.0/nrf/applications/nrf_desktop
    -- Zephyr version: 2.6.99 (C:/ncs/v1.7.0/zephyr), build: v2.6.99-ncs1
    -- Found Python3: C:/ncs/v1.7.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
    -- Board: nrf52kbd_nrf52832
    -- Cache files will be written to: C:\Users\User\AppData\Local/.cache/zephyr
    -- Found dtc: C:/ncs/v1.7.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:/ncs/v1.7.0/toolchain/opt)
    -- Found BOARD.dts: C:/ncs/v1.7.0/nrf/boards/arm/nrf52kbd_nrf52832/nrf52kbd_nrf52832.dts
    -- Found devicetree overlay: C:/ncs/v1.7.0/nrf/applications/nrf_desktop/configuration/nrf52kbd_nrf52832/dts.overlay
    -- Generated zephyr.dts: C:/ncs/v1.7.0/nrf/applications/nrf_desktop/build_nrf52kbd_nrf52832/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/ncs/v1.7.0/nrf/applications/nrf_desktop/build_nrf52kbd_nrf52832/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/ncs/v1.7.0/nrf/applications/nrf_desktop/build_nrf52kbd_nrf52832/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/ncs/v1.7.0/nrf/applications/nrf_desktop/build_nrf52kbd_nrf52832/zephyr/dts.cmake
    Parsing C:/ncs/v1.7.0/nrf/applications/nrf_desktop/Kconfig
    Loaded configuration 'C:/ncs/v1.7.0/nrf/boards/arm/nrf52kbd_nrf52832/nrf52kbd_nrf52832_defconfig'
    Merged configuration 'configuration/nrf52kbd_nrf52832/app_ZDebugB0.conf'
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base): C:/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.7.0 for building. (C:/ncs/v1.7.0/toolchain/cmake)

    warning: BT_HIDS_MAX_CLIENT_COUNT (defined at
    C:/ncs/v1.7.0/nrf\subsys\bluetooth\services\Kconfig.hids:17) was assigned the value '2' but got the
    value '1'. See
    docs.zephyrproject.org/.../CONFIG_BT_HIDS_MAX_CLIENT_COUNT.html and/or
    look up BT_HIDS_MAX_CLIENT_COUNT 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: user value 2 on the int symbol BT_HIDS_MAX_CLIENT_COUNT (defined at C:/ncs/v1.7.0/nrf\subsys\bluetooth\services\Kconfig.hids:17) ignored due to being outside the active range ([1, 1]) -- falling back on defaults

    error: Aborting due to Kconfig warnings

    CMake Error at C:/ncs/v1.7.0/zephyr/cmake/kconfig.cmake:268 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake:554 (include)
    C:/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:52 (find_package)

    error: cmake failed
    create_nordic_project.py failed (1)

Related