Hello Everyone:
We are not able to set 'WEL' bit in Status Register 1, or even read back what is written in Memory. We are using a FPGA to interface with Serial Flash S25FL256S... . Below is the sequence of operations.
I am attaching some waveforms showing the operations. The file names of waveforms indicate the type of operation being performed. These waveforms are from Xilinx Vivado ILA. The signal names are mapped as below.
SCK: jb_cp_mem_clk_OBUF
CS#: cp_pMem_csN_OBUF
IO[3:0]: cp_mem_in_OBUF[3:0]
Below is some information about the operations shown in the waveforms.
1) Read JED ID & Issue WREN.jpg: This file shows that reading of JEDEC ID is working. After reading the ID, we are issuing 'WREN' Instruction to set the 'WEL' bit.
2) Erase Flash Array (P4E).jpg: Before writing we are erasing the sector at address 0x0.
3) Read Status register 1, RDSR1 .jpg: Reading Status Register 1, read back data is 0x0.
4) Page Program & Read Status Register.jpg: Write data to memory and read Status Register 1, read back data is still 0x0, WIP bit not set.
5) Read Status Register & Read Flash Array.jpg: Read status register and read data from memory. Status register is still 0x0 and data read from memory is all 0xFF. Four bytes were written and four bytes read back.
Did we miss anything from the datasheet? Are we doing something incorrectly? Please help!
Thank you so much.
Best regards,
Solved! Go to Solution.
Hello:
I was able to get SPI write and read to work by increasing delay between the time when CS# is asserted. I am testing Dual I/O and Quad I/O modes next.
Thank you so much.
Best regards,
Hello:
I was able to get SPI write and read to work by increasing delay between the time when CS# is asserted. I am testing Dual I/O and Quad I/O modes next.
Thank you so much.
Best regards,
Hello,
Can you please confirm that you are able to perform the operation after increasing the delay when the CS# is asserted?
Thanks,
Ronak
Hello:
Yes, SPI mode operations are working. I am also able to read in Dual SPI and Quad SPI mode. I am testing writes in Dual SPI and Quad SPI modes next.
Thank you so much.
Best regards,