EasyManuals Logo
Home>ST>Microcontrollers>STM32G474

ST STM32G474 User Manual

ST STM32G474
2126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #105 background imageLoading...
Page #105 background image
RM0440 Rev 4 105/2126
RM0440 Embedded Flash memory (FLASH) for category 3 devices
228
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:
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.
PGSERR: Programming Sequence Error
PGSERR is set if one of the following conditions occurs:
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).
WRPERR: Write Protection Error
WRPERR is set if one of the following conditions occurs:
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.
MISSERR: Fast Programming Data Miss Error

Table of Contents

Questions and Answers:

ST STM32G474 Specifications

General IconGeneral
BrandST
ModelSTM32G474
CategoryMicrocontrollers
LanguageEnglish

Related product manuals