-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathKconfig
More file actions
88 lines (68 loc) · 2.09 KB
/
Kconfig
File metadata and controls
88 lines (68 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
# Copyright (c) 2026 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
config ZIGBEE_BT_DFU
bool "Enable DFU over Bluetooth LE SMP feature set"
depends on !CHIP
imply BOOTLOADER_MCUBOOT
select BT
select BT_PERIPHERAL
select MCUMGR
select MCUMGR_TRANSPORT_BT
select IMG_MANAGER
select STREAM_FLASH
select ZCBOR
select MCUMGR_GRP_IMG
select MCUMGR_GRP_OS
select MCUMGR_GRP_IMG_STATUS_HOOKS
# Enable custom SMP request to erase settings partition.
select MCUMGR_GRP_ZBASIC
select MCUMGR_GRP_ZBASIC_STORAGE_ERASE
select MCUMGR_TRANSPORT_BT_REASSEMBLY
help
Enables Device Firmware Upgrade over Bluetooth LE with SMP and configures
the set of options related to that feature.
Cannot be combined with Matter (CONFIG_CHIP), as it requires different Bluetooth LE orchestration.
Use Matter's CONFIG_CHIP_DFU_OVER_BT_SMP instead.
if ZIGBEE_BT_DFU
config BT_MAX_CONN
default 1
# MCU Manager and SMP configuration
choice MCUMGR_TRANSPORT_BT_PERM
default MCUMGR_TRANSPORT_BT_PERM_RW
endchoice
config MCUMGR_TRANSPORT_NETBUF_COUNT
default 6
config MCUMGR_MGMT_NOTIFICATION_HOOKS
bool
default y
config MCUMGR_GRP_IMG_UPLOAD_CHECK_HOOK
bool
default y
config MCUMGR_SMP_COMMAND_STATUS_HOOKS
bool
default y
# Increase BT MTU and RX buffer sizes to improve DFU throughput on non-RAM-constrained devices
config BT_L2CAP_TX_MTU
default 498 if !SOC_NRF54L10
config BT_BUF_ACL_RX_SIZE
default 502 if !SOC_NRF54L10
# Increase MCUMGR_TRANSPORT_NETBUF_SIZE, as it must be big enough to fit MAX MTU + overhead and for single-image DFU default is 384 B
config MCUMGR_TRANSPORT_NETBUF_SIZE
default 1024
# Increase system workqueue size, as SMP is processed within it
config SYSTEM_WORKQUEUE_STACK_SIZE
default 2800
if SOC_SERIES_NRF53
# Enable custom SMP request to erase settings partition.
config MCUMGR_GRP_ZBASIC
default y
config MCUMGR_GRP_ZBASIC_STORAGE_ERASE
default y
endif # SOC_SERIES_NRF53
module = ZIGBEE_BT_DFU
module-str = Zigbee Bluetooth LE DFU
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
endif # ZIGBEE_BT_DFU