17.3.4
Flash Memory Status Register (FLMSR)
FLMSR is used to detect flash memory errors.
Bit
7
FLER
0
Initial value
Read/Write
R
Flash memory error (FLER)
Status flag indicating detection of an error during
flash memory programming or erasing
Bit 7—Flash Memory Error (FLER): Indicates that an error has occurred during flash memory
programming or erasing. When FLER is set to 1, flash memory is placed in the error-protection
state.
Bit 7
FLER
Description
Flash memory program/erase protection (error protection *
0
[Clearing condition]
WDT reset, reset by RES pin, or hardware standby mode
1
An error has occurred during flash memory programming/erasing, and error
protection *
[Setting conditions]
1. When flash memory is read *
or instruction fetch, but excluding a read in a RAM area overlapped onto flash
memory space)
2. Immediately after the start of exception handling during programming/erasing
(excluding reset, illegal instruction, trap instruction, and division-by-zero exception
handling) *
3. When a SLEEP instruction (including software standby) is executed during
programming/erasing
4. When the bus is released during programming/erasing
Notes: *1 For details of error protection, see section 17.6.3, Error Protection.
*2 An undefined value will be read in this case.
*3 Before a stack or vector read is performed in exception handling.
Bits 6 to 0—Reserved: Read-only bits, always read as 1.
6
5
—
—
1
1
—
—
1
has been enabled
3
4
3
—
—
1
1
—
—
Reserved bits
2
during programming/erasing (including a vector read
2
1
0
—
—
—
1
1
1
—
—
—
1
) is disabled (Initial value)
489