The
WRERR bit can be used to determine if a write error occurred. WRERR will be
set if one of the following conditions occurs:
- If WR is set while the NVMADRH:NMVADRL points to a write-protected DFM address
- A Reset occurs while a self-write
operation was in progress
- An unlock sequence was
interrupted
The WRERR bit is normally set by hardware, but can be set by the user for test purposes.
Once set, WRERR must be cleared in software.