AT32F421 Series Reference Manual
2022.11.11 Page 77 Rev 2.02
5.8.9 Flash security library status register 0 (SLIB_STS0)
For Flash memory security library only.
Kept at its default value
Extension memory sLib instruction start sector
00000000: sector 0
00000001: sector 1
00000010: sector 2
00000011: sector 3
11111111: No instruction sLib
Others: invalid
Kept at its default value
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.
Extension memory sLib enable flag
When this bit is set, it indicates that the boot memory is
used as the Flash extension area (BTM_AP_ENF is set),
and stores security library code.
Kept at its default value
Boot memory stores application code enabled flag
When this bit is set, it indicates that the boot memory can
be used as main Flash extension area to store user
application code; otherwise, it is only used for storing
system boot code.
5.8.10 Flash security library status register1 (SLIB_STS1)
For Flash memory security library only.
Security library end sector
0000000000: sector 0
0000000001: sector 1
0000000010: sector 2
…
0000001111: sector 15 (the last sector of 16KB man
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
00000000000: sector 0
00000000001: sector 1
00000000010: sector 2
…
00000001111: sector 15 (the last sector of 16KB main
Flash memory)
…
00000011111: sector 31 (the last sector of 32KB main
Flash memory)
…
00000111111: sector 63 (the last sector of 64KB main
Flash memory)
11111111111: No sLib instruction area
Security library start sector
00000000000: sector 0