File tree Expand file tree Collapse file tree 6 files changed +51
-1
lines changed
samples/subsys/ipc/rpmsg_service Expand file tree Collapse file tree 6 files changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ elseif("${BOARD}" STREQUAL "mps2_an521")
18
18
set (BOARD_REMOTE "mps2_an521_remote" )
19
19
elseif ("${BOARD} " STREQUAL "v2m_musca_b1" )
20
20
set (BOARD_REMOTE "v2m_musca_b1_ns" )
21
+ elseif ("${BOARD} " STREQUAL "esp32" )
22
+ set (BOARD_REMOTE "esp32_net" )
21
23
else ()
22
24
message (FATAL_ERROR "${BOARD} was not supported for this sample" )
23
25
endif ()
@@ -31,6 +33,11 @@ enable_language(C ASM)
31
33
32
34
target_sources (app PRIVATE src/main.c )
33
35
36
+ if ("${BOARD} " STREQUAL "esp32" )
37
+ set_source_files_properties (${REMOTE_ZEPHYR_DIR} /esp32_net_firmware.c PROPERTIES GENERATED TRUE )
38
+ target_sources (app PRIVATE src/main.c ${REMOTE_ZEPHYR_DIR} /esp32_net_firmware.c )
39
+ endif ()
40
+
34
41
include (ExternalProject )
35
42
36
43
ExternalProject_Add (
@@ -45,6 +52,8 @@ ExternalProject_Add(
45
52
46
53
if (("${BOARD} " STREQUAL "lpcxpresso54114_m4" ))
47
54
add_dependencies (core_m0_inc_target rpmsg_service_remote )
55
+ elseif ("${BOARD} " STREQUAL "esp32" )
56
+ add_dependencies (app rpmsg_service_remote )
48
57
endif ()
49
58
50
59
target_include_directories (app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
Original file line number Diff line number Diff line change
1
+ CONFIG_ESP32_NETWORK_CORE=y
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023 Felipe Neves <
[email protected] >
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ / {
8
+ chosen {
9
+ /*
10
+ * shared memory reserved for the inter-processor communication
11
+ */
12
+ zephyr,ipc_shm = &shm0;
13
+ zephyr,ipc = &ipm0;
14
+ };
15
+ };
16
+
17
+ &ipm0 {
18
+ status = "okay";
19
+ };
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ if("${BOARD}" STREQUAL "nrf5340dk_nrf5340_cpunet"
9
9
OR "${BOARD} " STREQUAL "bl5340_dvk_cpunet"
10
10
OR "${BOARD} " STREQUAL "lpcxpresso54114_m0"
11
11
OR "${BOARD} " STREQUAL "mps2_an521_remote"
12
- OR "${BOARD} " STREQUAL "v2m_musca_b1_ns" )
12
+ OR "${BOARD} " STREQUAL "v2m_musca_b1_ns"
13
+ OR "${BOARD} " STREQUAL "esp32_net" )
13
14
message (STATUS "${BOARD} compile as slave in this sample" )
14
15
else ()
15
16
message (FATAL_ERROR "${BOARD} was not supported for this sample" )
Original file line number Diff line number Diff line change
1
+ CONFIG_KERNEL_BIN_NAME="esp32_net_firmware"
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023 Felipe Neves <
[email protected] >
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ / {
8
+ chosen {
9
+ /*
10
+ * shared memory reserved for the inter-processor communication
11
+ */
12
+ zephyr,ipc_shm = &shm0;
13
+ zephyr,ipc = &ipm0;
14
+ };
15
+ };
16
+
17
+ &ipm0 {
18
+ status = "okay";
19
+ };
You can’t perform that action at this time.
0 commit comments