Skip to content

Commit

Permalink
boards: stm: nucleo_h723zg: added flash partition to work with mcuboot
Browse files Browse the repository at this point in the history
Added code partitioning for ST Nucleo H723ZG board.
Defined flash partitions including "mcuboot," "image-0,", "image-1"
and "image-scratch".

Signed-off-by: Thomas Bouston <[email protected]>
  • Loading branch information
thomasbouston authored Jul 5, 2024
1 parent 34e4edc commit 45fbe89
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions boards/st/nucleo_h723zg/nucleo_h723zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
zephyr,dtcm = &dtcm;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
};

leds: leds {
Expand Down Expand Up @@ -190,3 +191,36 @@ zephyr_udc0: &usbotg_hs {
&rng {
status = "okay";
};

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

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

/* primary application image slot: 384KB */
slot0_partition: partition@20000 {
label = "image-0";
reg = <0x00020000 DT_SIZE_K(384)>;
};

/* secondary application image slot: 384KB */
slot1_partition: partition@80000 {
label = "image-1";
reg = <0x00080000 DT_SIZE_K(384)>;
};

/* swap slot: 128KB */
scratch_partition: partition@e0000 {
label = "image-scratch";
reg = <0x000e0000 DT_SIZE_K(128)>;
};
};
};

0 comments on commit 45fbe89

Please sign in to comment.