ST10F276
Internal Flash memory
4.4.10 Flash address register high
FARH (0x0E 0012)
FCR
Reset value: 0000h
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
reserved
ADD20 ADD19 ADD18 ADD17 ADD16
RW RW RW RW RW
Table 16. Flash address register high
Bit
Function
Address 20:16
ADD(20:16) These bits must be written with the address of the Flash location to program in the
following operations: word program and double word program.
4.4.11
Flash error register
Flash error register, as well as all the other Flash registers, can be properly read only once
LOCK bit of register FCR0L is low. Nevertheless, its content is updated when also BSY bits
are reset as well; for this reason, it is definitively meaningful reading FER register content
only when LOCK bit and all BSY bits are cleared.
FER (0xE 0014h)
15 14 13 12 11 10
reserved
FCR
Reset value: 0000h
9876543210
WPF RESER SEQER reserved 10ER PGER ERER ERR
RC RC RC
RC RC RC RC
Table 17. Flash error register
Bit
Function
ERR
ERER
PGER
10ER
Write error
This bit is automatically set when an error occurs during a Flash write operation or
when a bad write operation setup is done. Once the error has been discovered and
understood, ERR bit must be software reset.
Erase error
This bit is automatically set when an erase error occurs during a Flash write operation.
This error is due to a real failure of a Flash cell, that can no more be erased. This kind
of error is fatal and the sector where it occurred must be discarded. This bit has to be
software reset.
Program error
This bit is automatically set when a program error occurs during a Flash write
operation. This error is due to a real failure of a Flash cell, that can no more be
programmed. The word where this error occurred must be discarded. This bit has to
be software reset.
1 over 0 error
This bit is automatically set when trying to program at 1 bits previously set at 0 (this
does not happen when programming the protection bits). This error is not due to a
failure of the Flash cell, but only flags that the desired data has not been written. This
bit has to be software reset.
35/229