Skip to content

Commit a0aa7d6

Browse files
henrikbrixandersentpambor
authored andcommitted
tests: drivers: retained_mem: api: add STM32 backup SRAM example
Add example configuration fir testing the retained memory driver using STM32 backup SRAM as the backend. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent d1398e9 commit a0aa7d6

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_STM32_BACKUP_SRAM_INIT_PRIORITY=40
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2025 Henrik Brix Andersen <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
retainedmemtestdevice = &retainedmem0;
9+
};
10+
};
11+
12+
&backup_sram {
13+
status = "okay";
14+
15+
retainedmem0: retainedmem {
16+
compatible = "zephyr,retained-ram";
17+
status = "okay";
18+
};
19+
};

tests/drivers/retained_mem/api/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ tests:
1616
- nrf54l15dk/nrf54l15/cpuapp
1717
- nrf54l20pdk/nrf54l20/cpuapp
1818
- nrf54lm20dk/nrf54lm20a/cpuapp
19+
- nucleo_h723zg/stm32h723xx
1920
- ophelia4ev/nrf54l15/cpuapp
2021
integration_platforms:
2122
- qemu_cortex_m3

0 commit comments

Comments
 (0)