boards: arm: nucleo_l476rg: add storage partition

Add fixed-partition to be used as storage partition with the size of 32KB.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
This commit is contained in:
Ali Hozhabri 2023-07-18 14:31:59 +02:00 committed by Fabio Baltieri
parent 6719caf05e
commit 2e09dc4eb0

View file

@ -179,3 +179,17 @@
&vbat {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Set 32KB of storage at the end of 1024KB flash */
storage_partition: partition@f8000 {
label = "storage";
reg = <0x000f8000 DT_SIZE_K(32)>;
};
};
};