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

cross mob

SEMPER™ NOR Flash: Using Sector Erase Count transaction – KBA238291

SEMPER™ NOR Flash: Using Sector Erase Count transaction – KBA238291

50 replies posted 25 likes received 25 replies posted

Infineon SEMPER™ NOR Flash family supports the Sector Erase Count transaction that allows users to know the number of erase cycles on an addressed sector. Once the Sector Erase Count command is issued, the device enters a busy state until the erase cycle count information is stored in the Sector Erase Count Register (SECV).

The SECV is a volatile register with a 3-byte (or 24-bit) width. Table 1 shows the definition of Sector Erase Count Register bits. The SECV[22:0] bits denote the number of erase cycles, and the SECV[23] is a flag that shows whether the reported erase cycle count is valid or corrupted.

Table 1 Sector Erase Count register

Bit number



Factory default




Sector Erase Count Corruption Status Flag


The SECCPT bit is used to determine if the reported sector erase count is corrupted and has been reset.

Note that if SECCPT is set due to count corruption, it will reset to 0 on the next successful erase operation on the selected sector.

Selection Options:

0 = Sector Erase Count is not corrupted and is valid

1 = Sector Erase Count is corrupted and is not valid



Sector Erase Count Value


The SECVAL[22:0] bits store the number of times a sector has been erased.



Table 2 shows the register address map for each byte of SECV.

Table 2 Sector Erase Count register address map

Register type

Reigster name

Register address (Hex)

Sector Erase Count Register [7:0]



Sector Erase Count Register [15:8]



Sector Erase Count Register [23:16]



Note: “&&” is the address of the selected die


Figure 1 shows the transaction for the sequence getting the erase cycle count for one sector. Repeat this flow with different sector addresses to get the erase cycle count for multiple sectors.


Figure 1 Sector Erase Count transaction sequence

Note that the SECV[22:0] stores the number of erase cycles of the logical sector that the Endura Flex algorithm maps to the physical sector. The logical sector-to-physical sector mapping changes if the sectors belong to higher endurance regions. To monitor and maintain erase cycles on physical sectors, configure the region as long retention, where the logical sector to physical sector mapping is never changed.