ST10F272B_12 STMICROELECTRONICS [STMicroelectronics], ST10F272B_12 Datasheet - Page 38

no-image

ST10F272B_12

Manufacturer Part Number
ST10F272B_12
Description
16-bit MCU with 256 Kbyte Flash memory and 12/20 Kbyte RAM
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
Internal Flash memory
5.4.11
38/188
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 BSY0 bit
is reset as well; for this reason, it is definitively meaningful reading FER register content only
when LOCK bit and BSY0 bit are cleared.
FER (0x8 0014h)
Table 18.
ERR
ERER
PGER
10ER
SEQER
RESER
WPF
15
Bit
14
Flash error register
13
reserved
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.
Sequence Error
This bit is automatically set when the control registers (FCR1H/L-FCR0H/L,
FARH/L, FDR1H/L-FDR0H/L) are not correctly filled to execute a valid Write
Operation. In this case no Write Operation is executed. This bit has to be software
reset.
Resume Error
This bit is automatically set when a suspended Program or Erase operation is not
resumed correctly due to a protocol error. In this case the suspended operation is
aborted. This bit has to be software reset.
Write Protection Flag
This bit is automatically set when trying to program or erase in a sector write
protected. In case of multiple Sector Erase, the not protected sectors are erased,
while the protected sectors are not erased and bit WPF is set. This bit has to be
software reset.
12
11
Doc ID 11917 Rev 3
10
9
FCR
WPF RESER SEQER
RC
8
RC
7
Function
RC
6
5
reserved
4
ST10F272B/ST10F272E
10ER PGER ERER
RC
3
Reset value:
RC
2
RC
1
0000h
ERR
RC
0

Related parts for ST10F272B_12