31.2.22 Errors and Flags

Several non-typical events can occur that affect the operation of the FCW causing Write/Erase operations to be aborted. Setup errors can occur that prevent the start of an NVMOP command. All these errors are reported via INTFLAG. Some flags are updated before the FSM clears BUSY. However, the FSM always clears BUSY and sets DONE on the same clock edge.

The following table describes the types of errors the FCW detects and what flags they affect.

Table 31-2. Interrupt Flag Summary
INTFLAGs:Source:Effect on FCW Operations:
WRERR, DONEAny Error Event during NVMOPLast address programmed may be corrupted, or last erase may not be complete.
RSTERR, DONEBOR circuit not Ready before NVMOP writtenNVMOP not started(2)

SW should enable BOR and wait for it to be ready.

RSTERR(1)Reset or Low Voltage Event before FSM starts NVMOPNVMOP not started(2)
RSTERR(1), WRERRReset or Low Voltage Event after FSM starts NVMOPLast address programmed may be corrupted, or last erase may not be complete. Software should verify results.
HTDPGM, DONEHigh Temp Event before FSM starts NVMOPNVMOP not started(2)
WRERR, SECERR, DONESecurity module or tamper event preempted operationLast address programmed may be corrupted, or last erase may not be complete.
KEYERRKEY not valid for SFR writeSFR not updated
CFGERR, DONEADDR not in flash memory space Disallowed CPUDAL setting.NVMOP is not started (2)
CFGERR, OPERR, DONENVMOP not allowed because of ECC,

i.e. Single Write attempted when ECC Write with ECC Read is selected

NVMOP is not started (2)
WRERR, FIFOERR, DONERow Write FIFO under run errorNVMOP is aborted(2)

Subsequent addresses not programmed

BUSERR, FIFOERR(3), DONEAHB Bus Host error before FIFO filled Possible SRCADDR out of rangeNVMOP is not started(2)
BUSERR, FIFOERR(3), WRERR, DONEAHB Bus Host error

Possible SRCADDR out of range or access permission violation

NVMOP is aborted(2)

Current and subsequent addresses not programmed

WPERR, DONEADDR is write protected by a WP register

(i.e BWP, PWP, etc)

NVMOP is not started(2)
WPERR, SECERR, DONEADDR is write protected by a different security association(4)NVMOP is not started(2)
OPERR, DONENVMOP is not available (e.g. RSVD)NVMOP is not started(2)
SECERRSecurity ViolationSFR access blocked

Does not generate a bus error

Note:
  1. If BOR causes a reset, DONE will not be set because it is cleared by the reset.
  2. NVMOP is generally considered started when the panel is enabled.
  3. Error code may or may not be set.

The following table summarizes events that cause the Write/Erase sequence to not occur but do not set the error flag.

Table 31-3. Conditions Without an Error Flag
Source:Effect on FCW Operations:
Writing KEY with an invalid value.Locks all registers protected by KEY.
Attempted write of an SFR while locked for programming (BUSY=1) from the same security association.Action is ignored by FSM and SFRs. Reports a bus error.
Attempted read or write of an SFR address that is not implemented.Action is ignored by FSM and SFRs. Reports a bus error.