From d27be47fc76a5c01ce0e1dfbd92a46afbd848f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 22 Apr 2017 20:29:14 +0200 Subject: [PATCH] Restore flash protection bytes set by Santiago. --- targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S b/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S index 04b5297..e845a88 100644 --- a/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S +++ b/targets/MK22F51212/src/startup/gcc/startup_MK22F51212.S @@ -359,8 +359,8 @@ __isr_vector: .section .FlashConfig, "a" .long 0x01020304 /* First 4 bytes of the Backdoor key. Not used */ .long 0x05060708 /* Next 4 bytes of the Backdoor key */ - .long 0xFFFFFFFF /* Program flash protection bytes */ - .long 0xFFFFFFFE /* FSEC byte, FOPT byte, Reserved, Reserved */ + .long 0xFFFFFFF8 /* Program flash protection bytes */ + .long 0xFFFFFF95 /* FSEC byte, FOPT byte, Reserved, Reserved */ .text