21.4.3.1 Get Flash Descriptor Command

This command provides the system with information on the Flash organization. The system can take full advantage of this information. For instance, a device could be replaced by one with more Flash capacity, and so the software is able to adapt itself to the new configuration.

To get the embedded Flash descriptor, the application writes the GETD command in EEFC_FCR. The first word of the descriptor can be read by the software application in EEFC_FRR as soon as the FRDY flag in EEFC_FSR rises. The next reads of EEFC_FRR provide the following word of the descriptor. The Flash Descriptor has only seven words, see Table 22-2. Reading beyond that may not have valid data. The Lock region size is same for all regions therefore reading word seven is enough to obtain the lock region size.

Table 21-2. Flash Descriptor Definition
SymbolWord IndexDescription
FL_ID0Flash interface description
FL_SIZE1Flash size in bytes
FL_PAGE_SIZE2Page size in bytes
FL_NB_PLANE3Number of planes
FL_PLANE[0]4Number of bytes in the plane
FL_NB_LOCK4 + FL_NB_PLANENumber of lock bits. A bit is associated with a lock region. A lock bit is used to prevent write or erase operations in the lock region.
FL_LOCK[0]4 + FL_NB_PLANE + 1Number of bytes in the first lock region