ST STM32G4 Series Reference Manual page 103

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
Programming errors
Several kind of errors are 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
Embedded Flash memory (FLASH) for category 3 devices
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 is 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.
When DBANK=0, in the case that only either MER1 or MER2 is set, PGSERR is
set (bank mass erase is not allowed).
Attempt to program or erase in a write protected area (WRP) or in a PCROP area
or in a Securable memory 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.
RM0440 Rev 1
103/2083
185

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF