
AT32F413
Series Reference Manual
2022.06.27
Page 80
Rev 2.00
lock Flash memory operations.
Bit 6
ERSTR
0x0
rw
Erase start
An erase operation is triggered when this bit is set. This bit
is cleared by hardware after the completion of the erase
operation.
Bit 5,4,3
Reserved
0x0
resd
Kept at its default value
Bit 2
CHPERS
0x0
rw
Mass erase
Perform mass erase on the external memory.
Bit 1
SECERS
0x0
rw
Page erase
It indicates page erase operation.
Bit 0
FPRGM
0x0
rw
Flash program
It indicates Flash program operation.
5.7.13 Flash address register3 (FLASH_ADDR3)
For external memory only.
Bit
Register
Reset value
Type
Description
Bit 31: 0
FA
0x0000 0000 wo
Flash address
Select the address of the pages to be erased in external
memory.
5.7.14 Flash decrption address register (FLASH_DA)
For external memory only.
Bit
Register
Reset value
Type
Description
Bit 31: 0
FDA
0x0000 0000 wo
Flash decryption address
Set the encryption range of external memory through
FLASH_DA register in the user program.
0x0840_0000 ~ (0x08FDA-0x1): the cipher text
of external memory
(0x0840_0000 +FDA) ~ 0x093F FFFF: the plain text of
external memory
Note: The setting value of FDA must be a multiple of 4,
aligned by word.
5.7.15 Flash security library status register 0 (SLIB_STS0)
For Flash security library only.
Bit
Register
Reset value
Type
Description
Bit 31: 4
Reserved
0x0000000
resd
Kept at its default value
Bit 3
SLIB_ENF
0x0
ro
SLIB_ENF: sLib enable flag
When this bit is set, it indicates that the main Flash
memory is partially or completely (depending on the setting
of SLIB_STS1) used as security library code.
Bit 2: 0
Reserved
0x0
resd
Kept at its default value