The official mbed C/C SDK provides the software platform and libraries to build your applications.

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Wed Jun 11 15:14:05 2014 +0100
Revision:
85:024bf7f99721
Release 85 of the mbed library

Main changes:

- K64F Ethernet fixes
- Updated tests
- Fixes for various mbed targets
- Code cleanup: fixed warnings, more consistent code style
- GCC support for K64F

There is a known issue with the I2C interface on some ST targets. If you
find the I2C interface problematic on your ST board, please log a bug
against this on mbed.org.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 85:024bf7f99721 1 /* mbed - LPC1768 linker script
bogdanm 85:024bf7f99721 2 * Based linker script generated by Code Red Technologies Red Suite 4.1
bogdanm 85:024bf7f99721 3 */
bogdanm 85:024bf7f99721 4 GROUP(libgcc.a libc.a libstdc++.a libm.a libcr_newlib_nohost.a crti.o crtn.o crtbegin.o crtend.o)
bogdanm 85:024bf7f99721 5
bogdanm 85:024bf7f99721 6 MEMORY
bogdanm 85:024bf7f99721 7 {
bogdanm 85:024bf7f99721 8 /* Define each memory region */
bogdanm 85:024bf7f99721 9 MFlash512 (rx) : ORIGIN = 0x0, LENGTH = 0x80000 /* 512k */
bogdanm 85:024bf7f99721 10 RamLoc32 (rwx) : ORIGIN = 0x100000C8, LENGTH = 0x7F38 /* 32k */
bogdanm 85:024bf7f99721 11 RamAHB32 (rwx) : ORIGIN = 0x2007c000, LENGTH = 0x8000 /* 32k */
bogdanm 85:024bf7f99721 12
bogdanm 85:024bf7f99721 13 }
bogdanm 85:024bf7f99721 14 /* Define a symbol for the top of each memory region */
bogdanm 85:024bf7f99721 15 __top_MFlash512 = 0x0 + 0x80000;
bogdanm 85:024bf7f99721 16 __top_RamLoc32 = 0x10000000 + 0x8000;
bogdanm 85:024bf7f99721 17 __top_RamAHB32 = 0x2007c000 + 0x8000;
bogdanm 85:024bf7f99721 18
bogdanm 85:024bf7f99721 19 ENTRY(ResetISR)
bogdanm 85:024bf7f99721 20
bogdanm 85:024bf7f99721 21 SECTIONS
bogdanm 85:024bf7f99721 22 {
bogdanm 85:024bf7f99721 23
bogdanm 85:024bf7f99721 24 /* MAIN TEXT SECTION */
bogdanm 85:024bf7f99721 25 .text : ALIGN(4)
bogdanm 85:024bf7f99721 26 {
bogdanm 85:024bf7f99721 27 FILL(0xff)
bogdanm 85:024bf7f99721 28 KEEP(*(.isr_vector))
bogdanm 85:024bf7f99721 29
bogdanm 85:024bf7f99721 30 /* Global Section Table */
bogdanm 85:024bf7f99721 31 . = ALIGN(4) ;
bogdanm 85:024bf7f99721 32 __section_table_start = .;
bogdanm 85:024bf7f99721 33 __data_section_table = .;
bogdanm 85:024bf7f99721 34 LONG(LOADADDR(.data));
bogdanm 85:024bf7f99721 35 LONG( ADDR(.data)) ;
bogdanm 85:024bf7f99721 36 LONG( SIZEOF(.data));
bogdanm 85:024bf7f99721 37 LONG(LOADADDR(.data_RAM2));
bogdanm 85:024bf7f99721 38 LONG( ADDR(.data_RAM2)) ;
bogdanm 85:024bf7f99721 39 LONG( SIZEOF(.data_RAM2));
bogdanm 85:024bf7f99721 40 __data_section_table_end = .;
bogdanm 85:024bf7f99721 41 __bss_section_table = .;
bogdanm 85:024bf7f99721 42 LONG( ADDR(.bss));
bogdanm 85:024bf7f99721 43 LONG( SIZEOF(.bss));
bogdanm 85:024bf7f99721 44 LONG( ADDR(.bss_RAM2));
bogdanm 85:024bf7f99721 45 LONG( SIZEOF(.bss_RAM2));
bogdanm 85:024bf7f99721 46 __bss_section_table_end = .;
bogdanm 85:024bf7f99721 47 __section_table_end = . ;
bogdanm 85:024bf7f99721 48 /* End of Global Section Table */
bogdanm 85:024bf7f99721 49
bogdanm 85:024bf7f99721 50
bogdanm 85:024bf7f99721 51 *(.after_vectors*)
bogdanm 85:024bf7f99721 52
bogdanm 85:024bf7f99721 53 *(.text*)
bogdanm 85:024bf7f99721 54 *(.rodata .rodata.*)
bogdanm 85:024bf7f99721 55 . = ALIGN(4);
bogdanm 85:024bf7f99721 56
bogdanm 85:024bf7f99721 57 /* C++ constructors etc */
bogdanm 85:024bf7f99721 58 . = ALIGN(4);
bogdanm 85:024bf7f99721 59 KEEP(*(.init))
bogdanm 85:024bf7f99721 60
bogdanm 85:024bf7f99721 61 . = ALIGN(4);
bogdanm 85:024bf7f99721 62 __preinit_array_start = .;
bogdanm 85:024bf7f99721 63 KEEP (*(.preinit_array))
bogdanm 85:024bf7f99721 64 __preinit_array_end = .;
bogdanm 85:024bf7f99721 65
bogdanm 85:024bf7f99721 66 . = ALIGN(4);
bogdanm 85:024bf7f99721 67 __init_array_start = .;
bogdanm 85:024bf7f99721 68 KEEP (*(SORT(.init_array.*)))
bogdanm 85:024bf7f99721 69 KEEP (*(.init_array))
bogdanm 85:024bf7f99721 70 __init_array_end = .;
bogdanm 85:024bf7f99721 71
bogdanm 85:024bf7f99721 72 KEEP(*(.fini));
bogdanm 85:024bf7f99721 73
bogdanm 85:024bf7f99721 74 . = ALIGN(0x4);
bogdanm 85:024bf7f99721 75 KEEP (*crtbegin.o(.ctors))
bogdanm 85:024bf7f99721 76 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
bogdanm 85:024bf7f99721 77 KEEP (*(SORT(.ctors.*)))
bogdanm 85:024bf7f99721 78 KEEP (*crtend.o(.ctors))
bogdanm 85:024bf7f99721 79
bogdanm 85:024bf7f99721 80 . = ALIGN(0x4);
bogdanm 85:024bf7f99721 81 KEEP (*crtbegin.o(.dtors))
bogdanm 85:024bf7f99721 82 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
bogdanm 85:024bf7f99721 83 KEEP (*(SORT(.dtors.*)))
bogdanm 85:024bf7f99721 84 KEEP (*crtend.o(.dtors))
bogdanm 85:024bf7f99721 85 /* End C++ */
bogdanm 85:024bf7f99721 86 } > MFlash512
bogdanm 85:024bf7f99721 87
bogdanm 85:024bf7f99721 88 /*
bogdanm 85:024bf7f99721 89 * for exception handling/unwind - some Newlib functions (in common
bogdanm 85:024bf7f99721 90 * with C++ and STDC++) use this.
bogdanm 85:024bf7f99721 91 */
bogdanm 85:024bf7f99721 92 .ARM.extab : ALIGN(4)
bogdanm 85:024bf7f99721 93 {
bogdanm 85:024bf7f99721 94 *(.ARM.extab* .gnu.linkonce.armextab.*)
bogdanm 85:024bf7f99721 95 } > MFlash512
bogdanm 85:024bf7f99721 96 __exidx_start = .;
bogdanm 85:024bf7f99721 97
bogdanm 85:024bf7f99721 98 .ARM.exidx : ALIGN(4)
bogdanm 85:024bf7f99721 99 {
bogdanm 85:024bf7f99721 100 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
bogdanm 85:024bf7f99721 101 } > MFlash512
bogdanm 85:024bf7f99721 102 __exidx_end = .;
bogdanm 85:024bf7f99721 103
bogdanm 85:024bf7f99721 104 _etext = .;
bogdanm 85:024bf7f99721 105
bogdanm 85:024bf7f99721 106
bogdanm 85:024bf7f99721 107 .data_RAM2 : ALIGN(4)
bogdanm 85:024bf7f99721 108 {
bogdanm 85:024bf7f99721 109 FILL(0xff)
bogdanm 85:024bf7f99721 110 *(.data.$RAM2*)
bogdanm 85:024bf7f99721 111 *(.data.$RamAHB32*)
bogdanm 85:024bf7f99721 112 . = ALIGN(4) ;
bogdanm 85:024bf7f99721 113 } > RamAHB32 AT>MFlash512
bogdanm 85:024bf7f99721 114
bogdanm 85:024bf7f99721 115 /* MAIN DATA SECTION */
bogdanm 85:024bf7f99721 116
bogdanm 85:024bf7f99721 117 .uninit_RESERVED : ALIGN(4)
bogdanm 85:024bf7f99721 118 {
bogdanm 85:024bf7f99721 119 KEEP(*(.bss.$RESERVED*))
bogdanm 85:024bf7f99721 120 } > RamLoc32
bogdanm 85:024bf7f99721 121
bogdanm 85:024bf7f99721 122 .data : ALIGN(4)
bogdanm 85:024bf7f99721 123 {
bogdanm 85:024bf7f99721 124 FILL(0xff)
bogdanm 85:024bf7f99721 125 _data = .;
bogdanm 85:024bf7f99721 126 *(vtable)
bogdanm 85:024bf7f99721 127 *(.data*)
bogdanm 85:024bf7f99721 128 . = ALIGN(4) ;
bogdanm 85:024bf7f99721 129 _edata = .;
bogdanm 85:024bf7f99721 130 } > RamLoc32 AT>MFlash512
bogdanm 85:024bf7f99721 131
bogdanm 85:024bf7f99721 132
bogdanm 85:024bf7f99721 133 .bss_RAM2 : ALIGN(4)
bogdanm 85:024bf7f99721 134 {
bogdanm 85:024bf7f99721 135 *(.bss.$RAM2*)
bogdanm 85:024bf7f99721 136 *(.bss.$RamAHB32*)
bogdanm 85:024bf7f99721 137 . = ALIGN(4) ;
bogdanm 85:024bf7f99721 138 } > RamAHB32
bogdanm 85:024bf7f99721 139
bogdanm 85:024bf7f99721 140 /* MAIN BSS SECTION */
bogdanm 85:024bf7f99721 141 .bss : ALIGN(4)
bogdanm 85:024bf7f99721 142 {
bogdanm 85:024bf7f99721 143 _bss = .;
bogdanm 85:024bf7f99721 144 *(.bss*)
bogdanm 85:024bf7f99721 145 *(COMMON)
bogdanm 85:024bf7f99721 146 . = ALIGN(4) ;
bogdanm 85:024bf7f99721 147 _ebss = .;
bogdanm 85:024bf7f99721 148 PROVIDE(end = .);
bogdanm 85:024bf7f99721 149 __end__ = .;
bogdanm 85:024bf7f99721 150 } > RamLoc32
bogdanm 85:024bf7f99721 151
bogdanm 85:024bf7f99721 152 PROVIDE(_pvHeapStart = .);
bogdanm 85:024bf7f99721 153 PROVIDE(_vStackTop = __top_RamLoc32 - 0);
bogdanm 85:024bf7f99721 154 }