AT32F421 Series Reference Manual
2022.11.11 Page 74 Rev 2.02
5.8.4 Flash status register (FLASH_STS)
Kept at its default value
Operation done flag
This bit is set by hardware when Flash memory
operations (program/erase) are complete. It is
cleared by writing “1”.
Erase/program protection error
This bit is set by hardware when programming the
erase/program- protected Flash memory address. It
is cleared by writing “1”.
Kept at its default value.
Programming error
When the Flash programming address is in “non-erase”
state, this bit is set by hardware. It is cleared by writing
“1”.
Kept at its default value.
Operation busy flag
When this bit is set, it indicates that Flash memory
operation is in progress. It is cleared when operation is
complete.