From 863d8536987a1f0dcbb2aa2bcab217049bb1aea6 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Fri, 20 Mar 2015 19:54:23 -0700 Subject: [PATCH] Fixing bugs in mk20dx256vlh7 Bootloader support. --- Lib/mk20dx.c | 1 + Lib/mk20dx256vlh7.bootloader.ld | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/mk20dx.c b/Lib/mk20dx.c index c8d2ab9..acd98f5 100644 --- a/Lib/mk20dx.c +++ b/Lib/mk20dx.c @@ -400,6 +400,7 @@ const uint8_t flashconfigbytes[16] = { 0x03, // Flash nonvolatile option byte FOPT 0xFF, // EEPROM Protection Byte FEPROT 0xFF, // Data Flash Protection Byte FDPROT +}; #endif diff --git a/Lib/mk20dx256vlh7.bootloader.ld b/Lib/mk20dx256vlh7.bootloader.ld index 0892748..aa06f99 100644 --- a/Lib/mk20dx256vlh7.bootloader.ld +++ b/Lib/mk20dx256vlh7.bootloader.ld @@ -55,8 +55,8 @@ SECTIONS . = 0; KEEP(* (.vectors)) *(.startup*) - *(.rodata*) . = 0x400; + *(.rodata*) KEEP(* (.flashconfig)) *(.text*) . = ALIGN(4);