31.2.23.6 NVM Interrupt Flag Register
- The interrupt flag bits of this register are set by hardware only.
- Interrupt flags must be cleared and then read back to confirm the clear before exiting the ISR to avoid double interrupts.
| Symbol | Description | Symbol | Description | Symbol | Description |
|---|---|---|---|---|---|
| R | Readable bit | HC | Cleared by Hardware | (Grey cell) | Unimplemented |
| W | Writable bit | HS | Set by Hardware | X | Bit is unknown at Reset |
| K | Write to clear | S | Software settable bit | — | — |
| Name: | INTFLAG |
| Offset: | 0x0014 |
| Reset: | 0x00000000 |
| Property: | PAC Write-Protection |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| Access | |||||||||
| Reset |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| Access | |||||||||
| Reset |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| WRERR | RSTERR | ||||||||
| Access | R/W | R/W | |||||||
| Reset | 0 | 0 |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| SECERR | OPERR | WPERR | BUSERR | FIFOERR | CFGERR | KEYERR | DONE | ||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 13 – WRERR Write Error Flag Bit
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | The Write/Erase sequence completed normally |
| 1 | The Write/Erase sequence did not complete successfully |
Bit 12 – RSTERR Reset or Brown Out Detect Error Flag Bit
The error is only captured during Write/Erase operations. Check the system RCAUSE register to see if this error was caused by a BOR event.
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No Reset and Voltage level OK during write/erase |
| 1 | A reset or Low Voltage Detected (possible data corruption, verify data) |
Bit 7 – SECERR Security Violation Error Bit
Attempted operation violates security configuration.
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No Security Violation Error |
| 1 | Security Violation Error |
Bit 6 – OPERR NVMOP Error Flag Bit
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No NVMOP Error |
| 1 | Selected Operation is Disabled Error |
Bit 5 – WPERR Write Protection Error Flag Bit
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No Write Protection Error |
| 1 | Write Protection Error |
Bit 4 – BUSERR AHB Bus Error During Row Write Flag Bit
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No Bus Error |
| 1 | Bus Error |
Bit 3 – FIFOERR FIFO Underrun During Row Write Flag Bit
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No FIFO Error |
| 1 | FIFO Error |
Bit 2 – CFGERR Configuration Error Flag Bit
Attempted Write/Erase when disallowed by a configuration setting.
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No CFG Error |
| 1 | CFG Error |
Bit 1 – KEYERR Key Error Flag Bit
Attempted to write to an SFR bit without first enabling it via KEY.
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | No Key Error |
| 1 | Key Error |
Bit 0 – DONE NVM Operation Done Flag Bit
When NVMOP completes the FSM clears BUSY and sets Done.
Writing a '0' to this bit has no effect.
Writing a 1 to this bit will clear the flag.
| Value | Description |
|---|---|
| 0 | NVMOP Not Done |
| 1 | NVMOP Done |
