samples: mbox: Add nRF54L15 to MBOX sample targets
Add nRF54L15 APP and FLPR cores to ping-pong sample application. Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
This commit is contained in:
parent
9473e3236d
commit
bd40190c25
7 changed files with 80 additions and 0 deletions
|
@ -18,6 +18,7 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
|
||||||
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
|
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
|
||||||
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
|
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
|
||||||
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
|
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
|
||||||
|
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUAPP OR
|
||||||
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M7)
|
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M7)
|
||||||
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
|
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -15,4 +15,5 @@ string
|
||||||
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
|
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
|
||||||
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
|
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
|
||||||
default "nrf54h20dk/nrf54h20/cpuppr" if $(BOARD) = "nrf54h20dk"
|
default "nrf54h20dk/nrf54h20/cpuppr" if $(BOARD) = "nrf54h20dk"
|
||||||
|
default "nrf54l15pdk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15pdk"
|
||||||
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
|
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2024 Nordic Semiconductor ASA
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
mbox-consumer {
|
||||||
|
compatible = "vnd,mbox-consumer";
|
||||||
|
mboxes = <&cpuapp_vevif_rx 15>, <&cpuapp_vevif_tx 16>;
|
||||||
|
mbox-names = "rx", "tx";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpuapp_vevif_rx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpuapp_vevif_tx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
|
@ -16,6 +16,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
|
||||||
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR
|
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR
|
||||||
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1 OR
|
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1 OR
|
||||||
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR
|
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR
|
||||||
|
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUFLPR OR
|
||||||
|
CONFIG_BOARD_NRF54L15PDK_NRF54L15_CPUFLPR_XIP OR
|
||||||
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M4)
|
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M4)
|
||||||
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
|
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2024 Nordic Semiconductor ASA
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
mbox-consumer {
|
||||||
|
compatible = "vnd,mbox-consumer";
|
||||||
|
mboxes = <&cpuflpr_vevif_rx 16>, <&cpuflpr_vevif_tx 15>;
|
||||||
|
mbox-names = "rx", "tx";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpuflpr_vevif_rx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpuflpr_vevif_tx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2024 Nordic Semiconductor ASA
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
mbox-consumer {
|
||||||
|
compatible = "vnd,mbox-consumer";
|
||||||
|
mboxes = <&cpuflpr_vevif_rx 16>, <&cpuflpr_vevif_tx 15>;
|
||||||
|
mbox-names = "rx", "tx";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpuflpr_vevif_rx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&cpuflpr_vevif_tx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
|
@ -68,3 +68,19 @@ tests:
|
||||||
- "Pong \\(on channel 0\\)"
|
- "Pong \\(on channel 0\\)"
|
||||||
- "Ping \\(on channel 1\\)"
|
- "Ping \\(on channel 1\\)"
|
||||||
- "Pong \\(on channel 1\\)"
|
- "Pong \\(on channel 1\\)"
|
||||||
|
|
||||||
|
sample.drivers.mbox.nrf54l15:
|
||||||
|
platform_allow:
|
||||||
|
- nrf54l15pdk/nrf54l15/cpuapp
|
||||||
|
integration_platforms:
|
||||||
|
- nrf54l15pdk/nrf54l15/cpuapp
|
||||||
|
extra_args:
|
||||||
|
mbox_SNIPPET=nordic-flpr
|
||||||
|
sysbuild: true
|
||||||
|
harness: console
|
||||||
|
harness_config:
|
||||||
|
type: multi_line
|
||||||
|
ordered: false
|
||||||
|
regex:
|
||||||
|
- "Ping \\(on channel 16\\)"
|
||||||
|
- "Pong \\(on channel 15\\)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue