Unable to erase QSPI nor flash (S25HS512T) interfaced to custom LS1046A board

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

Unable to erase QSPI nor flash (S25HS512T) interfaced to custom LS1046A board

768 Views
TrinathK
Contributor III

Hi,

I have a QSPI NOR flash interface (S25HS512T) in a custom LS1046 board (Using QSPI-A). Both read and write are working fine but flash erase is not working. Here is my configuration in .dts file

&qspi {
status = "okay";

flash0: s25hs512t@0 {
compatible = "spansion,s25hs512t", "jedec,spi-nor";
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <40000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <4>;
reg = <0>;
status = "okay";
};
};

 

I've tried erasing the flash in all possible ways

a) Used mtd_debug erase

b) flash_erase ..

c) flash_eraseall ..

d) user application -> ioctl(fd, MEMERASE, &ei);

e) Uboot command -> sf erase ...

User application and "sf erase ..." are not giving any errors (or) warnings. But physically, flash blocks are not getting erased. Also flash locking is disabled.

Please help me with this issue if possible.

Thanks in advance.

0 Kudos
Reply
1 Reply

739 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hi,

You could try to test QSPI Flash erasing using CodeWarrior and CodeWarrior TAP

Check writes protection possibility of your QSPI Flash.

See the S25HS512T datasheet, section 4.10 Erase

Regards,

0 Kudos
Reply