RM0351
Programming errors
Several kind of errors can be detected. In case of error, the Flash operation (programming
or erasing) is aborted.
•
PROGERR: Programming Error
In standard programming: PROGERR is set if the word to write is not previously erased
(except if the value to program is full zero).
•
SIZERR: Size Programming Error
In standard programming or in fast programming: only double word can be
programmed and only 32-bit data can be written. SIZERR is set if a byte or an half-
word is written.
•
PGAERR: Alignment Programming error
PGAERR is set if one of the following conditions occurs:
–
–
•
PGSERR: Programming Sequence Error
PGSERR is set if one of the following conditions occurs:
–
–
–
–
–
–
•
WRPERR: Write Protection Error
WRPERR is set if one of the following conditions occurs:
–
–
–
–
•
MISSERR: Fast Programming Data Miss Error
In fast programming: all the data must be written successively. MISSERR is set if the
previous data programmation is finished and the next data to program is not written yet.
•
FASTERR: Fast Programming Error
In standard programming: the first word to be programmed is not aligned with a
double word address, or the second word doesn't belong to the same double word
address.
In fast programming: the data to program doesn't belong to the same row than the
previous programmed double words, or the address to program in not greater than
the previous one.
In the standard programming sequence or the fast programming sequence: a data
is written when PG and FSTPG are cleared.
In the standard programming sequence or the fast programming sequence:
MER1, MER2, and PER are not cleared when PG or FSTPG is set.
In the fast programming sequence: the Mass erase is not performed before setting
FSTPG bit.
In the mass erase sequence: PG, FSTPG, and PER are not cleared when MER1
or MER2 is set.
In the page erase sequence: PG, FSTPG, MER1 and MER2 are not cleared when
PER is set.
PGSERR is set also if PROGERR, SIZERR, PGAERR, WRPERR, MISSERR,
FASTERR or PGSERR is set due to a previous programming error.
Attempt to program or erase in a write protected area (WRP) or in a PCROP area.
Attempt to perform a bank erase when one page or more is protected by WRP or
PCROP.
The debug features are connected or the boot is executed from SRAM or from
System flash when the read protection (RDP) is set to Level 1.
Attempt to modify the option bytes when the read protection (RDP) is set to
Level 2.
DocID024597 Rev 3
Embedded Flash memory (FLASH)
89/1693
120
Need help?
Do you have a question about the STM32L4x6 and is the answer not in the manual?
Questions and answers