Skip to content
Merged
24 changes: 8 additions & 16 deletions boards/st/b_l4s5i_iot01a/b_l4s5i_iot01a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -181,31 +181,23 @@

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
reg = <0x0 DT_SIZE_K(64)>;
read-only;
};

/*
* The flash starting at offset 0x10000 and ending at
* offset 0x1ffff is reserved for use by the application.
*/

slot0_partition: partition@20000 {
slot0_partition: partition@1000 {
label = "image-0";
reg = <0x00020000 DT_SIZE_K(432)>;
reg = <0x1000 DT_SIZE_K(976)>;
};
slot1_partition: partition@8c000 {

slot1_partition: partition@104000 {
label = "image-1";
reg = <0x0008C000 DT_SIZE_K(432)>;
};
scratch_partition: partition@f8000 {
label = "image-scratch";
reg = <0x000F8000 DT_SIZE_K(16)>;
reg = <0x104000 DT_SIZE_K(976)>;
};

storage_partition: partition@fc000 {
storage_partition: partition@1f8000 {
label = "storage";
reg = <0x000fc000 DT_SIZE_K(16)>;
reg = <0x1f8000 DT_SIZE_K(32)>;
};
};
};
Expand Down
21 changes: 8 additions & 13 deletions boards/st/disco_l475_iot1/disco_l475_iot1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -224,23 +224,18 @@

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
reg = <0x0 DT_SIZE_K(64)>;
read-only;
};

/*
* The flash starting at offset 0x10000 and ending at
* offset 0x1ffff is reserved for use by the application.
*/

slot0_partition: partition@20000 {
slot0_partition: partition@1000 {
label = "image-0";
reg = <0x00020000 DT_SIZE_K(864)>;
reg = <0x1000 DT_SIZE_K(928)>;
};

scratch_partition: partition@f8000 {
label = "image-scratch";
reg = <0x000F8000 DT_SIZE_K(16)>;
storage_partition: partition@f8000 {
label = "storage";
reg = <0xf8000 DT_SIZE_K(32)>;
};
};
};
Expand Down Expand Up @@ -343,8 +338,8 @@ zephyr_udc0: &usbotg_fs {
reg = <0x00000000 DT_SIZE_K(864)>;
};

storage_partition: partition@d8000 {
label = "storage";
slot2_partition: partition@d8000 {
label = "image-3";
reg = <0x000d8000 DT_SIZE_M(7)>;
};
};
Expand Down
30 changes: 25 additions & 5 deletions boards/st/nucleo_f207zg/nucleo_f207zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,32 @@ zephyr_udc0: &usbotg_fs {
#address-cells = <1>;
#size-cells = <1>;

/* Last sector of size 128KB at the end of 1MB flash is set
* for storage.
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 DT_SIZE_K(32)>;
read-only;
};

/*
* nvs subsystem requires 2 sectors with a max total of 32K
* On F2 series, the only option is to use the following
* partition, which is compatible with mcuboot usage.
* Keep it commented in order it is not used by CI.
*
* storage_partition: partition@8000 {
* label = "storage";
* reg = <0x8000 DT_SIZE_K(32)>;
* };
*/
storage_partition: partition@e0000 {
label = "storage";
reg = <0x000e0000 DT_SIZE_K(128)>;

slot0_partition: partition@20000 {
label = "image-0";
reg = <0x20000 DT_SIZE_K(448)>;
};

slot1_partition: partition@90000 {
label = "image-1";
reg = <0x90000 DT_SIZE_K(448)>;
};
};
};
Expand Down
20 changes: 13 additions & 7 deletions boards/st/nucleo_f429zi/nucleo_f429zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,24 @@ zephyr_udc0: &usbotg_fs {
#address-cells = <1>;
#size-cells = <1>;

/* 64KB for bootloader */
/* 32KB for bootloader */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
reg = <0x00000000 DT_SIZE_K(32)>;
read-only;
};

/* storage: 64KB for settings */
storage_partition: partition@10000 {
label = "storage";
reg = <0x00010000 DT_SIZE_K(64)>;
};
/*
* nvs subsystem requires 2 sectors with a max total of 32K
* On F4 series, the only option is to use the following
* partition, which is compatible with mcuboot usage.
* Keep it commented in order it is not used by CI.
*
* storage_partition: partition@8000 {
* label = "storage";
* reg = <0x0008000 DT_SIZE_K(32)>;
* };
*/

