
AT32F413
Series Reference Manual
2022.06.27
Page 76
Rev 2.00
Write the previously set security library password to the SLIB_PWD_CLR register.
Wait until the OBF bit becomes “0”;
Perform system reset, and then reload security library setting word;
Read the SLIB_STS0 register to check the security library setting.
Note: Disabling the security library will automatically perform mass erase for the main memory and
erase the security library setting block.
5.7 Flash memory registers
lists Flash register map and their reset values.
These peripheral registers must be accessed by words (32 bits).
Table 5-7
Flash memory interface
—
Register map and reset value
Register
Offset
Reset value
FLASH_PSR
0x00
0x0000 0030
FLASH_UNLOCK
0x04
0xXXXX XXXX
FLASH_USD_UNLOCK
0x08
0xXXXX XXXX
FLASH_STS
0x0C
0x0000 0000
FLASH_CTRL
0x10
0x0000 0080
FLASH_ADDR
0x14
0x0000 0000
FLASH_USD
0x1C
0x03FF FFFC
FLASH_EPPS
0x20
0xFFFF FFFF
FLASH_UNLOCK3
0x84
0xXXXX XXXX
FLASH_SELECT
0x88
0x0000 0000
FLASH_STS3
0x8C
0x0000 0000
FLASH_CTRL3
0x90
0x0000 0080
FLASH_ADDR3
0x94
0x0000 0000
FLASH_DA
0x98
0x0000 0000
SLIB_STS0
0xCC
0x0000 0000
SLIB_STS1
0xD0
0x0000 0000
SLIB_PWD_CLR
0xD4
0x0000 0000
SLIB_MISC_STS
0xD8
0x0100 0000
SLIB_SET_PWD
0xDC
0x0000 0000
SLIB_SET_RANGE
0xE0
0x0000 0000
SLIB_UNLOCK
0xF0
0x0000 0000
FLASH_CRC_CTRL
0xF4
0x0000 0000
FLASH_CRC_CHKR
0xF8
0x0000 0000
5.7.1
Flash performance select register (FLASH_PSR)
Bit
Abbr.
Reset value
Type
Description
Bit 31: 0
Reserved
0x0000 0030 resd
Kept at its default value.