From 3fcbe24143b37029ae93ed5115e9ca1c2aef62dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Wed, 25 Oct 2017 17:20:39 +0200 Subject: [PATCH] Unset the EZPORT_DIS and NMI_DIS bits of the FOPT register. Fixes #27. --- targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S b/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S index df81211..2738471 100644 --- a/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S +++ b/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S @@ -360,7 +360,7 @@ __isr_vector: .long 0x01020304 /* First 4 bytes of the Backdoor key. Not used */ .long 0x05060708 /* Next 4 bytes of the Backdoor key */ .long 0xFFFFFFF8 /* Program flash protection bytes */ - .long 0xFFFFFF95 /* FSEC byte, FOPT byte, Reserved, Reserved */ + .long 0xFFFFFC95 /* FSEC byte, FOPT byte, Reserved, Reserved */ .text