22.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. If extra read operations to EEFC_FRR are done after the last word of the descriptor has been returned, the EEFC_FRR value is 0 until the next valid command.

Table 22-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