PNB=B_0x0, PER=B_0x0, PG=B_0x0, RDERRIE=B_0x0, BKER=B_0x0, EOPIE=B_0x0, ERRIE=B_0x0
FLASH secure control register
PG | Secure programming 0 (B_0x0): Secure Flash programming disabled 1 (B_0x1): Secure Flash programming enabled |
PER | Secure page erase 0 (B_0x0): Secure page erase disabled 1 (B_0x1): Secure page erase enabled |
MER1 | Secure bank 1 mass erase This bit triggers the bank 1 secure mass erase (all bank 1 user pages) when set. |
PNB | Secure page number selection These bits select the page to erase. … … 0 (B_0x0): page 0 1 (B_0x1): page 1 127 (B_0x7F): page 127 (upper page for STM32U575/585) 255 (B_0xFF): page 255 (upper page for STM32U59x/5Ax) |
BKER | Secure bank selection for page erase 0 (B_0x0): Bank 1 selected for secure page erase 1 (B_0x1): Bank 2 selected for secure page erase |
BWR | Secure burst write programming mode When set, this bit selects the burst write programming mode. |
MER2 | Secure bank 2 mass erase This bit triggers the bank 2 secure mass erase (all bank 2 user pages) when set. |
STRT | Secure start This bit triggers a secure erase operation when set. If MER1, MER2 and PER bits are reset and the STRT bit is set, the PGSERR in the FLASH_SECSR is set (this condition is forbidden). This bit is set only by software and is cleared when the BSY bit is cleared in FLASH_SECSR. |
EOPIE | Secure End of operation interrupt enable This bit enables the interrupt generation when the EOP bit in the FLASH_SECSR is set to 1. 0 (B_0x0): Secure EOP Interrupt disabled 1 (B_0x1): Secure EOP Interrupt enabled |
ERRIE | Secure error interrupt enable This bit enables the interrupt generation when the OPERR bit in the FLASH_SECSR is set to 1. 0 (B_0x0): Secure OPERR error interrupt disabled 1 (B_0x1): Secure OPERR error interrupt enabled |
RDERRIE | Secure PCROP read error interrupt enable This bit enables the interrupt generation when the RDERR bit in the FLASH_SECSR is set to 1. 0 (B_0x0): Secure PCROP read error interrupt disabled 1 (B_0x1): Secure PCROP read error interrupt enabled |
INV | Flash memory security state invert This bit inverts the Flash memory security state. |
LOCK | Secure lock This bit is set only. When set, the FLASH_SECCR register is locked. It is cleared by hardware after detecting the unlock sequence in FLASH_SECKEYR register. In case of an unsuccessful unlock operation, this bit remains set until the next system reset. |