File tree Expand file tree Collapse file tree 6 files changed +99
-2
lines changed
samples/subsys/ipc/ipc_service/icmsg Expand file tree Collapse file tree 6 files changed +99
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ cmake_minimum_required(VERSION 3.20.0)
88
99find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
1010
11- if (NOT CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP)
11+ if (NOT CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP AND
12+ NOT CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUAPP)
1213 message (FATAL_ERROR "${BOARD} is not supported for this sample" )
1314endif ()
1415
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ source "share/sysbuild/Kconfig"
77config NET_CORE_BOARD
88string
99 default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
10+ default "nrf54l15pdk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15pdk"
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 Nordic Semiconductor ASA
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ / {
8+ soc {
9+ reserved-memory {
10+ #address-cells = <1>;
11+ #size-cells = <1>;
12+
13+ sram_rx: memory@20018000 {
14+ reg = <0x20018000 0x0800>;
15+ };
16+
17+ sram_tx: memory@20020000 {
18+ reg = <0x20020000 0x0800>;
19+ };
20+ };
21+ };
22+
23+ ipc {
24+ ipc0: ipc0 {
25+ compatible = "zephyr,ipc-icmsg";
26+ tx-region = <&sram_tx>;
27+ rx-region = <&sram_rx>;
28+ mboxes = <&cpuapp_vevif_rx 15>, <&cpuapp_vevif_tx 16>;
29+ mbox-names = "rx", "tx";
30+ status = "okay";
31+ };
32+ };
33+ };
34+
35+ &cpuapp_vevif_rx {
36+ status = "okay";
37+ };
38+
39+ &cpuapp_vevif_tx {
40+ status = "okay";
41+ };
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 Nordic Semiconductor ASA
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ / {
8+ soc {
9+ reserved-memory {
10+ #address-cells = <1>;
11+ #size-cells = <1>;
12+
13+ sram_tx: memory@20018000 {
14+ reg = <0x20018000 0x0800>;
15+ };
16+
17+ sram_rx: memory@20020000 {
18+ reg = <0x20020000 0x0800>;
19+ };
20+ };
21+ };
22+
23+ ipc {
24+ ipc0: ipc0 {
25+ compatible = "zephyr,ipc-icmsg";
26+ tx-region = <&sram_tx>;
27+ rx-region = <&sram_rx>;
28+ mboxes = <&cpuflpr_vevif_rx 16>, <&cpuflpr_vevif_tx 15>;
29+ mbox-names = "rx", "tx";
30+ status = "okay";
31+ };
32+ };
33+ };
34+
35+ &cpuflpr_vevif_rx {
36+ status = "okay";
37+ };
38+
39+ &cpuflpr_vevif_tx {
40+ status = "okay";
41+ };
Original file line number Diff line number Diff line change @@ -18,3 +18,12 @@ tests:
1818 - " host: Sent"
1919 - " host: Received"
2020 - " host: IPC-service HOST demo ended"
21+ sample.ipc.icmsg.nrf54l15 :
22+ platform_allow : nrf54l15pdk/nrf54l15/cpuapp
23+ integration_platforms :
24+ - nrf54l15pdk/nrf54l15/cpuapp
25+ tags : ipc
26+ extra_args :
27+ icmsg_SNIPPET=nordic-flpr
28+ sysbuild : true
29+ harness : remote
Original file line number Diff line number Diff line change 88#include <zephyr/device.h>
99
1010#include <zephyr/ipc/ipc_service.h>
11+ #if defined(CONFIG_SOC_NRF5340_CPUAPP )
1112#include <nrf53_cpunet_mgmt.h>
13+ #endif
1214#include <string.h>
1315
1416#include "common.h"
@@ -126,9 +128,10 @@ int main(void)
126128 return ret ;
127129 }
128130
129- LOG_INF ("Wait 500ms. Let net core finish its sends" );
131+ LOG_INF ("Wait 500ms. Let remote core finish its sends" );
130132 k_msleep (500 );
131133
134+ #if defined(CONFIG_SOC_NRF5340_CPUAPP )
132135 LOG_INF ("Stop network core" );
133136 nrf53_cpunet_enable (false);
134137
@@ -167,6 +170,7 @@ int main(void)
167170 LOG_ERR ("send_for_time() failure" );
168171 return ret ;
169172 }
173+ #endif /* CONFIG_SOC_NRF5340_CPUAPP */
170174
171175 LOG_INF ("IPC-service HOST demo ended" );
172176
You can’t perform that action at this time.
0 commit comments