samples: openthread: net: shell: Add NXP rcp host configuration

Add the NXP shell configuration for openthread RCP host

Signed-off-by: Jamel Arbi <jamel.arbi@nxp.com>
This commit is contained in:
Jamel Arbi 2025-05-28 11:09:51 +02:00 committed by Benjamin Cabé
parent 983b1d088c
commit bb81347dfb
3 changed files with 88 additions and 1 deletions

View File

@ -15,11 +15,38 @@ Building and Running
Verify that the board and chip you are targeting provide IEEE 802.15.4 support.
For instance you can use Nordic's nRF52840 DK.
There are configuration files for different boards and setups in the shell directory:
- :file:`prj.conf`
Generic config file.
- :file:`overlay-ot-rcp-host-nxp.conf`
This overlay config enables support of OpenThread RCP host running on NXP chips over IMU interface.
Build shell application like this:
.. zephyr-app-commands::
:zephyr-app: samples/net/openthread/shell
:board: <board to use>
:conf: <config file to use>
:goals: build
:compact:
Example building for Nordic's nRF52840 DK.
.. zephyr-app-commands::
:zephyr-app: samples/net/openthread/shell
:board: nrf52840dk/nrf52840
:conf: "prj.conf"
:goals: build
:compact:
Example building for NXP's RW612 FRDM (RCP host).
.. zephyr-app-commands::
:zephyr-app: samples/net/openthread/shell
:board: frdm_rw612
:conf: "prj.conf overlay-ot-rcp-host-nxp.conf"
:goals: build
:compact:

View File

@ -0,0 +1,51 @@
#
# Copyright 2025, NXP
#
# OS
CONFIG_MAIN_STACK_SIZE=8192
# CPP library
CONFIG_CPP=y
# IMU & FW loader
CONFIG_NXP_RF_IMU=y
CONFIG_NXP_FW_LOADER=y
# Shell
CONFIG_SHELL_ARGC_MAX=26
CONFIG_SHELL_CMD_BUFF_SIZE=512
CONFIG_SHELL_STACK_SIZE=5120
# Enable Openthread RCP host interface
CONFIG_HDLC_RCP_IF=y
CONFIG_OPENTHREAD_MANUAL_START=y
# Enable OpenThread features set
CONFIG_OPENTHREAD_THREAD_VERSION_1_3=y
CONFIG_OPENTHREAD_DHCP6_SERVER=y
CONFIG_OPENTHREAD_COMMISSIONER=y
CONFIG_OPENTHREAD_BORDER_AGENT=y
CONFIG_OPENTHREAD_BORDER_ROUTER=y
CONFIG_OPENTHREAD_UDP_FORWARD=y
CONFIG_OPENTHREAD_ENABLE_SERVICE=y
CONFIG_OPENTHREAD_EXTERNAL_HEAP=y
CONFIG_OPENTHREAD_PING_SENDER=y
CONFIG_OPENTHREAD_SLAAC=y
CONFIG_OPENTHREAD_SETTINGS_RAM=y
CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS=256
CONFIG_OPENTHREAD_COAP=y
CONFIG_OPENTHREAD_JOINER=y
CONFIG_OPENTHREAD_REFERENCE_DEVICE=y
CONFIG_OPENTHREAD_DHCP6_CLIENT=y
CONFIG_OPENTHREAD_LINK_METRICS_INITIATOR=y
CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT=y
CONFIG_OPENTHREAD_DUA=y
CONFIG_OPENTHREAD_MLR=y
CONFIG_OPENTHREAD_ECDSA=y
CONFIG_OPENTHREAD_DNS_CLIENT=y
CONFIG_OPENTHREAD_DNSSD_SERVER=y
CONFIG_OPENTHREAD_SRP_CLIENT=y
CONFIG_OPENTHREAD_SRP_SERVER=y
CONFIG_OPENTHREAD_MAC_FILTER=y
CONFIG_OPENTHREAD_IP6_FRAGM=y

View File

@ -15,3 +15,12 @@ tests:
- nrf52840dongle/nrf52840
integration_platforms:
- nrf52840dk/nrf52840
sample.net.openthread.shell.rw612_openthread_rcp_host:
build_only: true
extra_args:
# Disabling monolithic since CI environment doesn't use blobs
- CONFIG_NXP_MONOLITHIC_NBU=n
- EXTRA_CONF_FILE="overlay-ot-rcp-host-nxp.conf"
platform_allow:
- frdm_rw612
- rd_rw612_bga