Это правка dts
chosen {
zephyr,flash = &sdram_code;
zephyr,sram = &sdram_data;
};
sdram_code: memory@80000000 {
device_type = "memory";
reg = <0x80000000 DT_SIZE_M(16)>;
};
sdram_data: memory@81000000 {
device_type = "memory";
reg = <0x81000000 DT_SIZE_M(16)>;
};
Это по умолчанию:
zephyr,flash = &w25q32jvwj0;
zephyr,sram = &sdram0;
sdram0: memory@80000000 {
/* Micron MT48LC16M16A2B4-6AIT:G */
device_type = "memory";
reg = <0x80000000 DT_SIZE_M(32)>;
};
&flexspi {
status = "okay";
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(4)>;
/* 32 megabit internal flash present on chip */
w25q32jvwj0: w25q32jvwj@0 {
compatible = "nxp,imx-flexspi-nor";
size = <DT_SIZE_M(4 * 8)>;
reg = <0>;
spi-max-frequency = <133000000>;
status = "okay";
jedec-id = [ef 40 16];
erase-block-size = <DT_SIZE_K(4)>;
write-block-size = <1>;
};
};