Skip to content

Commit 0b67e3f

Browse files
NeilChen93kartben
authored andcommitted
boards: frdm_mcxa153: add flash support
- enable flash support - verified tests/drivers/flash/common Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
1 parent bd22a4a commit 0b67e3f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

boards/nxp/frdm_mcxa153/frdm_mcxa153.dts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
zephyr,sram = &sram0;
2727
zephyr,flash = &flash;
2828
zephyr,flash-controller = &fmu;
29+
zephyr,code-partition = &slot0_partition;
2930
zephyr,console = &lpuart0;
3031
zephyr,shell-uart = &lpuart0;
3132
};
@@ -66,6 +67,32 @@
6667
};
6768
};
6869

70+
&flash {
71+
partitions {
72+
compatible = "fixed-partitions";
73+
#address-cells = <1>;
74+
#size-cells = <1>;
75+
76+
boot_partition: partition@0 {
77+
label = "mcuboot";
78+
reg = <0x00000000 DT_SIZE_K(32)>;
79+
read-only;
80+
};
81+
slot0_partition: partition@8000 {
82+
label = "image-0";
83+
reg = <0x00008000 DT_SIZE_K(40)>;
84+
};
85+
slot1_partition: partition@12000 {
86+
label = "image-1";
87+
reg = <0x00012000 DT_SIZE_K(40)>;
88+
};
89+
storage_partition: partition@1C000 {
90+
label = "storage";
91+
reg = <0x0001C000 DT_SIZE_K(16)>;
92+
};
93+
};
94+
};
95+
6996
&gpio0 {
7097
status = "okay";
7198
};

boards/nxp/frdm_mcxa153/frdm_mcxa153.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ toolchain:
1515
- gnuarmemb
1616
supported:
1717
- dma
18+
- flash
1819
- gpio
1920
- uart
2021
vendor: nxp

0 commit comments

Comments
 (0)