Skip to content

Commit 7781f95

Browse files
Ayush1325kartben
authored andcommitted
samples: subsys: mgmt: mcumgr: smp-svr: Enable for BeagleConnect Freedom
- Add config to enable the sample for BeagleConnect Freedom over 802154 subg. - Also add instructions to the docs. Signed-off-by: Ayush Singh <[email protected]>
1 parent ffb132e commit 7781f95

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
CONFIG_BT=n
2+
3+
# Disable IPv4
4+
CONFIG_NET_IPV4=n
5+
CONFIG_MCUMGR_TRANSPORT_UDP_IPV4=n
6+
7+
CONFIG_NET_CONFIG_NEED_IPV6=y
8+
CONFIG_NET_CONFIG_NEED_IPV4=n
9+
CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
10+
CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
11+
12+
CONFIG_NET_L2_IEEE802154=y
13+
# CONFIG_NET_L2_IEEE802154_SHELL=y
14+
CONFIG_NET_L2_IEEE802154_LOG_LEVEL_INF=y
15+
16+
# Uncomment for 868 MHz
17+
#CONFIG_NET_CONFIG_IEEE802154_CHANNEL=0
18+
# Uncomment for 906 MHz:
19+
CONFIG_NET_CONFIG_IEEE802154_CHANNEL=1

samples/subsys/mgmt/mcumgr/smp_svr/README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,17 @@ included. The ``smp_svr`` sample comes in different flavours.
134134
:gen-args: -DEXTRA_CONF_FILE="overlay-udp.conf"
135135
:compact:
136136

137+
To build UDP sample with 802154 Subg networking:
138+
139+
.. zephyr-app-commands::
140+
:tool: west
141+
:zephyr-app: samples/subsys/mgmt/mcumgr/smp_svr
142+
:board: beagleconnect_freedom
143+
:goals: build
144+
:west-args: --sysbuild
145+
:gen-args: -DEXTRA_CONF_FILE="overlay-udp.conf;802154-subg.conf"
146+
:compact:
147+
137148
Flashing the sample image
138149
*************************
139150

samples/subsys/mgmt/mcumgr/smp_svr/sample.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ tests:
3737
- frdm_k64f
3838
integration_platforms:
3939
- frdm_k64f
40+
sample.mcumgr.smp_svr.udp.802154.subg:
41+
extra_args: EXTRA_CONF_FILE="overlay-udp.conf;802154-subg.conf"
42+
platform_allow: beagleconnect_freedom
4043
sample.mcumgr.smp_svr.cdc:
4144
extra_args:
4245
- EXTRA_CONF_FILE="overlay-cdc.conf"

0 commit comments

Comments
 (0)