Skip to content

Commit bb81347

Browse files
JA-NXPkartben
authored andcommitted
samples: openthread: net: shell: Add NXP rcp host configuration
Add the NXP shell configuration for openthread RCP host Signed-off-by: Jamel Arbi <[email protected]>
1 parent 983b1d0 commit bb81347

File tree

3 files changed

+88
-1
lines changed

3 files changed

+88
-1
lines changed

samples/net/openthread/shell/README.rst

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,38 @@ Building and Running
1515

1616
Verify that the board and chip you are targeting provide IEEE 802.15.4 support.
1717

18-
For instance you can use Nordic's nRF52840 DK.
18+
There are configuration files for different boards and setups in the shell directory:
19+
20+
- :file:`prj.conf`
21+
Generic config file.
22+
23+
- :file:`overlay-ot-rcp-host-nxp.conf`
24+
This overlay config enables support of OpenThread RCP host running on NXP chips over IMU interface.
25+
26+
Build shell application like this:
27+
28+
.. zephyr-app-commands::
29+
:zephyr-app: samples/net/openthread/shell
30+
:board: <board to use>
31+
:conf: <config file to use>
32+
:goals: build
33+
:compact:
34+
35+
Example building for Nordic's nRF52840 DK.
1936

2037
.. zephyr-app-commands::
2138
:zephyr-app: samples/net/openthread/shell
2239
:board: nrf52840dk/nrf52840
40+
:conf: "prj.conf"
41+
:goals: build
42+
:compact:
43+
44+
Example building for NXP's RW612 FRDM (RCP host).
45+
46+
.. zephyr-app-commands::
47+
:zephyr-app: samples/net/openthread/shell
48+
:board: frdm_rw612
49+
:conf: "prj.conf overlay-ot-rcp-host-nxp.conf"
2350
:goals: build
2451
:compact:
2552

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
# Copyright 2025, NXP
3+
#
4+
5+
# OS
6+
CONFIG_MAIN_STACK_SIZE=8192
7+
8+
# CPP library
9+
CONFIG_CPP=y
10+
11+
# IMU & FW loader
12+
CONFIG_NXP_RF_IMU=y
13+
CONFIG_NXP_FW_LOADER=y
14+
15+
# Shell
16+
CONFIG_SHELL_ARGC_MAX=26
17+
CONFIG_SHELL_CMD_BUFF_SIZE=512
18+
CONFIG_SHELL_STACK_SIZE=5120
19+
20+
# Enable Openthread RCP host interface
21+
CONFIG_HDLC_RCP_IF=y
22+
CONFIG_OPENTHREAD_MANUAL_START=y
23+
24+
# Enable OpenThread features set
25+
CONFIG_OPENTHREAD_THREAD_VERSION_1_3=y
26+
CONFIG_OPENTHREAD_DHCP6_SERVER=y
27+
CONFIG_OPENTHREAD_COMMISSIONER=y
28+
CONFIG_OPENTHREAD_BORDER_AGENT=y
29+
CONFIG_OPENTHREAD_BORDER_ROUTER=y
30+
CONFIG_OPENTHREAD_UDP_FORWARD=y
31+
CONFIG_OPENTHREAD_ENABLE_SERVICE=y
32+
CONFIG_OPENTHREAD_EXTERNAL_HEAP=y
33+
CONFIG_OPENTHREAD_PING_SENDER=y
34+
CONFIG_OPENTHREAD_SLAAC=y
35+
CONFIG_OPENTHREAD_SETTINGS_RAM=y
36+
CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS=256
37+
CONFIG_OPENTHREAD_COAP=y
38+
CONFIG_OPENTHREAD_JOINER=y
39+
CONFIG_OPENTHREAD_REFERENCE_DEVICE=y
40+
CONFIG_OPENTHREAD_DHCP6_CLIENT=y
41+
CONFIG_OPENTHREAD_LINK_METRICS_INITIATOR=y
42+
CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT=y
43+
CONFIG_OPENTHREAD_DUA=y
44+
CONFIG_OPENTHREAD_MLR=y
45+
CONFIG_OPENTHREAD_ECDSA=y
46+
CONFIG_OPENTHREAD_DNS_CLIENT=y
47+
CONFIG_OPENTHREAD_DNSSD_SERVER=y
48+
CONFIG_OPENTHREAD_SRP_CLIENT=y
49+
CONFIG_OPENTHREAD_SRP_SERVER=y
50+
CONFIG_OPENTHREAD_MAC_FILTER=y
51+
CONFIG_OPENTHREAD_IP6_FRAGM=y

samples/net/openthread/shell/sample.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ tests:
1515
- nrf52840dongle/nrf52840
1616
integration_platforms:
1717
- nrf52840dk/nrf52840
18+
sample.net.openthread.shell.rw612_openthread_rcp_host:
19+
build_only: true
20+
extra_args:
21+
# Disabling monolithic since CI environment doesn't use blobs
22+
- CONFIG_NXP_MONOLITHIC_NBU=n
23+
- EXTRA_CONF_FILE="overlay-ot-rcp-host-nxp.conf"
24+
platform_allow:
25+
- frdm_rw612
26+
- rd_rw612_bga

0 commit comments

Comments
 (0)