Hi Hemavathy,
Yes, that exactly looks like sector headers.
Each sector starts with a header field containing two words that define its status and erase count.
Each sector in the EEE NVM partition is in one of the following states:
- Containing data records the current sector where data records are being programmed, the Active sector
- the current sector where data records are being programmed, the Active sector
- the current sector containing the oldest data records, the Oldest_x sector
- Ready_x (erased) sectors
- Flagged as invalid following a program or erase fault (and skipped by the EEE flow)
1) I am afraid that this was newer described in any official
The first word:
0xFFFF Ready sectors
0xFACF Sectors which containing data records
The second word is just simple ECOUNT counter (it count from 0x0000 or 0x0001) of erase cycles for every sector.
Anyway, the information in sector headers is not intended for user access. The ECOUNT value may be obtained by EEPROM Emulation Query Command.
2) If (part of ) your D-Flash is partitioned for EEE use, you cannot write into this area by Flash commands. D-Flash is dedicated for EEE is protected against D-Flash commands write. When I updated my variables in Buffer RAM, the records in the last sector are stored by the same was as at other sectors. So, I suppose that you probably selected some strange ERPART/DFPART values or there is any other issue on your side.
3)The D-Flash which is not used for EEE, will be not partitioned – sector headers exist only for EEE state machine. The User D-Flash do not contain any sector headers.
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------