LS1046A custom board QSPI flash read/write not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1046A custom board QSPI flash read/write not working

389 Views
humhh
Contributor II

Hello all:

             Our LS1046a custom board use one QSPI A and flash s25fs512,in uboot stage,it can detect,but read or write not working.

when spi-rx-bus-width/spi-tx-bus-width is 1,read back is all 0; when spi-rx-bus-width/spi-tx-bus-width is 4,read back is all 0xEE,I don't know what and where is the root cause, thanks.

 

sf probe 0:0
SF: Detected s25fs512s with page size 256 Bytes, erase size 256 KiB, total 64 MiB

&qspi {
status = "okay";

s25fs512: flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <20000000>;
reg = <0>;/*
spi-rx-bus-width = <4>;
spi-tx-bus-width = <4>;*/
status = "okay";
};
};

 

=> md.l 0xa0000000 32
a0000000: 55aa55aa aa55aa55 abcdef01 12345678 .U.UU.U.....xV4.
a0000010: 55555555 aaaaaaaa 00000000 ffffffff UUUU............

sf read $load_addr 0 8
device 0 offset 0x0, size 0x8

SF: 8 bytes @ 0x0 Read: OK
=> md.l 0xa0000000 32
a0000000: eeeeeeee eeeeeeee abcdef01 12345678 ............xV4.
a0000010: 55555555 aaaaaaaa 00000000 ffffffff UUUU............

 


CONFIG_MTD=y
CONFIG_MTD_RAW_NAND=y
# CONFIG_SPI_FLASH_BAR is not set
CONFIG_SPI_FLASH_SPANSION=y
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set

CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_FSL_QSPI=y

 

0 Kudos
Reply
1 Reply

350 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

you can try the QSPI verification in U-boot/linux provided in LSDK 21.08, in chapter 7.2.9 Quad Serial Peripheral Interface (QSPI)

0 Kudos
Reply