/* * Flash partition layout for STM32G431 (128KB total flash) * MCUboot + single application slot configuration */ &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x0000A000>; /* 40 KB for MCUboot */ read-only; }; slot0_partition: partition@A000 { label = "image-0"; reg = <0x0000A000 0x00016000>; /* 88 KB for application */ }; }; }; / { chosen { zephyr,code-partition = &slot0_partition; }; };