From 34f6b80fd0691d60509cc4327cb28cb9c293337f Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 20 Nov 2015 08:33:43 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8512 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/SPC5/RT-SPC560D-EVB-CW/cw/ch/ch.lcf | 135 ++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 demos/SPC5/RT-SPC560D-EVB-CW/cw/ch/ch.lcf (limited to 'demos/SPC5/RT-SPC560D-EVB-CW') diff --git a/demos/SPC5/RT-SPC560D-EVB-CW/cw/ch/ch.lcf b/demos/SPC5/RT-SPC560D-EVB-CW/cw/ch/ch.lcf new file mode 100644 index 000000000..ac2e8516f --- /dev/null +++ b/demos/SPC5/RT-SPC560D-EVB-CW/cw/ch/ch.lcf @@ -0,0 +1,135 @@ +/* + ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio. + + This file is part of ChibiOS. + + ChibiOS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + ChibiOS is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +/* + * SPC560D40 memory setup. + */ +MEMORY +{ + flash : org = 0x00000000, len = 0x00040000 + dataflash : org = 0x00800000, len = 0x00010000 + ram : org = 0x40000000, len = 0x00004000 +} + +__irq_stack_size__ = 0; +__process_stack_size__ = 0x1000; + +__ram_size__ = SIZEOF(ram); +__ram_start__ = ADDR(ram); +__ram_end__ = ADDR(ram) + SIZEOF(ram); + +SECTIONS +{ + . = ADDR(flash); + + GROUP: + { + .boot ALIGN(16): + { + KEEP(*(.boot)) + } + + .handlers ALIGN(4): {} + + .crt0 ALIGN(4): {} + + .init ALIGN(4): {} + + .vectors ALIGN(0x800): + { + KEEP(*(.vectors)) + } + + .ivors ALIGN(0x1000): + { + __ivpr_base__ = .; + KEEP(*(.ivors)) + } + + .code (VLECODE) ALIGN(16): + { + *(.text) + *(.text_vle) + } + + .const (CONST) ALIGN(16): + { + *(.rodata) + } + + .sdata2 (CONST) ALIGN(16): + { + __sdata2_start__ = . + 0x8000; + *(.sdata2) + *(.sbss2) + } + + .ctors : {} + .dtors : {} + extab: {} + extabindex: {} + + } > flash + + GROUP: + { + .stacks (BSS) ALIGN(16): + { + . = ALIGN(8); + __irq_stack_base__ = .; + . = . + __irq_stack_size__; + . = ALIGN(8); + __irq_stack_end__ = .; + __process_stack_base__ = .; + __main_thread_stack_base__ = .; + . = . + __process_stack_size__; + . = ALIGN(8); + __process_stack_end__ = .; + __main_thread_stack_end__ = .; + } + + .data: + { + . = ALIGN(4); + __data_start__ = .; + *(.data) + } + + .sdata: + { + __sdata_start__ = . + 0x8000; + *(.sdata) + __data_end__ = .; + } + + .sbss: + { + __bss_start__ = .; + *(.sbss) + } + + .bss: + { + *(.bss) + __bss_end__ = .; + } + } > ram +} + +__romdata_start__ = _f_data_rom; -- cgit v1.2.3