X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Lib%2Fmk20dx256vlh7.bootloader.ld;h=cff609027daae352f2bb4bac8bc6d364d1374df3;hb=1acbc97e98d8388332c51260017ab23227a91339;hp=aa06f99d6bb7877f84d31e10735794c191a288c6;hpb=863d8536987a1f0dcbb2aa2bcab217049bb1aea6;p=kiibohd-controller.git diff --git a/Lib/mk20dx256vlh7.bootloader.ld b/Lib/mk20dx256vlh7.bootloader.ld index aa06f99..cff6090 100644 --- a/Lib/mk20dx256vlh7.bootloader.ld +++ b/Lib/mk20dx256vlh7.bootloader.ld @@ -1,7 +1,7 @@ /* Teensyduino Core Library * http://www.pjrc.com/teensy/ * Copyright (c) 2013 PJRC.COM, LLC. - * Modifications by Jacob Alexander 2014 for use with McHCK and Kiibohd-dfu + * Modifications by Jacob Alexander 2014-2015 for use with McHCK and Kiibohd-dfu * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -29,17 +29,17 @@ * SOFTWARE. */ -/* XXX Not tested yet -HaaTa */ - MEMORY { FLASH (rx) : ORIGIN = 0x0, LENGTH = 256K FLASH_APP (rx) : ORIGIN = 8K, LENGTH = 256K-8K + FLASH_END (r) : ORIGIN = 256K, LENGTH = 32 RAM (rwx) : ORIGIN = 0x20000000 - 64K / 2, LENGTH = 64K } /* Starting Address of the application ROM */ _app_rom = ORIGIN( FLASH_APP ); +_app_rom_end = ORIGIN( FLASH_END ); FlexRAM = 0x14000000; FTFL = 0x40020000; @@ -52,12 +52,10 @@ SECTIONS { .text : { - . = 0; - KEEP(* (.vectors)) + . = 0; KEEP(* (.vectors)) /* MUST BE AT 0 */ *(.startup*) - . = 0x400; + . = 0x400; KEEP(* (.flashconfig)) /* MUST BE AT 0x400 */ *(.rodata*) - KEEP(* (.flashconfig)) *(.text*) . = ALIGN(4); KEEP(*(.init))