S25HL512T QSPI Flash configuration

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

cross mob
lock attach
Attachments are accessible only for community members.
Shraddha
Level 3
Level 3
First solution authored 50 sign-ins 10 questions asked

For 1s-1s-1s Iam writing to an register,  miso line is not able to detect can you refer the attach images and tell me what is the issue ,Iam giving configuration 

 command :- 71h (8 bits)

address:- 0x00800001 to  0x00800005  (32bits )

data:- A5(8 BITS ) 

0 Likes
1 Solution
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,


You are using 4-Byte address mode and by default 71h command takes 3-Byte address.

First you need to change 3-Byte addressing mode to 4-Byte addressing mode by using EN4BA_0_0 (B7h) command to enter 4-Byte addressing mode.

 

Also 05h command is used to read Status Register 1, but you are writing the data on the address 0x00800002 which is Configuration Register 1.

 

You have to use RDCR1_0_0 (35h) command to read this data.

 

You need to follow below instruction set command,

CS(low)> B7h > CS(high)>CS(low)> WREN (06h)>CS(high)>CS(low)>71h->address 0x00800002->data A5>CS(high)>CS(low)>35h>CS(high)

 

Regards,

Yuvraj

 

View solution in original post

12 Replies
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,

 

Thank you for contacting Infineon Technologies.

 

Could you please confirm are you able to read device ID correctly, can you please share the waveform of the same?

 

Regards,

Yuvraj 

0 Likes
lock attach
Attachments are accessible only for community members.

wave form of reading device ID giving 9F command can you pls tell why its not getting written 

0 Likes
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,

Before passing Write Any Register (71h) you have to do Write Enable (WRENB_0_0) (06h) it sets the Write Enable Latch bit of the Status Register 1 to 1 to enable write, program and erase transactions.

Regards,

Yuvraj

0 Likes
lock attach
Attachments are accessible only for community members.

After passing command 06h also still its not triggering you can refer the waveform 

06h--->71h--->address 0x00800002--->data A5--->for reading 

0 Likes
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,

From the waveform, it looks like you are not making CS# high after sending the WREN command.

After that you need to do CS# Low, 71, ADDR, DATA, CS# High.

 

Regards,

Yuvraj 

0 Likes
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,


Can you provide the read waveform after making a correction to the WREN command?

 

Regards,

Yuvraj 

0 Likes
Shraddha
Level 3
Level 3
First solution authored 50 sign-ins 10 questions asked

you mean to say after sending WREN (06 command) i should send read command of 32 bit ?

 

0 Likes
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,


No, read the data after passing the (71h command).

 

Regards,

Yuvraj 

0 Likes
lock attach
Attachments are accessible only for community members.
Shraddha
Level 3
Level 3
First solution authored 50 sign-ins 10 questions asked

refer to the attach waveform

0 Likes
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,


Could you please let us know which command you are using to read the data?

 

Regards,

Yuvraj  

0 Likes
Yuvraj
Moderator
Moderator
Moderator
250 replies posted 25 likes received 100 solutions authored

Hi,


You are using 4-Byte address mode and by default 71h command takes 3-Byte address.

First you need to change 3-Byte addressing mode to 4-Byte addressing mode by using EN4BA_0_0 (B7h) command to enter 4-Byte addressing mode.

 

Also 05h command is used to read Status Register 1, but you are writing the data on the address 0x00800002 which is Configuration Register 1.

 

You have to use RDCR1_0_0 (35h) command to read this data.

 

You need to follow below instruction set command,

CS(low)> B7h > CS(high)>CS(low)> WREN (06h)>CS(high)>CS(low)>71h->address 0x00800002->data A5>CS(high)>CS(low)>35h>CS(high)

 

Regards,

Yuvraj

 

lock attach
Attachments are accessible only for community members.
Shraddha
Level 3
Level 3
First solution authored 50 sign-ins 10 questions asked

MISO line i can observe the  toggling but for every data its writing 10101010 1010101  ( after every 8 clock cycles its miso line high) , for  AB also its writing 10101010 10101010 . you can refer the waveform .what could be the issue?   

0 Likes