Forum Discussion
29 Replies
- MMinu3
New Contributor
Hi,
the only way I know to unprotect the whole memory is clear the flags "TP", "BP2", "BP1", "BP0" into the status register and I do that as soon the program starts: are there others way to unprotect the whole memory space?
BTW: I've already tested your last suggestion and, unfortunately, both "sector" and "bulk" operations fails,
Thanks again, Regards
Maurizio
- JohnT_Altera
Regular Contributor
Hi,
Could you try to read the Status Register?
- MMinu3
New Contributor
Hi,
I already read the status register before "erase" operation to be sure that "WEL" bit is settled to "1", so I'm sure that all others flag are cleared.
Do I check something different?
MM
- JohnT_Altera
Regular Contributor
Hi,
What are you observing when you performed read status register? May I know if you have another board to test it out?
- MMinu3
New Contributor
Hi, if you take a look to the attached images, you can see that the erase operation take about 160ms and the Status values is always 0x03, except the last one whose value is "0"... as expected.
MM
- JohnT_Altera
Regular Contributor
Hi MM,
From my understanding, after 160ms, you are observing the Status values is 0x0. So if you performed a read, what will happen? It should be 0xff right?
- MMinu3
New Contributor
Hi John,
unfortunately when I read data after "sector Erase" completes, I don't find 0xFF, but the values I've stored before (0x7D).
So, now, I have a new question: If I want erase the sector starting at address "0x1F0000" in the memory array organization (as explained in "EPCQ-A Serial Configuration Device Datasheet") which address do I need specify in "erase sector" command? Is "0x1F0000" correct?
Moreover, if you look in to the attached picture (related to an "Erase Bulk" operation, you can see that that flag WIP is cleared at the first Status read (so the operation is considered completed at the first check).
I hope this can help you to better understand where I'm wrong.
Thank you
Maurizio
- JohnT_Altera
Regular Contributor
Hi,
May I know if you have other board for testing?
- MMinu3
New Contributor
Hi,
I tried on 2 different boards but nothing change
Maurizio