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 Joe,

    As you can see here, 

    joe said:
    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

    The device count assigned is still 1, which may be because you should also set the BT_MAX_CONN. You can refer here regarding the direct dependency.

    What you can do is, enable the CONFIG_BT_HIDS_MAX_CLIENT_COUNT and also set the CONFIG_BT_MAX_CONN to 2.

    Then try building and let me know how it goes Slight smile

    Kind Regards,

    PK

  • Hi PK:

    thanks for your information,

    I add the below commands into app_ZDebugB0.conf,it can solve the "create_nordic_project.py failed"

    CONFIG_BT_HIDS_MAX_CLIENT_COUNT=2
    CONFIG_BT_MAX_CONN=2

    but It appears an error when I build the code.

    It seems I can't set the CONFIG_BT_HIDS_MAX_CLIENT_COUNT or  CONFIG_BT_MAX_CONN to 2.

    I try to  enable CONFIG_BT_HIDS_MAX_CLIENT_COUNT  ,so I add below commands into app_ZDebugB0.conf.

    CONFIG_BT_HIDS=y
    CONFIG_BT_HIDS_MAX_CLIENT_COUNT=2
    CONFIG_BT_MAX_CONN=2

    It appears the same error after building code.

    best regards,

    Joe

  • Hi Joe,

    Try checking the line 23 in ble_passkey.c and line 51 in ble_latency.c in the location nrf/applications/nrf_desktop/src/modules , as shown in the snippet

    There is a line BUILD_ASSERT(CONFIG_BT_MAX_CONN == 1);

    Hope this helps.
    Regards,
    PK
  • Hi PK:

    thanks for your suggestion,

    The error was solved.

    best regards,

    Joe

Related