Skip to content

Commit d561b50

Browse files
benediktibknashif
authored andcommitted
tests: drivers: flash: stm32: add nucleo_f746zg
Add the nucleo_f746zg to the tests for the flash driver. Signed-off-by: Benedikt Schmidt <[email protected]>
1 parent f8399bd commit d561b50

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 SILA Embedded Solutions GmbH
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
partitions {
9+
compatible = "fixed-partitions";
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
/* Reserve 4KiB of flash for storage_partition. */
14+
storage_partition: partition@f0000 {
15+
label = "storage";
16+
reg = <0x000f0000 DT_SIZE_K(4)>;
17+
};
18+
};
19+
};

tests/drivers/flash/stm32/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ tests:
3535
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
3636
filter: dt_compat_enabled("st,stm32g4-flash-controller") and
3737
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
38+
drivers.flash.stm32.f7:
39+
platform_allow:
40+
- nucleo_f746zg
41+
extra_configs:
42+
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
43+
filter: dt_compat_enabled("st,stm32f7-flash-controller") and
44+
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")

0 commit comments

Comments
 (0)