From: Jacob Alexander Date: Sat, 21 Mar 2015 02:54:23 +0000 (-0700) Subject: Fixing bugs in mk20dx256vlh7 Bootloader support. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=863d8536987a1f0dcbb2aa2bcab217049bb1aea6;p=kiibohd-controller.git Fixing bugs in mk20dx256vlh7 Bootloader support. --- 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);