- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm using a S25FL512SAGBHI210 in my prototype.
I encountered one issue with one of my prototype.
I'm using the Flash in dual and quad SPI mode (multi masters).
When I try to do a WRR of SR1 or CR1, the SR1 register goes at 0xDF wich means there is a program error.
SR1 = 0xDF
CR1 = 0xEA
I don't understand why i can't wright into the configuration register, because in Quad SPI mode WP is internally set to high (inactive).
I try to change the SRWD bit.
When I do a SOFT_RESET:
SR1 = 0x9C
CR1 = 0xEA
(It seams it's not the default values show into the datasheet).
Have you any ideas ?
Best regards,
Kévin T
- Labels:
-
Serial NOR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin,
We will look into the issue and get back to you.
Thank you and have a nice day
Regards,
Bushra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin
CR1=0xEA, i.e. BPNV=1. That means BP bits will be all 1s after HW Reset or POR. So SR1=0x9C is not unusual.
The reason you got program error is because SRWD=1. Please set it to 0.
So if you do this:
- Issue WREN (0x06) command;
- Issue WRR with one byte of data 0x1C;
- Wait to finish
- Check to see if SR=0x1C
Then after that, you can change other bits in SR and CR if you want.
Please let me know if this resolves the issue.
Thank you and have a nice day
Regards,
Bushra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Bushra,
Thanks for your answer.
I know I need to set the SRWD to 0, but it doesn't work.
When I send à WREN SR1=0x9E
After I send à WRR
After I try to write the SR1 register ( for exemple 0x1C)
SR1 goes directly to 0xDF ....
So I don't undesrtand why I can't write SR1.
Best regards,
Kévin T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin,
Please send me the WRR command waveform.
Thank you
Regards,
Bushra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Bushra,
Thanks for your answer.
WREN :
WRR+SR1+CR1
Best regards,
Kévin T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin,
We need to see the CS# in the waveforms
Thank you
Regards,
Bushra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Bushra,
Thanks for your answer.
CH1 : CS
CH2 : CLK
CH3 : MOSI
WREN :
WRR+SR1+CR1 :
Best regards,
Kévin T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kevin,
We would like to keep this debugging simple. When you issue WRR command, can you only issue with 1 byte of data, instead of 2?
Please capture a waveform that shows WRR command with 0x1C as the SR data. No need to enter data for CR1. Please show the entire CS# low sequence, i.e. from CS# goes low to CS# goes high. We don't see the CS# positive edge in your above diagram.
With the simple WRR write, please verify what the SR value is after the write. Please show the RDSR waveform too.
Thanks,
Zhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin,
Please let us know what the SR value is after the write and show the RDSR waveform.
Thank you
Regards,
Bushra