/* application image slot: 256KB */
slot0_partition: partition@20000 {
Expand Down
1 change: 0 additions & 1 deletion boards/st/nucleo_f429zi/nucleo_f429zi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ supported:
- adc
- dac
- dma
- nvs
- rtc
- usbd
vendor: st
6 changes: 3 additions & 3 deletions boards/st/nucleo_g070rb/nucleo_g070rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@
#address-cells = <1>;
#size-cells = <1>;

/* Set 2KB of storage at the end of 128KB flash */
storage_partition: partition@1f800 {
/* Set 4KB of storage at the end of 128KB flash */
storage_partition: partition@1f000 {
label = "storage";
reg = <0x0001f800 DT_SIZE_K(2)>;
reg = <0x0001f000 DT_SIZE_K(4)>;
};
};
};
Expand Down
6 changes: 3 additions & 3 deletions boards/st/nucleo_g071rb/nucleo_g071rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@
#address-cells = <1>;
#size-cells = <1>;

/* Set 2KB of storage at the end of 128KB flash */
storage_partition: partition@1f800 {
/* Set 4KB of storage at the end of 128KB flash */
storage_partition: partition@1f000 {
label = "storage";
reg = <0x0001f800 DT_SIZE_K(2)>;
reg = <0x0001f000 DT_SIZE_K(4)>;
};
};
};
Expand Down
6 changes: 3 additions & 3 deletions boards/st/nucleo_l152re/nucleo_l152re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@
#address-cells = <1>;
#size-cells = <1>;

/* Set 2KB of storage at the end of 512KB flash */
storage_partition: partition@7f800 {
/* Set 8KB of storage at the end of 512KB flash */
storage_partition: partition@7e000 {
label = "storage";
reg = <0x0007f800 DT_SIZE_K(2)>;
reg = <0x0007e000 DT_SIZE_K(8)>;
};
};
};
Expand Down
1 change: 0 additions & 1 deletion samples/subsys/nvs/boards/disco_l475_iot1.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/


/delete-node/ &scratch_partition;
/delete-node/ &storage_partition;

/ {
Expand Down
2 changes: 0 additions & 2 deletions samples/subsys/nvs/boards/nucleo_f429zi.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K
Expand Down
6 changes: 4 additions & 2 deletions tests/drivers/flash/common/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,10 @@ static void test_flash_copy_inner(const struct device *src_dev, off_t src_offset

if ((expected_result == 0) && (size != 0) && (src_offset != dst_offset)) {
/* verify a successful copy */
zassert_ok(flash_read(flash_dev, TEST_AREA_OFFSET, expected, EXPECTED_SIZE));
for (int i = 0; i < EXPECTED_SIZE; i++) {
off_t copy_size = MIN(size, EXPECTED_SIZE);

zassert_ok(flash_read(flash_dev, TEST_AREA_OFFSET, expected, copy_size));
for (int i = 0; i < copy_size; i++) {
zassert_equal(buf[i], 0xaa, "incorrect data (%02x) at %d", buf[i], i);
}
}
Expand Down
22 changes: 0 additions & 22 deletions tests/drivers/flash/common/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,6 @@ tests:
and dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions"))
integration_platforms:
- nrf9161dk/nrf9161/ns
drivers.flash.common.stm32:
platform_allow:
- nucleo_f103rb
- nucleo_f207zg
- stm32f3_disco
- nucleo_f429zi
- stm32f746g_disco
- nucleo_f767zi
- nucleo_g0b1re
- nucleo_g474re
- nucleo_h743zi
- nucleo_l152re
- disco_l475_iot1
- nucleo_wb55rg
- nucleo_wl55jc
- stm32l562e_dk
- stm32l562e_dk/stm32l562xx/ns
integration_platforms:
- nucleo_f103rb
filter: (dt_compat_enabled("st,stm32-flash-controller") or
dt_compat_enabled("st,stm32h7-flash-controller")) and
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
drivers.flash.common.mx25r_high_perf:
platform_allow: nrf52840dk/nrf52840
extra_args:
Expand Down
2 changes: 1 addition & 1 deletion tests/subsys/secure_storage/psa/its/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ common:
- native_sim
platform_exclude:
- qemu_cortex_m0 # settings subsystem initialization fails
timeout: 120
timeout: 600
tags:
- psa.secure_storage
tests:
Expand Down
Loading