AT32F421 Series Reference Manual
2022.11.11 Page 79 Rev 2.02
5.8.14 Flash CRC control register (FLASH_CRC_CTRL)
For main Flash memory and its extension area only.
Kept at its default value.
CRC start
This bit is used to enable CRC check for user code or
sLib code. It is automatically cleared after enabling CRC
by hardware.
Note: CRC data ranges from CRC_ADDR to
CRC_ADDR+CRC_SN*1
CRC sector number
This bit defines the sectors to be CRC checked.
5.8.15 Flash CRC check result register (FLASH_CRC_CHKR)
For Flash memory and its extension area only.
Note: All these bits are write-only, and return no response when being read.
5.8.16 Security library password setting register
(SLIB_SET_PWD)
For Flash security library password setting only.
sLib password setting value
Note: This register can be written only after sLib is
unlocked. It is used to set a password of sLib. Writing
0xFFFF_FFFF or 0x0000_0000 has no effect.
Note: All these bits are write-only, and return 0 when being read.
5.8.17 Security library address setting register
(SLIB_SET_RANGE)
For Flash security library address setting only.
Security library end sector setting
Theses bits are used to set the security library end sector.
0000000000: Sector 0
0000000001: Sector 1
0000000010: Sector 2
…
0000001111: Sector 15 (the last sector of 16KB main
Flash memory)
…
0000011111: Sector 31 (the last sector of 32KB main
Flash memory)
…
0000111111: Sector 63 (the last sector of 64KB main
Flash memory)
Security library instruction start sector setting
These bits are used to set the security library instruction
start sector.
00000000000: Sector 0
00000000001: Sector 1
00000000010: Sector 2