AT32F421 Series Reference Manual
2022.11.11 Page 4 Rev 2.02
5.4.1 Unlock/lock ................................................................................. 66
5.4.2 Erase operation ........................................................................... 66
5.4.3 Programming operation................................................................ 68
5.4.4 Read operation ........................................................................... 69
5.5 Flash memory protection .............................................................. 69
5.5.1 Access protection ........................................................................ 69
5.5.2 Erase/program protection............................................................. 70
5.6 Read access................................................................................ 70
5.7 Special functions ......................................................................... 70
5.7.1 Security library settings ............................................................... 70
5.7.2 Boot memory used as memory extension area .............................. 71
5.7.3 CRC verify .................................................................................. 72
5.8 Flash memory registers ................................................................ 72
5.8.1 Flash performance select register (FLASH_PSR) .......................... 73
5.8.2 Flash unlock register (FLASH_UNLOCK) ...................................... 73
5.8.3 Flash user system data unlock register (FLASH_USD_UNLOCK) ... 73
5.8.4 Flash status register (FLASH_STS) .............................................. 74
5.8.5 Flash control register (FLASH_CTRL) ........................................... 75
5.8.6 Flash address register (FLASH_ADDR) ........................................ 76
5.8.7 User system data register (FLASH_USD) ...................................... 76
5.8.8 Erase/program protection status register (FLASH_EPPS) .............. 76
5.8.9 Flash security library status register 0 (SLIB_STS0) ...................... 77
5.8.10 Flash security library status register1 (SLIB_STS1) ....................... 77
5.8.11 Security library password clear register (SLIB_PWD_CLR) ............ 78
5.8.12 Security library additional status register (SLIB_MISC_STS) .......... 78
5.8.13 Flash CRC address register (FLASH_CRC_ARR) .......................... 78
5.8.14 Flash CRC control register (FLASH_CRC_CTRL) .......................... 79
5.8.15 Flash CRC check result register (FLASH_CRC_CHKR) .................. 79
5.8.16 Security library password setting register (SLIB_SET_PWD) .......... 79
5.8.17 Security library address setting register (SLIB_SET_RANGE) ........ 79
5.8.18 Flash extension memory security library setting register (EM_SLIB_SET)
81
5.8.19 Boot memory mode setting register (BTM_MODE_SET) ................. 81
5.8.20 Security library unlock register (FLASH_UNLOCK) ........................ 81