diff --git a/dts/arm/nxp/nxp_mcxw71.dtsi b/dts/arm/nxp/nxp_mcxw71.dtsi index 54f1f16383487..7de0893cf7998 100644 --- a/dts/arm/nxp/nxp_mcxw71.dtsi +++ b/dts/arm/nxp/nxp_mcxw71.dtsi @@ -24,17 +24,10 @@ &stcm { ranges = <0x0 0x30000000 DT_SIZE_K(112)>; - - stcm1: system_memory@1a000 { - compatible = "zephyr,memory-region", "mmio-sram"; - reg = <0x1a000 DT_SIZE_K(8)>; - zephyr,memory-region = "RetainedMem"; - }; }; &stcm0 { - /* With only the first 64KB having ECC */ - reg = <0x0 DT_SIZE_K(104)>; + reg = <0x0 DT_SIZE_K(112)>; }; &pbridge2 { diff --git a/samples/net/openthread/shell/README.rst b/samples/net/openthread/shell/README.rst index 2b44d00e9b833..906f65cf9229f 100644 --- a/samples/net/openthread/shell/README.rst +++ b/samples/net/openthread/shell/README.rst @@ -46,10 +46,20 @@ 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" + :conf: "prj-ot-host.conf" :goals: build :compact: +Example building for NXP's MCXW72 FRDM (host). + +.. zephyr-app-commands:: + :zephyr-app: samples/net/openthread/shell + :board: frdm_mcxw72 + :conf: "prj-ot-host.conf" + :goals: build + :compact: + + Sample console interaction ========================== diff --git a/samples/net/openthread/shell/boards/frdm_mcxw71.conf b/samples/net/openthread/shell/boards/frdm_mcxw71.conf new file mode 100644 index 0000000000000..292c9be5cd647 --- /dev/null +++ b/samples/net/openthread/shell/boards/frdm_mcxw71.conf @@ -0,0 +1,9 @@ +# Copyright 2025 NXP +# SPDX-License-Identifier: Apache-2.0 + +# OS +CONFIG_HEAP_MEM_POOL_SIZE=2048 +CONFIG_MAIN_STACK_SIZE=2048 + +#shell +CONFIG_SHELL_STACK_SIZE=2048 diff --git a/samples/net/openthread/shell/boards/frdm_mcxw72_mcxw727c_cpu0.conf b/samples/net/openthread/shell/boards/frdm_mcxw72_mcxw727c_cpu0.conf new file mode 100644 index 0000000000000..6135e80dc09e0 --- /dev/null +++ b/samples/net/openthread/shell/boards/frdm_mcxw72_mcxw727c_cpu0.conf @@ -0,0 +1,9 @@ +# Copyright 2025 NXP +# SPDX-License-Identifier: Apache-2.0 + +# OS +CONFIG_HEAP_MEM_POOL_SIZE=4096 +CONFIG_MAIN_STACK_SIZE=4096 + +#shell +CONFIG_SHELL_STACK_SIZE=4096 diff --git a/samples/net/openthread/shell/boards/frdm_rw612.conf b/samples/net/openthread/shell/boards/frdm_rw612.conf new file mode 100644 index 0000000000000..90152b55298d3 --- /dev/null +++ b/samples/net/openthread/shell/boards/frdm_rw612.conf @@ -0,0 +1,15 @@ +# Copyright 2025 NXP +# SPDX-License-Identifier: Apache-2.0 + +# OS +CONFIG_MAIN_STACK_SIZE=4096 + +#shell +CONFIG_SHELL_STACK_SIZE=5120 + +# IMU & FW loader +CONFIG_NXP_RF_IMU=y +CONFIG_NXP_FW_LOADER=y + +# Enable Openthread RCP host interface +CONFIG_HDLC_RCP_IF=y diff --git a/samples/net/openthread/shell/boards/mcxw72_evk_mcxw727c_cpu0.conf b/samples/net/openthread/shell/boards/mcxw72_evk_mcxw727c_cpu0.conf new file mode 100644 index 0000000000000..6135e80dc09e0 --- /dev/null +++ b/samples/net/openthread/shell/boards/mcxw72_evk_mcxw727c_cpu0.conf @@ -0,0 +1,9 @@ +# Copyright 2025 NXP +# SPDX-License-Identifier: Apache-2.0 + +# OS +CONFIG_HEAP_MEM_POOL_SIZE=4096 +CONFIG_MAIN_STACK_SIZE=4096 + +#shell +CONFIG_SHELL_STACK_SIZE=4096 diff --git a/samples/net/openthread/shell/boards/rd_rw612_bga.conf b/samples/net/openthread/shell/boards/rd_rw612_bga.conf new file mode 100644 index 0000000000000..90152b55298d3 --- /dev/null +++ b/samples/net/openthread/shell/boards/rd_rw612_bga.conf @@ -0,0 +1,15 @@ +# Copyright 2025 NXP +# SPDX-License-Identifier: Apache-2.0 + +# OS +CONFIG_MAIN_STACK_SIZE=4096 + +#shell +CONFIG_SHELL_STACK_SIZE=5120 + +# IMU & FW loader +CONFIG_NXP_RF_IMU=y +CONFIG_NXP_FW_LOADER=y + +# Enable Openthread RCP host interface +CONFIG_HDLC_RCP_IF=y diff --git a/samples/net/openthread/shell/overlay-ot-rcp-host-nxp.conf b/samples/net/openthread/shell/prj-ot-host.conf similarity index 68% rename from samples/net/openthread/shell/overlay-ot-rcp-host-nxp.conf rename to samples/net/openthread/shell/prj-ot-host.conf index 21501757b774e..ccd248c45d21d 100644 --- a/samples/net/openthread/shell/overlay-ot-rcp-host-nxp.conf +++ b/samples/net/openthread/shell/prj-ot-host.conf @@ -1,27 +1,39 @@ -# -# Copyright 2025, NXP -# +# SPDX-License-Identifier: Apache-2.0 -# OS -CONFIG_MAIN_STACK_SIZE=8192 +# Enable Networking and OpenThread stack +CONFIG_NETWORKING=y +CONFIG_NET_L2_OPENTHREAD=y + +# Use NVS as settings backend +CONFIG_NVS=y + +# Logging +CONFIG_LOG=y +CONFIG_NET_LOG=y + +# Networking and OpenThread shells +CONFIG_SHELL=y +CONFIG_NET_SHELL=y +CONFIG_OPENTHREAD_SHELL=y +CONFIG_NET_L2_IEEE802154_SHELL=y # 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 +CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH=1024 -# Enable Openthread RCP host interface -CONFIG_HDLC_RCP_IF=y -CONFIG_OPENTHREAD_MANUAL_START=y +# Flash +CONFIG_FLASH=y +CONFIG_FLASH_MAP=y +CONFIG_SETTINGS=y +CONFIG_SETTINGS_NVS=y +CONFIG_NVS=y # Enable OpenThread features set +CONFIG_OPENTHREAD_MANUAL_START=y CONFIG_OPENTHREAD_THREAD_VERSION_1_3=y CONFIG_OPENTHREAD_DHCP6_SERVER=y CONFIG_OPENTHREAD_COMMISSIONER=y diff --git a/samples/net/openthread/shell/sample.yaml b/samples/net/openthread/shell/sample.yaml index 6b67e66ced106..14caf2b3854d4 100644 --- a/samples/net/openthread/shell/sample.yaml +++ b/samples/net/openthread/shell/sample.yaml @@ -20,10 +20,18 @@ tests: 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 + sample.net.openthread.shell.mcxw_openthread_host: + build_only: true + extra_args: + # Disabling monolithic since CI environment doesn't use blobs + - CONFIG_NXP_MONOLITHIC_NBU=n + platform_allow: + - frdm_mcxw71 + - mcxw72_evk/mcxw727c/cpu0 + - frdm_mcxw72/mcxw727c/cpu0 sample.net.openthread.shell.esp: build_only: true extra_args: