AT32WB415
Series Reference Manual
2022.04.13
Page 74
Ver 2.00
5.7.2
Flash unlock register (FLASH_UNLOCK)
Bit
Abbr.
Reset value
Type
Description
Bit 31: 0
UKVAL
0xXXXX XXXX wo
Unlock key value
This is used to unlock Flash memory bank and its
extension area.
Note: All these bits are write-only, and return 0 when being read.
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
0
rw1c
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
0
rw1c
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
0
resd
Kept at its default value.
Bit 2
PRGMERR
0
rw1c
Programming error
When the programming addess is not “0xFFFF”, this bit is
set by hardware. It is cleared by writing “1”.
Bit 1
Reserved
0
resd
Kept at its default value.
Bit 0
OBF
0
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: 17 Reserved
0x0000
resd
Kept at its default value
Bit 16
FAP_HL_DIS
0x0
rw
High level Flash access protection disable
When this bit is set, the user system data area is
automatically cleared by hardware; After a reset, it is
unlocked, and low-level access protection is still present.
.This bit is automatically cleared by hardware by writing 1
to it
Bit 15: 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
0
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