Skip to content

Commit df86315

Browse files
FRASTMkartben
authored andcommitted
tests: drivers: flash RDP testing on stm32h7
Add the configuration to run the testcase with READOUT_PROTECTION (RDP) on stm32h7 disco kits Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parent 3696ee0 commit df86315

File tree

7 files changed

+75
-0
lines changed

7 files changed

+75
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_FLASH_STM32_QSPI=n
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 STMicroelectronics
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+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_FLASH_STM32_QSPI=n
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2024 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &storage_partition;
8+
9+
&quadspi {
10+
status = "disabled";
11+
};
12+
13+
&flash0 {
14+
partitions {
15+
compatible = "fixed-partitions";
16+
#address-cells = <1>;
17+
#size-cells = <1>;
18+
19+
/* Reserve 4KiB of flash for storage_partition. */
20+
storage_partition: partition@1f000 {
21+
label = "storage";
22+
reg = <0x0001f000 DT_SIZE_K(4)>;
23+
};
24+
};
25+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_FLASH_STM32_QSPI=n
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 STMicroelectronics
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@1f000 {
15+
label = "storage";
16+
reg = <0x0001f000 DT_SIZE_K(4)>;
17+
};
18+
};
19+
};

tests/drivers/flash/stm32/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,12 @@ tests:
4242
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
4343
filter: dt_compat_enabled("st,stm32f7-flash-controller") and
4444
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
45+
drivers.flash.stm32.h7:
46+
platform_allow:
47+
- stm32h735g_disco
48+
- stm32h750b_dk
49+
- stm32h745i_disco/stm32h745xx/m7
50+
extra_configs:
51+
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
52+
filter: dt_compat_enabled("st,stm32h7-flash-controller") and
53+
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")

0 commit comments

Comments
 (0)