FPROT EQU 0x7F
; ‹/h›
; ‹/h›
; ‹h› Flash security byte (FSEC)
; ‹i› WARNING: If SEC field is configured as "MCU security status is secure" and MEEN field is configured as "Mass erase is disabled",
; ‹i› MCU's security status cannot be set back to unsecure state since Mass erase via the debugger is blocked !!!
; ‹o.0..1› SEC
; ‹2=› MCU security status is unsecure
; ‹3=› MCU security status is secure
; ‹i› Flash Security
; ‹i› This bits define the security state of the MCU.
; ‹o.6..7› KEYEN
; ‹2=› Backdoor key access enabled
; ‹3=› Backdoor key access disabled
; ‹i› Backdoor key Security Enable
; ‹i› These bits enable and disable backdoor key access to the FTFL module.
FSEC EQU 0xBE
; ‹/h›
; ‹h› Flash Option Register (FOPT)
FOPT EQU 0xFE
; ‹/h›
IF :LNOT :: DEF:RAM_TARGET
AREA |.ARM.__at_0x400|, CODE, READONLY
DCB BackDoorK0, BackDoorK1, BackDoorK2, BackDoorK3
DCB BackDoorK4, BackDoorK5, BackDoorK6, BackDoorK7
DCB 0xFF, 0xFF, 0x7F, 0xFF
DCB 0xFF, FPROT, FSEC, FOPT
ENDIF
AREA |.text|, CODE, READONLY |