NCS sample peripheral_power_profiling gives build warning

Using NCS SDK v2.1.0 

Example Project: nrf/samples/bluetooth/peripheral_power_profiling

Building the example project gives build warnings:

Could you help me understand the second warning and how to fix it.

I am new to the nRF Connect SDK so I am trying to understand how the kconfig files work and all the dependencies. It appears this build has defined the acceptable range for this value as 1...0 which is non-sensical. The acceptable range is defined in Kconfig to be 1...BT_L2CAP_TX_MTU but I don't know where this value (BT_L2CAP_TX_MTU) comes from.

Parents
  • Hi Michael,

    As you can see from .config file located in the your_application_folder\build\zephyr, the value of BT_L2CAP_TX_MTU is set to 65, i.e. CONFIG_BT_L2CAP_TX_MTU=65. You get this value because CONFIG_BT_SMP is enabled in prj.conf. You can find all possible values for CONFIG_BT_L2CAP_TX_MTU in the KConfig documentation.

    I have tested the peripheral power profiling sample using nRF52840dk_nrf52840 as the build target, but I could not reproduce your issue. In other words, I did not get the warning related to BT_POWER_PROFILING_DATA_LENGTH.

    Peripheral power profiling sample supports several build targets. Could you specify which build target did you use? Is there any difference when you use other build targets?

    Best regards,
    Dejan

Reply
  • Hi Michael,

    As you can see from .config file located in the your_application_folder\build\zephyr, the value of BT_L2CAP_TX_MTU is set to 65, i.e. CONFIG_BT_L2CAP_TX_MTU=65. You get this value because CONFIG_BT_SMP is enabled in prj.conf. You can find all possible values for CONFIG_BT_L2CAP_TX_MTU in the KConfig documentation.

    I have tested the peripheral power profiling sample using nRF52840dk_nrf52840 as the build target, but I could not reproduce your issue. In other words, I did not get the warning related to BT_POWER_PROFILING_DATA_LENGTH.

    Peripheral power profiling sample supports several build targets. Could you specify which build target did you use? Is there any difference when you use other build targets?

    Best regards,
    Dejan

Children
Related