S25HL512T QSPI Flash configuration

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

cross mob
Shraddha
Level 3
Level 3
First solution authored 50 sign-ins 10 questions asked

How to use safeboot cmds all register values are either FF or 00 

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

Hello,

Thank you for contacting Infineon Technology. 

Safeboot is to recover:

  1. Flash internal microcontroller initialization failure (Status Register1 = 0x61)
  2. Or Flash configuration corruption failure (Status Register1 = 0x41)

 

As all the register values are either FF or 00, it could be caused by some external reasons. So firstly we need to identify if it is flash corruption or external reasons by trying below:

  1. Change the host interface to 4S-4S-4S mode, read flash device ID. If it works, then means the flash is configured at QPI (4-4-4) mode. All the commands from host to flash should be sent in 4-4-4 mode.
  2. If step 1 does not work, change the host interface to 1S-1S-1S mode, read flash device ID. If it works, read Status Register1. If SR1=0x61 (which indicates flash microcontroller initialization failure), then do a Hardware reset. If SR1=0x41 (which indicates flash configuration corruption failure), then Clear Status Register1, and configure the flash configuration registers to expected values.
  3. If none of above two steps works, it will need to check flash connection, signals and POR timing etc.

 

Here is the flowchart for safeboot:

BushraH_91_0-1673495755010.jpeg

Hope this helps.

Thank you

Regards,

Bushra

 

View solution in original post

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

Hello,

Thank you for contacting Infineon Technology. 

Safeboot is to recover:

  1. Flash internal microcontroller initialization failure (Status Register1 = 0x61)
  2. Or Flash configuration corruption failure (Status Register1 = 0x41)

 

As all the register values are either FF or 00, it could be caused by some external reasons. So firstly we need to identify if it is flash corruption or external reasons by trying below:

  1. Change the host interface to 4S-4S-4S mode, read flash device ID. If it works, then means the flash is configured at QPI (4-4-4) mode. All the commands from host to flash should be sent in 4-4-4 mode.
  2. If step 1 does not work, change the host interface to 1S-1S-1S mode, read flash device ID. If it works, read Status Register1. If SR1=0x61 (which indicates flash microcontroller initialization failure), then do a Hardware reset. If SR1=0x41 (which indicates flash configuration corruption failure), then Clear Status Register1, and configure the flash configuration registers to expected values.
  3. If none of above two steps works, it will need to check flash connection, signals and POR timing etc.

 

Here is the flowchart for safeboot:

BushraH_91_0-1673495755010.jpeg

Hope this helps.

Thank you

Regards,

Bushra

 

0 Likes