Skip to content

Commit

Permalink
samples: ipc: ipc_service: Add ICBMsg configuration
Browse files Browse the repository at this point in the history
Add ICBMsg configuration for nRF5340DK board.

JIRA: NCSDK-31711

Signed-off-by: Radoslaw Koppel <[email protected]>
  • Loading branch information
rakons authored and rlubos committed Feb 18, 2025
1 parent 4cae173 commit 9185c68
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_SOC_NRF53_CPUNET_ENABLE=y
CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=0
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/delete-node/ &ipc0;

/ {
chosen {
/delete-property/ zephyr,ipc_shm;
/delete-property/ zephyr,bt-hci;
};

reserved-memory {
/delete-node/ memory@20070000;

sram_tx: memory@20070000 {
reg = <0x20070000 0x8000>;
};

sram_rx: memory@20078000 {
reg = <0x20078000 0x8000>;
};
};

ipc0: ipc0 {
compatible = "zephyr,ipc-icbmsg";
tx-region = <&sram_tx>;
rx-region = <&sram_rx>;
tx-blocks = <20>;
rx-blocks = <20>;
mboxes = <&mbox 0>, <&mbox 1>;
mbox-names = "tx", "rx";
status = "okay";
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2025 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=0
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/delete-node/ &ipc0;

/ {
chosen {
/delete-property/ zephyr,ipc_shm;
};

reserved-memory {
/delete-node/ memory@20070000;

sram_rx: memory@20070000 {
reg = <0x20070000 0x8000>;
};

sram_tx: memory@20078000 {
reg = <0x20078000 0x8000>;
};
};

ipc0: ipc0 {
compatible = "zephyr,ipc-icbmsg";
tx-region = <&sram_tx>;
rx-region = <&sram_rx>;
tx-blocks = <20>;
rx-blocks = <20>;
mboxes = <&mbox 0>, <&mbox 1>;
mbox-names = "rx", "tx";
status = "okay";
};
};
19 changes: 13 additions & 6 deletions samples/ipc/ipc_service/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ tests:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
extra_args: >
remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
extra_args:
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
sample.ipc.ipc_service.nrf5340dk_rpmsg_cpunet_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_configs:
- CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=200000000
extra_args: >
remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
extra_args:
- remote_CONFIG_APP_IPC_SERVICE_SEND_INTERVAL=1
harness_config:
type: multi_line
ordered: true
Expand All @@ -55,8 +55,15 @@ tests:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_args: >
FILE_SUFFIX=icmsg
extra_args:
- FILE_SUFFIX=icmsg
sample.ipc.ipc_service.nrf5340dk_icbmsg_default:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
extra_args:
- FILE_SUFFIX=icbmsg
sample.ipc.ipc_service.nrf5340dk_icmsg_cpuapp_sending:
platform_allow:
- nrf5340dk/nrf5340/cpuapp
Expand Down

0 comments on commit 9185c68

Please sign in to comment.