MIMXRT1024 EVK Board QSPI Flash issues #42610
-
There is an On-Chip 32 Mbit QSPI Flash is used on the MIMXRT1024 According to the reference manual: This device has a jedec-id = [ef 40 16]; However I am looking at the latest nxp_rt1024.dtsi file and it is listed as a IS25WP032 which is an altogether different part and has an altogether different jedec-id &flexspi { Is this a mistake? I tried modifying this definition for flexspi in version 2.6 (version I am using). That version has the device listed as a IS25WP064 which is incorrect but has been changed to the above in 3.0. I am trying to get the zephyr/samples/drivers/flash_shell to run with this development kit but the system hard faults as soon as I run any flash command. Has anyone successfully run this particular example with the MIMXRT1024 development board? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Based off what you are seeing your issue may be that the default flash device name selected by the example is incorrect. Can you try issuing More details on your issue, if the above doesn't help:It does appear that the device name in the RT1024 EVK DTS is incorrect. However, the key property in that DTS file is You also need to explicitly set the flash device name using
|
Beta Was this translation helpful? Give feedback.
Thanks for letting me know about the flash set_device command.
I had already modified the nxp_rt1024.dtsi to the correct device: W25Q32JVWJ0. I tried the command flash set_device W25Q32JVWJ0
&flexspi {
status = "okay";
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(4)>;
w25q32jvwj0: w25q32jvwj@0 {
compatible = "nxp,imx-flexspi-nor";
size = <33554432>;
label = "W25Q32JVWJ0";
reg = <0>;
spi-max-frequency = <133000000>;
status = "okay";
jedec-id = [ef 40 16]; /* Winbond part */
erase-block-size = <4096>;
write-block-size = <1>;
};
};
Flash read and write commands work correctly now. Thanks.