From 8eb985ecaa0ada7bfc33e213b0b2c094abbfd0f2 Mon Sep 17 00:00:00 2001 From: Fabrice DJIATSA Date: Thu, 16 Oct 2025 17:48:57 +0200 Subject: [PATCH 1/2] tests: drivers: flash: common: boards: set flash size of nucleo_wb55rg update CONFIG_TEST_DRIVER_FLASH_SIZE to match actual flash size. The test was previously failing due to a mismatch between the expected flash size (827392 bytes) and the actual size reported by flash_get_size() (1048576 bytes). This update sets CONFIG_TEST_DRIVER_FLASH_SIZE to 1048576 to reflect the correct size of the flash device as defined in the reference manual for the NUCLEO_WB55RG board. The increase in required flash size (216K) for the full stack M0 binary also justifies aligning the test configuration with the actual hardware capabilities. This change ensures the test passes and accurately reflects the flash memory layout. Signed-off-by: Fabrice DJIATSA --- tests/drivers/flash/common/boards/nucleo_wb55rg.conf | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/drivers/flash/common/boards/nucleo_wb55rg.conf diff --git a/tests/drivers/flash/common/boards/nucleo_wb55rg.conf b/tests/drivers/flash/common/boards/nucleo_wb55rg.conf new file mode 100644 index 0000000000000..fef28350bf70f --- /dev/null +++ b/tests/drivers/flash/common/boards/nucleo_wb55rg.conf @@ -0,0 +1 @@ +CONFIG_TEST_DRIVER_FLASH_SIZE=1048576 From 04dc97aded90fbc1e60bdae1684673e0c7d17d37 Mon Sep 17 00:00:00 2001 From: Fabrice DJIATSA Date: Mon, 13 Oct 2025 17:59:08 +0200 Subject: [PATCH 2/2] boards: st: nucleo_h753zi: update and reorder flash partitions - Increase the size of the storage partition to 2 sectors because a single sector makes it unusable as reported by test_flash_copy. This change will breaks backward compatibility regarding MCUboot firmware update support. Add a migration guide note about changes to the flash layout and warn users about potential firmware upgrade failures. Signed-off-by: Fabrice DJIATSA --- boards/st/nucleo_h753zi/nucleo_h753zi.dts | 22 ++++++++-------------- doc/releases/migration-guide-4.3.rst | 4 ++++ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/boards/st/nucleo_h753zi/nucleo_h753zi.dts b/boards/st/nucleo_h753zi/nucleo_h753zi.dts index ce88c39afdc56..5a189536ecd06 100644 --- a/boards/st/nucleo_h753zi/nucleo_h753zi.dts +++ b/boards/st/nucleo_h753zi/nucleo_h753zi.dts @@ -248,28 +248,22 @@ zephyr_udc0: &usbotg_fs { read-only; }; - /* storage: 128KB for settings */ - storage_partition: partition@20000 { - label = "storage"; - reg = <0x00020000 DT_SIZE_K(128)>; - }; - /* application image slot: 256KB */ - slot0_partition: partition@40000 { + slot0_partition: partition@20000 { label = "image-0"; - reg = <0x00040000 DT_SIZE_K(256)>; + reg = <0x00020000 DT_SIZE_K(256)>; }; /* backup slot: 256KB */ - slot1_partition: partition@80000 { + slot1_partition: partition@60000 { label = "image-1"; - reg = <0x00080000 DT_SIZE_K(256)>; + reg = <0x00060000 DT_SIZE_K(256)>; }; - /* swap slot: 128KB */ - scratch_partition: partition@c0000 { - label = "image-scratch"; - reg = <0x000c0000 DT_SIZE_K(128)>; + /* storage: 256KB for settings */ + storage_partition: partition@a0000 { + label = "storage"; + reg = <0x000a0000 DT_SIZE_K(256)>; }; }; }; diff --git a/doc/releases/migration-guide-4.3.rst b/doc/releases/migration-guide-4.3.rst index 930bcf3d60d2b..7902e1ea37318 100644 --- a/doc/releases/migration-guide-4.3.rst +++ b/doc/releases/migration-guide-4.3.rst @@ -68,6 +68,10 @@ Boards external NOR flash. This change currently prevents upgrade from older Zephyr release images to Zephyr 4.3 release images. More details in the TF-M migration and release notes. +* nucleo_h753zi: the flash layout was updated and firmware upgrade may fail due to layout + incompatibility with the previous layout. The new layout includes storage partition enlarged to + 2 sectors, scratch partition removed and all flash partitions reordered for better structure. + * mimxrt11x0: renamed lpadc1 to lpadc2 and renamed lpadc0 to lpadc1. * NXP ``frdm_mcxa166`` is renamed to ``frdm_mcxa346``.