[KINETIS] Fix KL25Z build

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8679 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
Fabio Utzig 2016-01-03 13:55:16 +00:00
parent 9bd5d3738a
commit be8e080386
2 changed files with 34 additions and 10 deletions

View File

@ -190,7 +190,7 @@ CPPWARN = -Wall -Wextra -Wundef
# #
# List all user C define here, like -D_DEBUG=1 # List all user C define here, like -D_DEBUG=1
UDEFS = UDEFS = -DCRT1_AREAS_NUMBER=1
# Define ASM defines here # Define ASM defines here
UADEFS = UADEFS =

View File

@ -25,15 +25,15 @@ ENTRY(Reset_Handler)
MEMORY MEMORY
{ {
flash0 : org = 0x00000000, len = 0xc0 flash0 : org = 0x00000000, len = 0x100
flashcfg : org = 0x00000400, len = 0x10 flashcfg : org = 0x00000400, len = 0x10
flash : org = 0x00000410, len = 128k - 0x410 flash : org = 0x00000410, len = 128k - 0x410
ram : org = 0x1FFFF000, len = 16k ram0 : org = 0x1FFFF000, len = 16k
} }
__ram_start__ = ORIGIN(ram); __ram0_start__ = ORIGIN(ram0);
__ram_size__ = LENGTH(ram); __ram0_size__ = LENGTH(ram0);
__ram_end__ = __ram_start__ + __ram_size__; __ram0_end__ = __ram0_start__ + __ram0_size__;
SECTIONS SECTIONS
{ {
@ -120,7 +120,7 @@ SECTIONS
. = ALIGN(8); . = ALIGN(8);
__process_stack_end__ = .; __process_stack_end__ = .;
__main_thread_stack_end__ = .; __main_thread_stack_end__ = .;
} > ram } > ram0
.data : .data :
{ {
@ -133,7 +133,7 @@ SECTIONS
*(.ramtext) *(.ramtext)
. = ALIGN(4); . = ALIGN(4);
PROVIDE(_edata = .); PROVIDE(_edata = .);
} > ram AT > flash } > ram0 AT > flash
.bss : .bss :
{ {
@ -146,11 +146,35 @@ SECTIONS
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
PROVIDE(_bss_end = .); PROVIDE(_bss_end = .);
} > ram } > ram0
.ram0_init : ALIGN(4)
{
. = ALIGN(4);
__ram0_init_text__ = LOADADDR(.ram0_init);
__ram0_init__ = .;
*(.ram0_init)
*(.ram0_init.*)
. = ALIGN(4);
} > ram0 AT > flash
.ram0 (NOLOAD) : ALIGN(4)
{
. = ALIGN(4);
__ram0_clear__ = .;
*(.ram0_clear)
*(.ram0_clear.*)
. = ALIGN(4);
__ram0_noinit__ = .;
*(.ram0)
*(.ram0.*)
. = ALIGN(4);
__ram0_free__ = .;
} > ram0
} }
PROVIDE(end = .); PROVIDE(end = .);
_end = .; _end = .;
__heap_base__ = _end; __heap_base__ = _end;
__heap_end__ = __ram_end__; __heap_end__ = __ram0_end__;