Increasing MTU ATT to 1020 bytes generates a CMake error

Hi,

Using the central and peripheral uart samples I have found the following CMake error when trying to increase the MTU ATT to 1020 bytes.

The added lines to the prj.conf are:

CONFIG_BT_BUF_ACL_RX_SIZE=1024
CONFIG_BT_BUF_ACL_TX_SIZE=1024
CONFIG_BT_L2CAP_TX_MTU=1020
#CONFIG_BT_CTLR_DATA_LENGTH_MAX=1024

The CMake error as follows:

CMake Error at C:/v1.8.0/v1.8.0/zephyr/cmake/kconfig.cmake:270 (message):
  command failed with return code: 1

Any help?

Thanks

Parents
  • Hi Armand.

    If you scroll up in the build log you should see a text like this:

    warning: user value 1024 on the int symbol BT_BUF_ACL_TX_SIZE (defined at C:\ncs\v1.8.0\zephyr\subsys\bluetooth\common\Kconfig:7, c:\ncs\v1.8.0\_cust\285777_peripheral_hr\build\subsys\bluetooth\common\Kconfig:7) ignored due to being outside the active range ([27, 251]) -- falling back on defaults
    
    error: Aborting due to Kconfig warnings

    Essentially you have exceeded the maximum value for this configuration parameter, and you need to adjust it accordingly. 

    If you adjust CONFIG_BT_BUF_ACL_TX_SIZE parameter to 251 it should build. 

    Best regards
    Torbjørn

Reply
  • Hi Armand.

    If you scroll up in the build log you should see a text like this:

    warning: user value 1024 on the int symbol BT_BUF_ACL_TX_SIZE (defined at C:\ncs\v1.8.0\zephyr\subsys\bluetooth\common\Kconfig:7, c:\ncs\v1.8.0\_cust\285777_peripheral_hr\build\subsys\bluetooth\common\Kconfig:7) ignored due to being outside the active range ([27, 251]) -- falling back on defaults
    
    error: Aborting due to Kconfig warnings

    Essentially you have exceeded the maximum value for this configuration parameter, and you need to adjust it accordingly. 

    If you adjust CONFIG_BT_BUF_ACL_TX_SIZE parameter to 251 it should build. 

    Best regards
    Torbjørn

Children
Related