Skip to content

Commit f8e8083

Browse files
aescolarcarlescufi
authored andcommitted
nrf53_bsim: Provide shared memory buffer for IPC rpmsg backend
Provide the actual shared memory buffer for the IPC rpmsg backend in this platform. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent a042203 commit f8e8083

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

boards/posix/nrf_bsim/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ target_sources(native_simulator INTERFACE
3535
common/trace_hook.c
3636
)
3737

38+
if (CONFIG_IPC_SERVICE)
39+
target_sources(native_simulator INTERFACE
40+
ipc_backend.c
41+
)
42+
endif()
43+
3844
zephyr_include_directories(
3945
soc
4046
common

boards/posix/nrf_bsim/ipc_backend.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2023 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* This buffer is the shared memory buffer for the RPMSG IPC backed
9+
* in simulation.
10+
* It must be at last as large as the size defined in device tree, but as it will be compiled in
11+
* the native simulator runner context we cannot refer to DT itself to size it.
12+
* The default buffer for this target is defined in
13+
* boards/arm/nrf5340dk_nrf5340/nrf5340_shared_sram_planning_conf.dtsi
14+
*/
15+
char IPC0_shm_buffer[65536];

0 commit comments

Comments
 (0)