Skip to content

Commit

Permalink
boards: nucleo_f446re flash layout
Browse files Browse the repository at this point in the history
Adds the missing flash partition layout to the board dts

Signed-off-by: Tom Burdick <[email protected]>
  • Loading branch information
teburd authored and MaureenHelm committed Oct 10, 2019
1 parent 99e96da commit 1e919f2
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions boards/arm/nucleo_f446re/nucleo_f446re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,45 @@
&rtc {
status = "okay";
};

&flash0 {
/*
* For more information, see:
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x00010000>;
read-only;
};

/*
* The flash starting at 0x00010000 and ending at
* 0x0001ffff (sectors 16-31) is reserved for use
* by the application.
*/
storage_partition: partition@10000 {
label = "storage";
reg = <0x00010000 0x00010000>;
};

slot0_partition: partition@20000 {
label = "image-0";
reg = <0x00020000 0x00020000>;
};
slot1_partition: partition@40000 {
label = "image-1";
reg = <0x00040000 0x00020000>;
};
scratch_partition: partition@60000 {
label = "image-scratch";
reg = <0x00060000 0x00020000>;
};
};
};

0 comments on commit 1e919f2

Please sign in to comment.