mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/LPC2368.ld@600:7d17ca308cd1, 2015-07-31 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jul 31 14:15:09 2015 +0100
- Revision:
- 600:7d17ca308cd1
- Parent:
- 13:0645d8841f51
Synchronized with git revision e4cd8bbd3e05b68e5a7f466c74035a85743d45e0
Full URL: https://github.com/mbedmicro/mbed/commit/e4cd8bbd3e05b68e5a7f466c74035a85743d45e0/
Enable LPC8xx usart when configuring it
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 10:3bc89ef62ce7 | 1 | OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") |
emilmont | 10:3bc89ef62ce7 | 2 | OUTPUT_ARCH(arm) |
emilmont | 10:3bc89ef62ce7 | 3 | ENTRY(vectors) |
emilmont | 10:3bc89ef62ce7 | 4 | GROUP(-lsupc++ -lm -lc -lcs3unhosted -lcs3 -lgcc) |
emilmont | 10:3bc89ef62ce7 | 5 | |
emilmont | 10:3bc89ef62ce7 | 6 | /* Memory Definitions: */ |
emilmont | 10:3bc89ef62ce7 | 7 | MEMORY |
emilmont | 10:3bc89ef62ce7 | 8 | { |
emilmont | 10:3bc89ef62ce7 | 9 | Flash (rx) : ORIGIN = 0x00000000, LENGTH = 512k |
emilmont | 10:3bc89ef62ce7 | 10 | Ram (rwx) : ORIGIN = 0x40000000, LENGTH = 32k |
emilmont | 10:3bc89ef62ce7 | 11 | UsbRam (rw) : ORIGIN = 0x7FD00000, LENGTH = 8k |
emilmont | 10:3bc89ef62ce7 | 12 | EthRam (rw) : ORIGIN = 0x7FE00000, LENGTH = 16k |
emilmont | 10:3bc89ef62ce7 | 13 | CanRam (rw) : ORIGIN = 0xE0038000, LENGTH = 2k |
emilmont | 10:3bc89ef62ce7 | 14 | BatRam (rw) : ORIGIN = 0xE0084000, LENGTH = 2k |
emilmont | 10:3bc89ef62ce7 | 15 | } |
emilmont | 10:3bc89ef62ce7 | 16 | |
emilmont | 10:3bc89ef62ce7 | 17 | /* Stack sizes: */ |
emilmont | 10:3bc89ef62ce7 | 18 | UND_Stack_Size = 16; |
emilmont | 10:3bc89ef62ce7 | 19 | SVC_Stack_Size = 512; |
emilmont | 10:3bc89ef62ce7 | 20 | ABT_Stack_Size = 16; |
emilmont | 10:3bc89ef62ce7 | 21 | FIQ_Stack_Size = 16; |
emilmont | 10:3bc89ef62ce7 | 22 | IRQ_Stack_Size = 256; |
emilmont | 10:3bc89ef62ce7 | 23 | Stack_Size_Total = UND_Stack_Size + SVC_Stack_Size + ABT_Stack_Size + FIQ_Stack_Size + IRQ_Stack_Size; |
emilmont | 10:3bc89ef62ce7 | 24 | |
emilmont | 10:3bc89ef62ce7 | 25 | /* Stack tops for each mode: */ |
emilmont | 10:3bc89ef62ce7 | 26 | __und_stack_top__ = __stacks_top__; |
emilmont | 10:3bc89ef62ce7 | 27 | __abt_stack_top__ = __und_stack_top__ - UND_Stack_Size ; |
emilmont | 10:3bc89ef62ce7 | 28 | __fiq_stack_top__ = __abt_stack_top__ - ABT_Stack_Size ; |
emilmont | 10:3bc89ef62ce7 | 29 | __irq_stack_top__ = __fiq_stack_top__ - FIQ_Stack_Size ; |
emilmont | 10:3bc89ef62ce7 | 30 | __svc_stack_top__ = __irq_stack_top__ - IRQ_Stack_Size ; |
emilmont | 10:3bc89ef62ce7 | 31 | |
emilmont | 10:3bc89ef62ce7 | 32 | /* C-accessible symbols for memory address ranges: */ |
emilmont | 10:3bc89ef62ce7 | 33 | __FLASH_segment_start__ = ORIGIN( Flash ); |
emilmont | 10:3bc89ef62ce7 | 34 | __FLASH_segment_end__ = ORIGIN( Flash ) + LENGTH( Flash ); |
emilmont | 10:3bc89ef62ce7 | 35 | __SRAM_segment_start__ = ORIGIN( Ram ); |
emilmont | 10:3bc89ef62ce7 | 36 | __SRAM_segment_end__ = ORIGIN( Ram ) + LENGTH( Ram ); |
emilmont | 10:3bc89ef62ce7 | 37 | |
emilmont | 10:3bc89ef62ce7 | 38 | /* Stacks (full descending) at top of RAM, grows downward: |
emilmont | 10:3bc89ef62ce7 | 39 | * |
emilmont | 10:3bc89ef62ce7 | 40 | * __stack_min__ is used by the malloc implementation to ensure heap never collides |
emilmont | 10:3bc89ef62ce7 | 41 | * with stack (assuming stack never grows beyond Stack_Size_Total in length) */ |
emilmont | 10:3bc89ef62ce7 | 42 | __stacks_top__ = __SRAM_segment_end__; |
emilmont | 10:3bc89ef62ce7 | 43 | __stacks_min__ = __SRAM_segment_end__ - Stack_Size_Total; |
emilmont | 10:3bc89ef62ce7 | 44 | |
emilmont | 10:3bc89ef62ce7 | 45 | SECTIONS |
emilmont | 10:3bc89ef62ce7 | 46 | { |
emilmont | 10:3bc89ef62ce7 | 47 | /* first section is .text which is used for code */ |
emilmont | 10:3bc89ef62ce7 | 48 | __text_start__ = . ; |
emilmont | 10:3bc89ef62ce7 | 49 | .text : { |
emilmont | 10:3bc89ef62ce7 | 50 | __privileged_code_start__ = . ; |
emilmont | 10:3bc89ef62ce7 | 51 | KEEP( *( .vectors ) ) |
emilmont | 10:3bc89ef62ce7 | 52 | *( .privileged_code ) |
emilmont | 10:3bc89ef62ce7 | 53 | |
emilmont | 10:3bc89ef62ce7 | 54 | __privileged_code_end__ = .; |
emilmont | 10:3bc89ef62ce7 | 55 | |
emilmont | 10:3bc89ef62ce7 | 56 | *( .text .text.* .gnu.linkonce.t.* ) |
emilmont | 10:3bc89ef62ce7 | 57 | *( .plt ) |
emilmont | 10:3bc89ef62ce7 | 58 | *( .gnu.warning ) |
emilmont | 10:3bc89ef62ce7 | 59 | *( .glue_7t ) *( .glue_7 ) *( .vfp11_veneer ) |
emilmont | 10:3bc89ef62ce7 | 60 | |
emilmont | 10:3bc89ef62ce7 | 61 | *( .rodata .rodata.* .gnu.linkonce.r.* ) |
emilmont | 10:3bc89ef62ce7 | 62 | |
emilmont | 10:3bc89ef62ce7 | 63 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
emilmont | 10:3bc89ef62ce7 | 64 | *(.gcc_except_table) |
emilmont | 10:3bc89ef62ce7 | 65 | *(.eh_frame_hdr) |
emilmont | 10:3bc89ef62ce7 | 66 | *(.eh_frame) |
emilmont | 10:3bc89ef62ce7 | 67 | |
emilmont | 10:3bc89ef62ce7 | 68 | . = ALIGN( 4 ) ; |
emilmont | 10:3bc89ef62ce7 | 69 | KEEP( *( .init ) ) |
emilmont | 10:3bc89ef62ce7 | 70 | . = ALIGN( 4 ) ; |
emilmont | 10:3bc89ef62ce7 | 71 | __preinit_array_start = . ; |
emilmont | 10:3bc89ef62ce7 | 72 | KEEP( *( .preinit_array ) ) |
emilmont | 10:3bc89ef62ce7 | 73 | __preinit_array_end = . ; |
emilmont | 10:3bc89ef62ce7 | 74 | . = ALIGN( 4 ) ; |
emilmont | 10:3bc89ef62ce7 | 75 | __init_array_start = . ; |
emilmont | 10:3bc89ef62ce7 | 76 | KEEP( *( SORT( .init_array.* ) ) ) |
emilmont | 10:3bc89ef62ce7 | 77 | KEEP( *( .init_array ) ) |
emilmont | 10:3bc89ef62ce7 | 78 | __init_array_end = . ; |
emilmont | 10:3bc89ef62ce7 | 79 | |
emilmont | 10:3bc89ef62ce7 | 80 | . = ALIGN( 4 ) ; |
emilmont | 10:3bc89ef62ce7 | 81 | KEEP( *crtbegin.o( .ctors ) ) |
emilmont | 10:3bc89ef62ce7 | 82 | KEEP( *( EXCLUDE_FILE( *crtend.o ) .ctors ) ) |
emilmont | 10:3bc89ef62ce7 | 83 | KEEP( *( SORT( .ctors.* ) ) ) |
emilmont | 10:3bc89ef62ce7 | 84 | KEEP( *crtend.o( .ctors ) ) |
emilmont | 10:3bc89ef62ce7 | 85 | |
emilmont | 10:3bc89ef62ce7 | 86 | . = ALIGN( 4 ) ; |
emilmont | 10:3bc89ef62ce7 | 87 | KEEP( *( .fini ) ) |
emilmont | 10:3bc89ef62ce7 | 88 | . = ALIGN( 4 ) ; |
emilmont | 10:3bc89ef62ce7 | 89 | __fini_array_start = . ; |
emilmont | 10:3bc89ef62ce7 | 90 | KEEP( *( .fini_array ) ) |
emilmont | 10:3bc89ef62ce7 | 91 | KEEP( *( SORT( .fini_array.* ) ) ) |
emilmont | 10:3bc89ef62ce7 | 92 | __fini_array_end = . ; |
emilmont | 10:3bc89ef62ce7 | 93 | |
emilmont | 10:3bc89ef62ce7 | 94 | KEEP( *crtbegin.o( .dtors ) ) |
emilmont | 10:3bc89ef62ce7 | 95 | KEEP( *( EXCLUDE_FILE( *crtend.o ) .dtors ) ) |
emilmont | 10:3bc89ef62ce7 | 96 | KEEP( *( SORT( .dtors.* ) ) ) |
emilmont | 10:3bc89ef62ce7 | 97 | KEEP( *crtend.o( .dtors ) ) |
emilmont | 10:3bc89ef62ce7 | 98 | |
emilmont | 10:3bc89ef62ce7 | 99 | } >Flash |
emilmont | 10:3bc89ef62ce7 | 100 | |
emilmont | 10:3bc89ef62ce7 | 101 | __exidx_start = . ; |
emilmont | 10:3bc89ef62ce7 | 102 | .ARM.exidx : { |
emilmont | 10:3bc89ef62ce7 | 103 | *( .ARM.exidx* .gnu.linkonce.armexidx.* ) |
emilmont | 10:3bc89ef62ce7 | 104 | } >Flash |
emilmont | 10:3bc89ef62ce7 | 105 | __exidx_end = . ; |
emilmont | 10:3bc89ef62ce7 | 106 | |
emilmont | 10:3bc89ef62ce7 | 107 | .text.align : { . = ALIGN( 8 ) ; } >Flash /* Alignment schenanigans */ |
emilmont | 10:3bc89ef62ce7 | 108 | __text_end__ = . ; |
emilmont | 10:3bc89ef62ce7 | 109 | |
emilmont | 10:3bc89ef62ce7 | 110 | /* .bss section -- used for uninitialized data */ |
emilmont | 10:3bc89ef62ce7 | 111 | /* Located at the start of RAM */ |
emilmont | 10:3bc89ef62ce7 | 112 | .bss (NOLOAD) : { |
emilmont | 10:3bc89ef62ce7 | 113 | __bss_start__ = . ; |
emilmont | 10:3bc89ef62ce7 | 114 | *crt0.o( .ram_vectors ) |
emilmont | 10:3bc89ef62ce7 | 115 | |
emilmont | 10:3bc89ef62ce7 | 116 | __user_bss_start__ = . ; |
emilmont | 10:3bc89ef62ce7 | 117 | *( .user_bss ) |
emilmont | 10:3bc89ef62ce7 | 118 | __user_bss_end__ = . ; |
emilmont | 10:3bc89ef62ce7 | 119 | |
emilmont | 10:3bc89ef62ce7 | 120 | *( .shbss ) |
emilmont | 10:3bc89ef62ce7 | 121 | *( .bss .bss.* .gnu.linkonce.b.* ) |
emilmont | 10:3bc89ef62ce7 | 122 | *( COMMON ) |
emilmont | 10:3bc89ef62ce7 | 123 | *( .ram.b ) |
emilmont | 10:3bc89ef62ce7 | 124 | . = ALIGN( 8 ) ; |
emilmont | 10:3bc89ef62ce7 | 125 | |
emilmont | 10:3bc89ef62ce7 | 126 | __bss_end__ = . ; |
emilmont | 10:3bc89ef62ce7 | 127 | } >Ram AT>Flash |
emilmont | 10:3bc89ef62ce7 | 128 | |
emilmont | 10:3bc89ef62ce7 | 129 | /* .data section -- used for initialized data */ |
emilmont | 10:3bc89ef62ce7 | 130 | .data : { |
emilmont | 10:3bc89ef62ce7 | 131 | __data_start__ = . ; |
emilmont | 10:3bc89ef62ce7 | 132 | KEEP( *( .jcr ) ) |
emilmont | 10:3bc89ef62ce7 | 133 | *( .got.plt ) *( .got ) |
emilmont | 10:3bc89ef62ce7 | 134 | *( .shdata ) |
emilmont | 10:3bc89ef62ce7 | 135 | *( .data .data.* .gnu.linkonce.d.* ) |
emilmont | 10:3bc89ef62ce7 | 136 | *( .ram ) |
emilmont | 10:3bc89ef62ce7 | 137 | . = ALIGN( 8 ) ; |
emilmont | 10:3bc89ef62ce7 | 138 | __data_end__ = . ; |
emilmont | 10:3bc89ef62ce7 | 139 | } >Ram AT>Flash |
emilmont | 10:3bc89ef62ce7 | 140 | |
emilmont | 10:3bc89ef62ce7 | 141 | __data_init_start__ = LOADADDR( .data ) ; |
emilmont | 10:3bc89ef62ce7 | 142 | |
emilmont | 10:3bc89ef62ce7 | 143 | /* Heap starts here and grows up in memory */ |
emilmont | 10:3bc89ef62ce7 | 144 | . = ALIGN( 8 ) ; |
emilmont | 10:3bc89ef62ce7 | 145 | __heap_start__ = . ; |
emilmont | 10:3bc89ef62ce7 | 146 | |
emilmont | 10:3bc89ef62ce7 | 147 | .stab 0 (NOLOAD) : { *(.stab) } |
emilmont | 10:3bc89ef62ce7 | 148 | .stabstr 0 (NOLOAD) : { *(.stabstr) } |
emilmont | 10:3bc89ef62ce7 | 149 | /* DWARF debug sections. */ |
emilmont | 10:3bc89ef62ce7 | 150 | /* Symbols in the DWARF debugging sections are relative to the */ |
emilmont | 10:3bc89ef62ce7 | 151 | /* beginning of the section so we begin them at 0. */ |
emilmont | 10:3bc89ef62ce7 | 152 | /* DWARF 1 */ |
emilmont | 10:3bc89ef62ce7 | 153 | .debug 0 : { *(.debug) } |
emilmont | 10:3bc89ef62ce7 | 154 | .line 0 : { *(.line) } |
emilmont | 10:3bc89ef62ce7 | 155 | /* GNU DWARF 1 extensions */ |
emilmont | 10:3bc89ef62ce7 | 156 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
emilmont | 10:3bc89ef62ce7 | 157 | .debug_sfnames 0 : { *(.debug_sfnames) } |
emilmont | 10:3bc89ef62ce7 | 158 | /* DWARF 1.1 and DWARF 2 */ |
emilmont | 10:3bc89ef62ce7 | 159 | .debug_aranges 0 : { *(.debug_aranges) } |
emilmont | 10:3bc89ef62ce7 | 160 | .debug_pubnames 0 : { *(.debug_pubnames) } |
emilmont | 10:3bc89ef62ce7 | 161 | /* DWARF 2 */ |
emilmont | 10:3bc89ef62ce7 | 162 | .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } |
emilmont | 10:3bc89ef62ce7 | 163 | .debug_abbrev 0 : { *(.debug_abbrev) } |
emilmont | 10:3bc89ef62ce7 | 164 | .debug_line 0 : { *(.debug_line) } |
emilmont | 10:3bc89ef62ce7 | 165 | .debug_frame 0 : { *(.debug_frame) } |
emilmont | 10:3bc89ef62ce7 | 166 | .debug_str 0 : { *(.debug_str) } |
emilmont | 10:3bc89ef62ce7 | 167 | .debug_loc 0 : { *(.debug_loc) } |
emilmont | 10:3bc89ef62ce7 | 168 | .debug_macinfo 0 : { *(.debug_macinfo) } |
emilmont | 10:3bc89ef62ce7 | 169 | /* SGI/MIPS DWARF 2 extensions */ |
emilmont | 10:3bc89ef62ce7 | 170 | .debug_weaknames 0 : { *(.debug_weaknames) } |
emilmont | 10:3bc89ef62ce7 | 171 | .debug_funcnames 0 : { *(.debug_funcnames) } |
emilmont | 10:3bc89ef62ce7 | 172 | .debug_typenames 0 : { *(.debug_typenames) } |
emilmont | 10:3bc89ef62ce7 | 173 | .debug_varnames 0 : { *(.debug_varnames) } |
emilmont | 10:3bc89ef62ce7 | 174 | /* DWARF 3 */ |
emilmont | 10:3bc89ef62ce7 | 175 | .debug_pubtypes 0 : { *(.debug_pubtypes) } |
emilmont | 10:3bc89ef62ce7 | 176 | .debug_ranges 0 : { *(.debug_ranges) } |
emilmont | 10:3bc89ef62ce7 | 177 | |
emilmont | 10:3bc89ef62ce7 | 178 | .note.gnu.arm.ident 0 : { KEEP( *( .note.gnu.arm.ident ) ) } |
emilmont | 10:3bc89ef62ce7 | 179 | .ARM.attributes 0 : { |
emilmont | 10:3bc89ef62ce7 | 180 | KEEP( *( .ARM.attributes ) ) |
emilmont | 10:3bc89ef62ce7 | 181 | KEEP( *( .gnu.attributes ) ) |
emilmont | 10:3bc89ef62ce7 | 182 | } |
emilmont | 10:3bc89ef62ce7 | 183 | /DISCARD/ : { *( .note.GNU-stack ) } |
emilmont | 10:3bc89ef62ce7 | 184 | |
emilmont | 10:3bc89ef62ce7 | 185 | /* C data can be defined as being in special purpose RAMs using |
emilmont | 10:3bc89ef62ce7 | 186 | * __attribute__ ((section ("ethram"))) for example. */ |
emilmont | 10:3bc89ef62ce7 | 187 | .usbram (NOLOAD): |
emilmont | 10:3bc89ef62ce7 | 188 | { |
emilmont | 10:3bc89ef62ce7 | 189 | *( .usbram ) |
emilmont | 10:3bc89ef62ce7 | 190 | *( .usbram.* ) |
emilmont | 10:3bc89ef62ce7 | 191 | } > UsbRam |
emilmont | 10:3bc89ef62ce7 | 192 | .ethram (NOLOAD): |
emilmont | 10:3bc89ef62ce7 | 193 | { |
emilmont | 10:3bc89ef62ce7 | 194 | *( .ethram ) |
emilmont | 10:3bc89ef62ce7 | 195 | *( .ethram.* ) |
emilmont | 10:3bc89ef62ce7 | 196 | } > EthRam |
emilmont | 10:3bc89ef62ce7 | 197 | .canram (NOLOAD): |
emilmont | 10:3bc89ef62ce7 | 198 | { |
emilmont | 10:3bc89ef62ce7 | 199 | *( .canram ) |
emilmont | 10:3bc89ef62ce7 | 200 | *( .canram.* ) |
emilmont | 10:3bc89ef62ce7 | 201 | } > CanRam |
emilmont | 10:3bc89ef62ce7 | 202 | .batram (NOLOAD): |
emilmont | 10:3bc89ef62ce7 | 203 | { |
emilmont | 10:3bc89ef62ce7 | 204 | *( .batram ) |
emilmont | 10:3bc89ef62ce7 | 205 | *( .batram.* ) |
emilmont | 10:3bc89ef62ce7 | 206 | } > BatRam |
emilmont | 10:3bc89ef62ce7 | 207 | } |