diff --git a/tests/drivers/flash/stm32/boards/nucleo_f746zg.overlay b/tests/drivers/flash/stm32/boards/nucleo_f746zg.overlay new file mode 100644 index 00000000000..ad661beb63b --- /dev/null +++ b/tests/drivers/flash/stm32/boards/nucleo_f746zg.overlay @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2024 SILA Embedded Solutions GmbH + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* Reserve 4KiB of flash for storage_partition. */ + storage_partition: partition@f0000 { + label = "storage"; + reg = <0x000f0000 DT_SIZE_K(4)>; + }; + }; +}; diff --git a/tests/drivers/flash/stm32/testcase.yaml b/tests/drivers/flash/stm32/testcase.yaml index c65df8bdffb..275c8aad726 100644 --- a/tests/drivers/flash/stm32/testcase.yaml +++ b/tests/drivers/flash/stm32/testcase.yaml @@ -35,3 +35,10 @@ tests: - CONFIG_FLASH_STM32_READOUT_PROTECTION=y filter: dt_compat_enabled("st,stm32g4-flash-controller") and dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions") + drivers.flash.stm32.f7: + platform_allow: + - nucleo_f746zg + extra_configs: + - CONFIG_FLASH_STM32_READOUT_PROTECTION=y + filter: dt_compat_enabled("st,stm32f7-flash-controller") and + dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")