SpiNor AT25FF321A Quad mode

Hello,

I am working on the driver for SpiNor AT25FF321A. I tried to set the Quad Enable (QE) bit in Status Register 2. But it seems not successful. The steps are as follows:

  1. Command 06h  - Write Enable
  2. Command 01h, data 00h - Write 0 to Status Register 1
  3. Command 06h - Write Enable
  4. Command 31h, data 02h - Write 02h to Status Register 2
  5. Command 05h - Read Status Register 1 for 1 byte and verify BP2:0 is 000
  6. Command 35h - Read Status Register 2 for 1 byte and verify the value is 02h

But in step 6, the value read back is 0. I tried to repeat the read every 1msec. 02h still cannot be seen.

After step 6 when I read the SpiNor memory using 6Bh (Quad Output Read Array), it always gives a fixed pattern 0xDD, and sometimes it is 0x11.