S29JL032J In System protection driver

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.
Sreekant
Level 1
Level 1
First question asked Welcome!

Hi,

I have tried out the algorithm for in-system protection mentioned in the datasheet of S29JL032J  nor flash (page 27 - also attached).

I am unsuccessful in protecting the required sector. I have set the VID pin to 12V. Though I am unsure of how to force address lines A6=0;A1=1;A0=0.

Sreekant_0-1628594478027.png

 

I would highly appreciate if you provide a code snippet for in-system protection.

PS: I have downloaded the spansion driver code from your repository (also attached). It has a function header for flash protection but no definition.

 

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

Hello Sreekant,

To write 60h to sector address with A6=0, A1=1, A0=0,

 

FLASH_WR(base_addr, sector_addr + 0x2, 0x60);

 

For example, if you are protecting sector 3 (SA3), the sector address (word address) is 0x18000 (A16=1, A15=1).

So, writing 0x60 to 0x18002 (A16=1,A15=1,A1=1) protects sector 3.

Thank you

Regards,

Bushra

View solution in original post

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

Hello Sreekant,

Thank you for contacting Cypress Community Forum, an Infineon Technologies Company. Currently we are looking at the issue and will get back to you as soon as we find the resolution.

Have a nice day

Regards,

Bushra

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

Hello Sreekant,

To write 60h to sector address with A6=0, A1=1, A0=0,

 

FLASH_WR(base_addr, sector_addr + 0x2, 0x60);

 

For example, if you are protecting sector 3 (SA3), the sector address (word address) is 0x18000 (A16=1, A15=1).

So, writing 0x60 to 0x18002 (A16=1,A15=1,A1=1) protects sector 3.

Thank you

Regards,

Bushra

0 Likes