AT32F425
Series Reference Manual
2022.03.30
Page 78
Ver 2.01
5.7.3
Flash user system data unlock register
(FLASH_USD_UNLOCK)
Bit
Abbr.
Reset value
Type
Description
Bit 31: 0
USD_UKVAL
0xXXXX XXXX wo
User system data Unlock key value
Note: All these bits are write-only, and return 0 when being read.
5.7.4
Flash status register (FLASH_STS)
Bit
Abbr.
Reset value
Type
Description
Bit 31: 6
Reserved
0x0000000
resd
Kept at its default value
Bit 5
ODF
0x0
rw
Operation done flag
This bit is set by hardware when Flash memory
operations (program/erase) is completed. It is cleared
by writing “1”.
Bit 4
EPPERR
0x0
rw
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”.
Bit 3
Reserved
0x0
resd
Kept at its default value.
Bit 2
PRGMERR
0x0
rw
Programming error
When the programming addess is not “0xFFFF”, this bit is
set by hardware. It is cleared by writing “1”.
Bit 1
Reserved
0x0
resd
Kept at its default value.
Bit 0
OBF
0x0
ro
Operation busy flag
When this bit is set, it indicates that Flash memory
operation is in progress. It is cleared when operation is
completed.
5.7.5
Flash control register (FLASH_CTRL)
Bit
Register
Reset value
Type
Description
Bit 31: 18 Reserved
0x0000
resd
Kept at its default value
Bit 17
LPMEN
0x0
rw
Low power mode enable
0: Low power mode is disabled;
1: Low power mode enabled.
After this bit is set, the Flash memory enters low-power
mode as soon as the MCU moves into deepsleep mode.
Bit 16: 13 Reserved
0x0
resd
Kept its default value
Bit 12
ODIFE
0
rw
Operation done flag interrupt enable
0: Interrupt is disabled;
1: Interrupt is enabled.
Bit 11,8,3 Reserved
0
resd
Kept its default value
Bit 10
ERRIE
0x0
rw
Error interrupt enable
This bit enables EPPERR or PROGERR interrupt.
0: Interrupt is disabled;
1: Interrupt is enabled.
Bit 9
USDULKS
0
rw
User system data unlock success
This bit is set by hardware when the user system data is
unlocked properly, indicating that erase/program operation
to the user system data is allowed. This bit is cleared by
writing “0”, which will re-lock the user system data area.
Bit 7
OPLK
1
rw
Operation lock
This bit is set by default, indicating that Flash memory is
protected against operations. This bit is cleared by
hardware after unlock, indicating that erase/program
operation to Flash memory is allowed. Writing “1” can re-
lock Flash memory operations.