File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -67,3 +67,41 @@ arduino_serial: &lpuart1 {
6767 current-speed = <115200>;
6868 status = "ok";
6969};
70+
71+ &flash0 {
72+ /*
73+ * For more information, see:
74+ * http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
75+ */
76+ partitions {
77+ compatible = "fixed-partitions";
78+ #address-cells = <1>;
79+ #size-cells = <1>;
80+
81+ /* Set all partitions with first 812K of flash */
82+ /* last 212K are reseved for M0 usage */
83+ /* Configure partitions to make use of the whole 812K */
84+
85+ boot_partition: partition@0 {
86+ label = "mcuboot";
87+ reg = <0x00000000 0xc000>;
88+ };
89+ slot0_partition: partition@c000 {
90+ label = "image-0";
91+ reg = <0x0000C000 0x5b800>;
92+ };
93+ slot1_partition: partition@67800 {
94+ label = "image-1";
95+ reg = <0x00067800 0x5b800>;
96+ };
97+ scratch_partition: partition@c3000 {
98+ label = "image-scratch";
99+ reg = <0x000c3000 0x4000>;
100+ };
101+ storage_partition: partition@c7000 {
102+ label = "storage";
103+ reg = <0x000c7000 0x4000>;
104+ };
105+
106+ };
107+ };
You can’t perform that action at this time.
0 commit comments