Skip to content

Commit e0696ab

Browse files
committed
samples: mbox: Add support for ESP32C6
Add mbox sample support for ESP32C6 HP and LP Core Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
1 parent 4d41169 commit e0696ab

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

samples/drivers/mbox/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
2323
CONFIG_BOARD_MCX_N9XX_EVK_MCXN947_CPU0 OR
2424
CONFIG_BOARD_ESP32_DEVKITC_ESP32_PROCPU OR
2525
CONFIG_BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU OR
26+
CONFIG_BOARD_ESP32C6_DEVKITC_ESP32C6_HPCORE OR
2627
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
2728
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPURAD OR
2829
CONFIG_BOARD_NRF54L09PDK_NRF54L09_CPUAPP OR

samples/drivers/mbox/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ config REMOTE_BOARD
2727
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
2828
default "esp32_devkitc/esp32/appcpu" if "$(BOARD)${BOARD_QUALIFIERS}" = "esp32_devkitc/esp32/procpu"
2929
default "esp32s3_devkitm/esp32s3/appcpu" if "$(BOARD)${BOARD_QUALIFIERS}" = "esp32s3_devkitm/esp32s3/procpu"
30+
default "esp32c6_devkitc/esp32c6/lpcore" if "$(BOARD)${BOARD_QUALIFIERS}" = "esp32c6_devkitc/esp32c6/hpcore"
3031
default "bl54l15_dvk/nrf54l15/cpuflpr" if "$(BOARD)${BOARD_QUALIFIERS}" = "bl54l15_dvk/nrf54l15/cpuapp"
3132
default "bl54l15u_dvk/nrf54l15/cpuflpr" if $(BOARD) = "bl54l15u_dvk"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_ULP_COPROC_ENABLED=y
2+
CONFIG_DEBUG_OPTIMIZATIONS=y
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,ipc_shm = &shmlp;
10+
zephyr,ipc = &mbox0;
11+
};
12+
13+
mbox-consumer {
14+
compatible = "vnd,mbox-consumer";
15+
mboxes = <&mbox0 0>, <&mbox0 1>;
16+
mbox-names = "tx", "rx";
17+
};
18+
};
19+
20+
&mbox0 {
21+
status = "okay";
22+
};
23+
24+
&lp_uart {
25+
status = "okay";
26+
};

samples/drivers/mbox/remote/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
2121
CONFIG_BOARD_MCX_N9XX_EVK_MCXN947_CPU1 OR
2222
CONFIG_BOARD_ESP32_DEVKITC_ESP32_APPCPU OR
2323
CONFIG_BOARD_ESP32S3_DEVKITM_ESP32S3_APPCPU OR
24+
CONFIG_BOARD_ESP32C6_DEVKITC_ESP32C6_LPCORE OR
2425
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR
2526
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUFLPR OR
2627
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2024 Felipe Neves.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,ipc_shm = &shmlp;
10+
zephyr,ipc = &mbox0;
11+
};
12+
13+
mbox-consumer {
14+
compatible = "vnd,mbox-consumer";
15+
mboxes = <&mbox0 1>, <&mbox0 0>;
16+
mbox-names = "tx", "rx";
17+
};
18+
};
19+
20+
&mbox0 {
21+
status = "okay";
22+
};
23+
24+
&lp_uart {
25+
status = "okay";
26+
};

0 commit comments

Comments
 (0)