Skip to content

Commit f2a8725

Browse files
committed
tests: ipc: ipc_sessions: Add nrf54h20 cpuapp-cpurad configuration
Implemenation of the test between cpuapp and cpurad cores. Signed-off-by: Radosław Koppel <[email protected]>
1 parent ddada07 commit f2a8725

File tree

8 files changed

+66
-20
lines changed

8 files changed

+66
-20
lines changed

tests/subsys/ipc/ipc_sessions/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ config IPC_TEST_MSG_HEAP_SIZE
1414
help
1515
Internal heap where all the message data would be copied to be processed
1616
linearry in tests.
17+
18+
config IPC_TEST_SKIP_CORE_RESET
19+
bool "Skip the tests that includes core resetting"
20+
help
21+
Some of the cores cannot be safely restarted.
22+
Skip the tests that require it in such a cases.

tests/subsys/ipc/ipc_sessions/Kconfig.sysbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ config REMOTE_BOARD
1010
string "The board used for remote target"
1111
default "nrf5340dk/nrf5340/cpunet" if BOARD_NRF5340DK_NRF5340_CPUAPP
1212
default "nrf5340dk/nrf5340/cpunet" if BOARD_NRF5340DK_NRF5340_CPUAPP_NS
13-
default "nrf54h20dk/nrf54h20/cpuppr" if BOARD_NRF54H20DK_NRF54H20_CPUAPP
13+
default "nrf54h20dk/nrf54h20/cpurad" if BOARD_NRF54H20DK_NRF54H20_CPUAPP

tests/subsys/ipc/ipc_sessions/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,9 @@
44
*/
55

66
/* Replace default ipc0 instance */
7-
/delete-node/ &ipc0;
8-
9-
ipc0: &cpuapp_cpuppr_ipc {
10-
status = "okay";
11-
unbound = "detect";
12-
};
13-
14-
&cpuppr_vevif {
15-
status = "okay";
16-
};
17-
18-
&cpuapp_bellboard {
19-
status = "okay";
20-
};
21-
22-
/ {
23-
chosen {
24-
/delete-property/ zephyr,bt-hci;
25-
};
7+
&ipc0 {
8+
compatible = "zephyr,ipc-icmsg";
9+
/delete-property/ tx-blocks;
10+
/delete-property/ rx-blocks;
11+
unbound = "enable";
2612
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
/* Replace default ipc0 instance */
7+
/delete-node/ &ipc0;
8+
9+
ipc0: &cpuapp_cpuppr_ipc {
10+
status = "okay";
11+
unbound = "detect";
12+
};
13+
14+
&cpuppr_vevif {
15+
status = "okay";
16+
};
17+
18+
&cpuapp_bellboard {
19+
status = "okay";
20+
};
21+
22+
/ {
23+
chosen {
24+
/delete-property/ zephyr,bt-hci;
25+
};
26+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
&uart135 {
7+
/delete-property/ hw-flow-control;
8+
};
9+
10+
&ipc0 {
11+
compatible = "zephyr,ipc-icmsg";
12+
/delete-property/ tx-blocks;
13+
/delete-property/ rx-blocks;
14+
unbound = "enable";
15+
};

tests/subsys/ipc/ipc_sessions/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ ZTEST(ipc_sessions, test_echo)
180180

181181
ZTEST(ipc_sessions, test_reboot)
182182
{
183+
zassume_false(IS_ENABLED(CONFIG_IPC_TEST_SKIP_CORE_RESET));
184+
183185
int ret;
184186
struct test_ipc_event_state ev;
185187
static const struct ipc_test_cmd_reboot cmd_rebond = { { IPC_TEST_CMD_REBOOT }, 10 };
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3+
4+
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpuppr"

tests/subsys/ipc/ipc_sessions/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ tests:
1313
- nrf5340dk/nrf5340/cpuapp
1414
integration_platforms:
1515
- nrf5340dk/nrf5340/cpuapp
16+
sample.ipc.ipc_sessions.nrf54h20dk_cpuapp_cpurad:
17+
platform_allow:
18+
- nrf54h20dk/nrf54h20/cpuapp
19+
integration_platforms:
20+
- nrf54h20dk/nrf54h20/cpuapp
21+
extra_configs:
22+
- CONFIG_IPC_TEST_SKIP_CORE_RESET=y
1623
sample.ipc.ipc_sessions.nrf54h20dk_cpuapp_cpuppr:
1724
platform_allow:
1825
- nrf54h20dk/nrf54h20/cpuapp

0 commit comments

Comments
 (0)