- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Solved! Go to Solution.
- Labels:
-
Memory Nor Flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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