Basic code for mk20dx256vlh7 flashing

This commit is contained in:
Jacob Alexander 2015-05-25 17:23:18 -07:00
parent 1acbc97e98
commit 02b919a4cb
8 changed files with 158 additions and 90 deletions

View file

@ -33,13 +33,12 @@ 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 */
_bootloader = ORIGIN( FLASH );
_app_rom = ORIGIN( FLASH_APP );
_app_rom_end = ORIGIN( FLASH_END );
FlexRAM = 0x14000000;
FTFL = 0x40020000;

View file

@ -43,6 +43,7 @@ SECTIONS
. = 0;
KEEP(* (.vectors))
*(.startup*)
. = 0x400; KEEP(* (.flashconfig)) /* MUST BE AT 0x400 */
*(.text*)
*(.rodata*)
. = ALIGN(4);