
389
SAM G51 [DATASHEET]
11209C–ATARM–20-Dec-13
To stop the user signature mode, the user needs to send the Stop read user signature command (SPUS) by writing
EEFC_FCR with the SPUS command.
When the SPUI command has been performed, the FRDY bit in EEFC_FSR rises. If an interrupt was enabled by
setting the FRDY bit in EEFC_FMR, the interrupt line of the interrupt controller is activated.
Note that during the sequence, the software cannot run out of Flash or the second plane in case of dual plane.
One error can be detected in EEFC_FSR after this sequence:
Command Error: a bad keyword has been written in EEFC_FCR.
To write the user signature, the sequence is:
Write the full page, at any page address, within the internal memory area address space.
Send the Write user signature command (WUS) by writing EEFC_FCR with the WUS command.
When programming is completed, the FRDY bit in EEFC_FSR rises. If an interrupt has been enabled by setting
the FRDY bit in EEFC_FMR, the corresponding interrupt line of the interrupt controller is activated.
Two errors can be detected in EEFC_FSR after this sequence:
Command Error: a bad keyword has been written in EEFC_FCR.
Flash Error: at the end of the programming, the WriteVerify test of the Flash memory has failed.
To erase the user signature, the sequence is:
Send the Erase user signature command (EUS) by writing EEFC_FCR with the EUS command.
When programming is completed, the FRDY bit in EEFC_FSR rises. If an interrupt has been enabled by setting
the FRDY bit in EEFC_FMR, the corresponding interrupt line of the interrupt controller is activated.
Two errors can be detected in EEFC_FSR after this sequence:
Command Error: a bad keyword has been written in EEFC_FCR.
Flash Error: at the end of the programming, the EraseVerify test of the Flash memory has failed.