S26KL512S Erase sector part of next sector is 0

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

cross mob
algr_4779301
Level 1
Level 1

Hello,

When erasing S26KL512S memory sector. The data becomes FF but part of next sector is 0.

When I erase the sector I wait for the flash to be ready (Status Register (Device Ready Bit))

and I check the erase status is Ok (Status Register (Sector Erase Status Bit)).


Do you have an idea ?

Best Regards,

0 Likes
6 Replies
AlbertB_56
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 replies posted

Hello,

Thank you for contacting Cypress Semiconductor.

Just a few question to ask:

Which sector(s) you are attempting to erase?

What is the size of sector you are attempting to erase?

Which sector-erase command are you using to erase the sector?

Does this issue occur with other sectors, or to just one specific sector?

Does the Chip-Erase successfully erase the entire memory array (all sectors)?

Is the Advanced Sector Protection scheme applied to any of the sectors selected for erasure?

Please respond at your earliest convenience.

Thank you in advance...

Best regards,
Albert

Cypress Semiconductor Corp.

An Infineon Technologies Company

0 Likes

Hello,

Thank you for contacting Cypress Semiconductor.

Just a few question to ask:

Which sector(s) you are attempting to erase?

What is the size of sector you are attempting to erase?

Which sector-erase command are you using to erase the sector?

Does this issue occur with other sectors, or to just one specific sector?

Does the Chip-Erase successfully erase the entire memory array (all sectors)?

Is the Advanced Sector Protection scheme applied to any of the sectors selected for erasure?

Please respond at your earliest convenience.

Thank you in advance...

Best regards,
Albert

Cypress Semiconductor Corp.

An Infineon Technologies Company

0 Likes

Hello,

small precision this does not happen permanently but from time to time.

Which sector(s) you are attempting to erase?

it does not matter.

example :

if I delete sector 1 then sector 2 can have a part with 0s.

if I delete sector 2 then sector 1 can have a part with 0s.

I have not tested the other sectors

What is the size of sector you are attempting to erase?

1 sector (256 KB)

Which sector-erase command are you using to erase the sector?

Sector Erase :   555 AA  /  2AA 55  /  555 80 / 555 AA  /  2AA 55  /  SA 30

Status Register Read : 555 70 XXX RD  // Wait for device ready asserted

Evaluate Erase Status :  (SA)555  D0

Status Register Read : 555 70 XXX RD   // Sector erase error check

Does this issue occur with other sectors, or to just one specific sector?

I tested it only on the first 3 sectors

Does the Chip-Erase successfully erase the entire memory array (all sectors)?

the erasure is done on all secteus

Chip Erase:  555 AA /  2AA 55 / 555 80 /  555 AA / 2AA 55 / 555 10

Is the Advanced Sector Protection scheme applied to any of the sectors selected for erasure?

no protection system

Best regards,

0 Likes

Hello,

Just for my understanding, did you include ADR[16:11] as part of the address identifying the target parameter-sector

during the erase command sequence?

Please advise...

Best regards,

Albert

Cypress Semiconductor Corp.

An Infineon Technologies Company

0 Likes

Hello,

I use :

NVCR Configuration Register (factory default)

xVCR[9:8] Parameter-Sector Mapping  :

10 = Uniform Sectors with Read Password Sector mapped into lowest addresses. (factory default)

I did not include ADR[16:11] in address.

Address Sector 0 :  0x0000000

Address Sector 1 :  0x0020000

Address Sector 2 :  0x0040000

Best Regard,

0 Likes

Hello,

Not quite sure I fully understand you last response.

The Sector size of sector 0, 1, and 2 are 128KB, each; but you had stated that the default sector erase resolution is set at 256KB (Default).

Therefore, when the sector erase is initiated on sector 0, Sector 0 and 1 will be fully erased (256KB); if sector erase is initiated on Sector 1, Sector 1 and 2 will be fully erased (256KB), etc.

The Parameter-Sectors can be erased and programmed in the normal manner using the standard erase and program command sequences targeting the appropriate Parameter-Sector addresses. Note that the smaller Parameter-Sectors need to include A[16:11] as part of the address identifying the target Parameter-Sector during erase and program command sequences. Configuring the first or last uniform sector to include the parameter sectors is accomplished with the Nonvolatile Configuration Register.  Therefore, within your specific requirements, xVCR[9:8] should be set to "00" to include the 4-KB parameter sectors and Read password sector is mapped at lowest addresses.

Best regards,

Albert

Cypress Semiconductor Corp.

An Infineon Technologies Company

0 Likes