S25FL512SAGBHI210 WRR issue

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
9 Replies
BushraH_91
Moderator
Moderator
Moderator
750 replies posted 50 likes received 250 solutions authored

Hello Kevin,

We will look into the issue and get back to you.

Thank you and have a nice day

Regards,

Bushra

0 Likes

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:

  1. Issue WREN (0x06) command;
  2. Issue WRR with one byte of data 0x1C;
  3. Wait to finish
  4. 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

0 Likes
Anonymous
Not applicable

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

0 Likes
BushraH_91
Moderator
Moderator
Moderator
750 replies posted 50 likes received 250 solutions authored

Hello Kevin,

Please send me the WRR command waveform.

Thank you

Regards,

Bushra

0 Likes
Anonymous
Not applicable

Hello Bushra,

Thanks for your answer.

WREN :

WREN.jpeg

WRR+SR1+CR1

WRR+SR1+CR1 - Copie.jpeg

Best regards,

Kévin T

0 Likes
BushraH_91
Moderator
Moderator
Moderator
750 replies posted 50 likes received 250 solutions authored

Hello Kevin,

We need to see the CS# in the waveforms

Thank you

Regards,

Bushra

0 Likes
Anonymous
Not applicable

Hello Bushra,

Thanks for your answer.

CH1 : CS

CH2 : CLK

CH3 : MOSI

WREN :

DS4_QuickPrint3.jpeg

WRR+SR1+CR1 :

DS4_QuickPrint5.jpeg

Best regards,

Kévin T

0 Likes
ZhiF_31
Employee
Employee
25 sign-ins 10 solutions authored 5 solutions authored

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

0 Likes
BushraH_91
Moderator
Moderator
Moderator
750 replies posted 50 likes received 250 solutions authored

Hello Kevin,

Please let us know what the SR value is after the write and show the RDSR waveform.

Thank you

Regards,

Bushra

0 Likes