bt_gatt: Unable to register handle 0x0016 when calling smp_bt_register()

From https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu,  it suggests to call smp_bt_register() for nRF Connect SDK v2.3 or newer. But RTT Viewer shows "<err> bt_gatt: Unable to register handle 0x0016".

The following are log messages of RTT Viewer.

00> *** Booting Zephyr OS build v3.3.99-ncs1 ***
00> Starting Bluetooth Peripheral LBS example before OTA
00> Before calling smp_bt_register()
00> [00:00:00.540,344] <err> bt_gatt: Unable to register handle 0x0016
00> After calling smp_bt_register()
00> Bluetooth initialized
00> Advertising successfully started

Procedures to reproduce this issue are as follows.

1. Unzipping peripheral_lbs.zip to D:\ncs\v2.4.0\nrf\samples\bluetooth folder.

2. cd D:\ncs\v2.4.0\nrf\samples\bluetooth\peripheral_lbs

3. west build -b nrf5340dk_nrf5340_cpuapp

4. west flash

5. Rebooting nRF5340 device and connecting to RTT Viewer.

Parents
  • Hi,

    I see you're using NCS v2.4.0. The blog you mention is quite old now and the samples and modifications are not relevant for anything newer than NCS 2.0.0 at best. I recommend you have a look at the samples at https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples, for instance the smp over bluetooth sample here https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_ble as well as https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html to see how to add DFU support over BLE to your application.

    Let me know if you're able to get the smp_ble sample from the git repository I linked to work in NCS v2.4.0. Currently it is verified to work with v2.3.0 and v2.2.0 depending on the tag you check out from the repo.

    Kind regards,
    Andreas

  • Thanks for your reply! I try to build mcuboot_smp_ble project as you suggested. But it failed to build with a lot of undefined symbols.

    The following are log messages of west build.

    D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble>west build -b nrf5340dk_nrf5340_cpuapp
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (D:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: D:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: D:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (D:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (D:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (D:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: D:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: D:/ncs/v2.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/build/zephyr/dts.cmake
    Parsing D:/ncs/v2.4.0/zephyr/Kconfig
    Loaded configuration 'D:/ncs/v2.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf'

    warning: BT_CTLR_DATA_LENGTH_MAX (defined at
    D:/ncs/v2.4.0/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:124,
    D:/ncs/v2.4.0/nrf\subsys\bluetooth\services\fast_pair/Kconfig.fast_pair:95,
    subsys/bluetooth\controller/Kconfig:439) was assigned the value '251' but got the value ''. Check
    these unsatisfied dependencies: (NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP || (BT_FAST_PAIR_GATT_SERVICE
    && BT_FAST_PAIR && BT) || (BT_CTLR_DATA_LENGTH && BT_CONN && BT_CTLR && BT_HCI && BT)) (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    BT_CTLR_DATA_LENGTH_MAX 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: MCUMGR (defined at subsys/mgmt/mcumgr/Kconfig:5) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: ZCBOR (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up MCUMGR 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.


    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:3: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_UART

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:4: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_CMD_IMG_MGMT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:5: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_CMD_OS_MGMT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:13: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_BT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:14: warning: attempt to assign the value 'n' to the undefined symbol MCUMGR_SMP_BT_AUTHEN

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:15: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_BT_CONN_PARAM_CONTROL

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:29: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_REASSEMBLY_BT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:30: warning: attempt to assign the value '2475' to the undefined symbol MCUMGR_BUF_SIZE

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:31: warning: attempt to assign the value 'y' to the undefined symbol OS_MGMT_MCUMGR_PARAMS

    error: Aborting due to Kconfig warnings

    CMake Error at D:/ncs/v2.4.0/zephyr/cmake/modules/kconfig.cmake:339 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    D:/ncs/v2.4.0/nrf/cmake/modules/kconfig.cmake:29 (include)
    D:/ncs/v2.4.0/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
    D:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    D:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:5 (find_package)


    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'D:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\ncs\toolchains\31f f4403e35\opt\bin\python.exe' '-BD:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp '-SD:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble'

    Procedures to reproduce this issue are as follows.
    1. Unzipping mcuboot_smp_ble.zip to D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr folder.
    2. cd D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble
    3. west build -b nrf5340dk_nrf5340_cpuapp

Reply
  • Thanks for your reply! I try to build mcuboot_smp_ble project as you suggested. But it failed to build with a lot of undefined symbols.

    The following are log messages of west build.

    D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble>west build -b nrf5340dk_nrf5340_cpuapp
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (D:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: D:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: D:/ncs/v2.4.0/zephyr/.cache
    -- Zephyr version: 3.3.99 (D:/ncs/v2.4.0/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (D:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (D:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: D:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: D:/ncs/v2.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/build/zephyr/dts.cmake
    Parsing D:/ncs/v2.4.0/zephyr/Kconfig
    Loaded configuration 'D:/ncs/v2.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf'

    warning: BT_CTLR_DATA_LENGTH_MAX (defined at
    D:/ncs/v2.4.0/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:124,
    D:/ncs/v2.4.0/nrf\subsys\bluetooth\services\fast_pair/Kconfig.fast_pair:95,
    subsys/bluetooth\controller/Kconfig:439) was assigned the value '251' but got the value ''. Check
    these unsatisfied dependencies: (NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP || (BT_FAST_PAIR_GATT_SERVICE
    && BT_FAST_PAIR && BT) || (BT_CTLR_DATA_LENGTH && BT_CONN && BT_CTLR && BT_HCI && BT)) (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    BT_CTLR_DATA_LENGTH_MAX 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: MCUMGR (defined at subsys/mgmt/mcumgr/Kconfig:5) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: ZCBOR (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up MCUMGR 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.


    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:3: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_UART

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:4: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_CMD_IMG_MGMT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:5: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_CMD_OS_MGMT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:13: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_BT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:14: warning: attempt to assign the value 'n' to the undefined symbol MCUMGR_SMP_BT_AUTHEN

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:15: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_BT_CONN_PARAM_CONTROL

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:29: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_REASSEMBLY_BT

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:30: warning: attempt to assign the value '2475' to the undefined symbol MCUMGR_BUF_SIZE

    D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble/prj.conf:31: warning: attempt to assign the value 'y' to the undefined symbol OS_MGMT_MCUMGR_PARAMS

    error: Aborting due to Kconfig warnings

    CMake Error at D:/ncs/v2.4.0/zephyr/cmake/modules/kconfig.cmake:339 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    D:/ncs/v2.4.0/nrf/cmake/modules/kconfig.cmake:29 (include)
    D:/ncs/v2.4.0/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
    D:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    D:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:5 (find_package)


    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'D:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\ncs\toolchains\31f f4403e35\opt\bin\python.exe' '-BD:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp '-SD:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble'

    Procedures to reproduce this issue are as follows.
    1. Unzipping mcuboot_smp_ble.zip to D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr folder.
    2. cd D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble
    3. west build -b nrf5340dk_nrf5340_cpuapp

Children
  • Hi,

    Please use the insert code function when attaching build logs. It makes it far easier to navigate your case if you do so. And also thank you for providing steps to recreate what you see unprompted. That helps speed up the process.

    snowuyl said:
    Thanks for your reply! I try to build mcuboot_smp_ble project as you suggested. But it failed to build with a lot of undefined symbols.

    This is due to the sample not being compatible with NCS v2.4.0 as I mentioned, which is also the reason for why I supplied you with the second bluetooth smp sample from the zephyr, sample repository:) The error messages you see is due to there being changes in between version and due to missing configurations.

    https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html 

    The zephyr sample I mentioned works out of the box for nRF5340DK and in NCS v2.4.0. What you need to do know is to use this knowledge and these two samples to create your application. Everything you have to make it work is mentioned here. 

    1. You can base your application on the Zephyr sample alone
    2. You can use the Zephyr sample to cross examine mcuboot_smp_ble sample from the github repository and see what requirements you need to make it work.

      1. For instance, one step to make mcuboot_smp_ble to work is to copy the contents of prj.conf and overlay-bt.conf from the zephyr sample and paste it in mcuboot_smp_ble's prj.conf. 

    2a. will leave you with something like the following configuration. Do note that this configuration is in no way optimal, but it shows how you can easily use something from one sample, to make another sample compile, build and test for you to continue debugging and developing.

    # CONFIG_BOOTLOADER_MCUBOOT=y
    # CONFIG_MCUMGR=y
    # CONFIG_MCUMGR_SMP_UART=y
    # CONFIG_MCUMGR_CMD_IMG_MGMT=y
    # CONFIG_MCUMGR_CMD_OS_MGMT=y
    
    # CONFIG_BT=y
    # CONFIG_BT_PERIPHERAL=y
    # CONFIG_BT_CENTRAL=y
    # #CONFIG_BT_DEVICE_NAME="Zep"
    
    # # Enable the Bluetooth mcumgr transport (unauthenticated).
    # CONFIG_MCUMGR_SMP_BT=y
    # CONFIG_MCUMGR_SMP_BT_AUTHEN=n
    # CONFIG_MCUMGR_SMP_BT_CONN_PARAM_CONTROL=y
    
    
    # CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304
    # CONFIG_FLASH=y
    
    # # Allow for large Bluetooth data packets.
    # CONFIG_BT_L2CAP_TX_MTU=498
    # CONFIG_BT_BUF_ACL_RX_SIZE=502
    # CONFIG_BT_BUF_ACL_TX_SIZE=502
    # CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    
    # # Enable the mcumgr Packet Reassembly feature over Bluetooth and its configuration dependencies.
    # # MCUmgr buffer size is optimized to fit one SMP packet divided into five Bluetooth Write Commands,
    # # transmitted with the maximum possible MTU value: 498 bytes.
    # CONFIG_MCUMGR_SMP_REASSEMBLY_BT=y
    # CONFIG_MCUMGR_BUF_SIZE=2475
    # CONFIG_OS_MGMT_MCUMGR_PARAMS=y
    # CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
    
    
    
    ################# CONTENT OF overlay-bt-conf FROM ZEPHYR SAMPLE ##############################
    CONFIG_BT=y
    CONFIG_BT_PERIPHERAL=y
    
    # Allow for large Bluetooth data packets.
    CONFIG_BT_L2CAP_TX_MTU=498
    CONFIG_BT_BUF_ACL_RX_SIZE=502
    CONFIG_BT_BUF_ACL_TX_SIZE=502
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    
    # Enable the Bluetooth mcumgr transport (unauthenticated).
    CONFIG_MCUMGR_TRANSPORT_BT=y
    CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN=n
    CONFIG_MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL=y
    
    # Enable the Shell mcumgr transport.
    CONFIG_BASE64=y
    CONFIG_SHELL=y
    CONFIG_SHELL_BACKEND_SERIAL=y
    CONFIG_MCUMGR_TRANSPORT_SHELL=y
    
    # Enable the mcumgr Packet Reassembly feature over Bluetooth and its configuration dependencies.
    # MCUmgr buffer size is optimized to fit one SMP packet divided into five Bluetooth Write Commands,
    # transmitted with the maximum possible MTU value: 498 bytes.
    CONFIG_MCUMGR_TRANSPORT_BT_REASSEMBLY=y
    CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE=2475
    CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS=y
    CONFIG_MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE=4608
    
    # Enable the LittleFS file system.
    CONFIG_FILE_SYSTEM=y
    CONFIG_FILE_SYSTEM_LITTLEFS=y
    
    # Enable file system commands
    CONFIG_MCUMGR_GRP_FS=y
    
    # Enable the storage erase command.
    CONFIG_MCUMGR_GRP_ZBASIC=y
    CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE=y
    
    # Disable Bluetooth ping support
    CONFIG_BT_CTLR_LE_PING=n
    
    # Disable shell commands that are not needed
    CONFIG_CLOCK_CONTROL_NRF_SHELL=n
    CONFIG_DEVICE_SHELL=n
    CONFIG_DEVMEM_SHELL=n
    CONFIG_FLASH_SHELL=n
    ################## CONTENT OF prj.conf FROM ZEPHYR SAMPLE  #######################################
    
    # Enable MCUmgr and dependencies.
    CONFIG_NET_BUF=y
    CONFIG_ZCBOR=y
    CONFIG_CRC=y
    CONFIG_MCUMGR=y
    CONFIG_STREAM_FLASH=y
    CONFIG_FLASH_MAP=y
    
    # Some command handlers require a large stack.
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304
    CONFIG_MAIN_STACK_SIZE=2048
    
    # Ensure an MCUboot-compatible binary is generated.
    CONFIG_BOOTLOADER_MCUBOOT=y
    
    # Enable flash operations.
    CONFIG_FLASH=y
    
    # Required by the `taskstat` command.
    CONFIG_THREAD_MONITOR=y
    
    # Support for taskstat command
    CONFIG_MCUMGR_GRP_OS_TASKSTAT=y
    
    # Enable statistics and statistic names.
    CONFIG_STATS=y
    CONFIG_STATS_NAMES=y
    
    # Enable most core commands.
    CONFIG_FLASH=y
    CONFIG_IMG_MANAGER=y
    CONFIG_MCUMGR_GRP_IMG=y
    CONFIG_MCUMGR_GRP_OS=y
    CONFIG_MCUMGR_GRP_STAT=y
    
    # Enable logging
    CONFIG_LOG=y
    CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y
    
    # Disable debug logging
    CONFIG_LOG_MAX_LEVEL=3
    
    
    

    Kind regards,
    Andreas

Related