The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_RO359B/TOOLCHAIN_GCC_ARM/MK24FN1M0xxx12.ld@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 143:86740a56073b | 1 | /* |
AnnaBridge | 143:86740a56073b | 2 | ** ################################################################### |
AnnaBridge | 143:86740a56073b | 3 | ** Processors: MK64FN1M0VDC12 |
AnnaBridge | 143:86740a56073b | 4 | ** MK64FN1M0VLL12 |
AnnaBridge | 143:86740a56073b | 5 | ** MK64FN1M0VLQ12 |
AnnaBridge | 143:86740a56073b | 6 | ** MK64FN1M0VMD12 |
AnnaBridge | 143:86740a56073b | 7 | ** |
AnnaBridge | 143:86740a56073b | 8 | ** Compiler: GNU C Compiler |
AnnaBridge | 143:86740a56073b | 9 | ** Reference manual: K64P144M120SF5RM, Rev.2, January 2014 |
AnnaBridge | 143:86740a56073b | 10 | ** Version: rev. 2.8, 2015-02-19 |
AnnaBridge | 143:86740a56073b | 11 | ** Build: b151217 |
AnnaBridge | 143:86740a56073b | 12 | ** |
AnnaBridge | 143:86740a56073b | 13 | ** Abstract: |
AnnaBridge | 143:86740a56073b | 14 | ** Linker file for the GNU C Compiler |
AnnaBridge | 143:86740a56073b | 15 | ** |
AnnaBridge | 143:86740a56073b | 16 | ** Copyright (c) 2015 Freescale Semiconductor, Inc. |
AnnaBridge | 143:86740a56073b | 17 | ** All rights reserved. |
AnnaBridge | 143:86740a56073b | 18 | ** |
AnnaBridge | 143:86740a56073b | 19 | ** Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 143:86740a56073b | 20 | ** are permitted provided that the following conditions are met: |
AnnaBridge | 143:86740a56073b | 21 | ** |
AnnaBridge | 143:86740a56073b | 22 | ** o Redistributions of source code must retain the above copyright notice, this list |
AnnaBridge | 143:86740a56073b | 23 | ** of conditions and the following disclaimer. |
AnnaBridge | 143:86740a56073b | 24 | ** |
AnnaBridge | 143:86740a56073b | 25 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
AnnaBridge | 143:86740a56073b | 26 | ** list of conditions and the following disclaimer in the documentation and/or |
AnnaBridge | 143:86740a56073b | 27 | ** other materials provided with the distribution. |
AnnaBridge | 143:86740a56073b | 28 | ** |
AnnaBridge | 143:86740a56073b | 29 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
AnnaBridge | 143:86740a56073b | 30 | ** contributors may be used to endorse or promote products derived from this |
AnnaBridge | 143:86740a56073b | 31 | ** software without specific prior written permission. |
AnnaBridge | 143:86740a56073b | 32 | ** |
AnnaBridge | 143:86740a56073b | 33 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
AnnaBridge | 143:86740a56073b | 34 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
AnnaBridge | 143:86740a56073b | 35 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 143:86740a56073b | 36 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
AnnaBridge | 143:86740a56073b | 37 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
AnnaBridge | 143:86740a56073b | 38 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
AnnaBridge | 143:86740a56073b | 39 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
AnnaBridge | 143:86740a56073b | 40 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
AnnaBridge | 143:86740a56073b | 41 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
AnnaBridge | 143:86740a56073b | 42 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 143:86740a56073b | 43 | ** |
AnnaBridge | 143:86740a56073b | 44 | ** http: www.freescale.com |
AnnaBridge | 143:86740a56073b | 45 | ** mail: support@freescale.com |
AnnaBridge | 143:86740a56073b | 46 | ** |
AnnaBridge | 143:86740a56073b | 47 | ** ################################################################### |
AnnaBridge | 143:86740a56073b | 48 | */ |
AnnaBridge | 143:86740a56073b | 49 | |
AnnaBridge | 143:86740a56073b | 50 | /* Entry Point */ |
AnnaBridge | 143:86740a56073b | 51 | ENTRY(Reset_Handler) |
AnnaBridge | 143:86740a56073b | 52 | |
AnnaBridge | 143:86740a56073b | 53 | __ram_vector_table__ = 1; |
AnnaBridge | 143:86740a56073b | 54 | |
AnnaBridge | 143:86740a56073b | 55 | /* Heap 1/4 of ram and stack 1/8 */ |
AnnaBridge | 143:86740a56073b | 56 | __stack_size__ = 0x8000; |
AnnaBridge | 143:86740a56073b | 57 | __heap_size__ = 0x10000; |
AnnaBridge | 143:86740a56073b | 58 | |
Anna Bridge |
160:5571c4ff569f | 59 | #if !defined(MBED_APP_START) |
Anna Bridge |
160:5571c4ff569f | 60 | #define MBED_APP_START 0 |
Anna Bridge |
160:5571c4ff569f | 61 | #endif |
Anna Bridge |
160:5571c4ff569f | 62 | |
Anna Bridge |
160:5571c4ff569f | 63 | #if !defined(MBED_APP_SIZE) |
Anna Bridge |
160:5571c4ff569f | 64 | #define MBED_APP_SIZE 0x100000 |
Anna Bridge |
160:5571c4ff569f | 65 | #endif |
Anna Bridge |
160:5571c4ff569f | 66 | |
Anna Bridge |
160:5571c4ff569f | 67 | HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x8000; |
Anna Bridge |
160:5571c4ff569f | 68 | STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x10000; |
AnnaBridge | 143:86740a56073b | 69 | M_VECTOR_RAM_SIZE = DEFINED(__ram_vector_table__) ? 0x0400 : 0x0; |
AnnaBridge | 143:86740a56073b | 70 | |
AnnaBridge | 143:86740a56073b | 71 | /* Specify the memory areas */ |
AnnaBridge | 143:86740a56073b | 72 | MEMORY |
AnnaBridge | 143:86740a56073b | 73 | { |
Anna Bridge |
160:5571c4ff569f | 74 | m_interrupts (RX) : ORIGIN = MBED_APP_START, LENGTH = 0x400 |
Anna Bridge |
160:5571c4ff569f | 75 | m_flash_config (RX) : ORIGIN = MBED_APP_START + 0x400, LENGTH = 0x10 |
Anna Bridge |
160:5571c4ff569f | 76 | m_text (RX) : ORIGIN = MBED_APP_START + 0x410, LENGTH = MBED_APP_SIZE - 0x410 |
AnnaBridge | 143:86740a56073b | 77 | m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000 |
AnnaBridge | 143:86740a56073b | 78 | m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00030000 |
AnnaBridge | 143:86740a56073b | 79 | } |
AnnaBridge | 143:86740a56073b | 80 | |
AnnaBridge | 143:86740a56073b | 81 | /* Define output sections */ |
AnnaBridge | 143:86740a56073b | 82 | SECTIONS |
AnnaBridge | 143:86740a56073b | 83 | { |
AnnaBridge | 143:86740a56073b | 84 | /* The startup code goes first into internal flash */ |
AnnaBridge | 143:86740a56073b | 85 | .interrupts : |
AnnaBridge | 143:86740a56073b | 86 | { |
AnnaBridge | 143:86740a56073b | 87 | __VECTOR_TABLE = .; |
AnnaBridge | 171:3a7713b1edbc | 88 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 89 | KEEP(*(.isr_vector)) /* Startup code */ |
AnnaBridge | 171:3a7713b1edbc | 90 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 91 | } > m_interrupts |
AnnaBridge | 143:86740a56073b | 92 | |
AnnaBridge | 143:86740a56073b | 93 | .flash_config : |
AnnaBridge | 143:86740a56073b | 94 | { |
AnnaBridge | 171:3a7713b1edbc | 95 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 96 | KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ |
AnnaBridge | 171:3a7713b1edbc | 97 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 98 | } > m_flash_config |
AnnaBridge | 143:86740a56073b | 99 | |
AnnaBridge | 171:3a7713b1edbc | 100 | .text : |
AnnaBridge | 143:86740a56073b | 101 | { |
AnnaBridge | 143:86740a56073b | 102 | |
AnnaBridge | 171:3a7713b1edbc | 103 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 104 | *(.text) /* .text sections (code) */ |
AnnaBridge | 143:86740a56073b | 105 | *(.text*) /* .text* sections (code) */ |
AnnaBridge | 143:86740a56073b | 106 | *(.rodata) /* .rodata sections (constants, strings, etc.) */ |
AnnaBridge | 143:86740a56073b | 107 | *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ |
AnnaBridge | 143:86740a56073b | 108 | *(.glue_7) /* glue arm to thumb code */ |
AnnaBridge | 143:86740a56073b | 109 | *(.glue_7t) /* glue thumb to arm code */ |
AnnaBridge | 143:86740a56073b | 110 | *(.eh_frame) |
AnnaBridge | 143:86740a56073b | 111 | KEEP (*(.init)) |
AnnaBridge | 143:86740a56073b | 112 | KEEP (*(.fini)) |
AnnaBridge | 171:3a7713b1edbc | 113 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 114 | } > m_text |
AnnaBridge | 143:86740a56073b | 115 | |
AnnaBridge | 143:86740a56073b | 116 | .ARM.extab : |
AnnaBridge | 143:86740a56073b | 117 | { |
AnnaBridge | 143:86740a56073b | 118 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
AnnaBridge | 143:86740a56073b | 119 | } > m_text |
AnnaBridge | 143:86740a56073b | 120 | |
AnnaBridge | 143:86740a56073b | 121 | .ARM : |
AnnaBridge | 143:86740a56073b | 122 | { |
AnnaBridge | 143:86740a56073b | 123 | __exidx_start = .; |
AnnaBridge | 143:86740a56073b | 124 | *(.ARM.exidx*) |
AnnaBridge | 143:86740a56073b | 125 | __exidx_end = .; |
AnnaBridge | 143:86740a56073b | 126 | } > m_text |
AnnaBridge | 143:86740a56073b | 127 | |
AnnaBridge | 143:86740a56073b | 128 | .ctors : |
AnnaBridge | 143:86740a56073b | 129 | { |
AnnaBridge | 143:86740a56073b | 130 | __CTOR_LIST__ = .; |
AnnaBridge | 143:86740a56073b | 131 | /* gcc uses crtbegin.o to find the start of |
AnnaBridge | 143:86740a56073b | 132 | the constructors, so we make sure it is |
AnnaBridge | 143:86740a56073b | 133 | first. Because this is a wildcard, it |
AnnaBridge | 143:86740a56073b | 134 | doesn't matter if the user does not |
AnnaBridge | 143:86740a56073b | 135 | actually link against crtbegin.o; the |
AnnaBridge | 143:86740a56073b | 136 | linker won't look for a file to match a |
AnnaBridge | 143:86740a56073b | 137 | wildcard. The wildcard also means that it |
AnnaBridge | 143:86740a56073b | 138 | doesn't matter which directory crtbegin.o |
AnnaBridge | 143:86740a56073b | 139 | is in. */ |
AnnaBridge | 143:86740a56073b | 140 | KEEP (*crtbegin.o(.ctors)) |
AnnaBridge | 143:86740a56073b | 141 | KEEP (*crtbegin?.o(.ctors)) |
AnnaBridge | 143:86740a56073b | 142 | /* We don't want to include the .ctor section from |
AnnaBridge | 143:86740a56073b | 143 | from the crtend.o file until after the sorted ctors. |
AnnaBridge | 143:86740a56073b | 144 | The .ctor section from the crtend file contains the |
AnnaBridge | 143:86740a56073b | 145 | end of ctors marker and it must be last */ |
AnnaBridge | 143:86740a56073b | 146 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)) |
AnnaBridge | 143:86740a56073b | 147 | KEEP (*(SORT(.ctors.*))) |
AnnaBridge | 143:86740a56073b | 148 | KEEP (*(.ctors)) |
AnnaBridge | 143:86740a56073b | 149 | __CTOR_END__ = .; |
AnnaBridge | 143:86740a56073b | 150 | } > m_text |
AnnaBridge | 143:86740a56073b | 151 | |
AnnaBridge | 143:86740a56073b | 152 | .dtors : |
AnnaBridge | 143:86740a56073b | 153 | { |
AnnaBridge | 143:86740a56073b | 154 | __DTOR_LIST__ = .; |
AnnaBridge | 143:86740a56073b | 155 | KEEP (*crtbegin.o(.dtors)) |
AnnaBridge | 143:86740a56073b | 156 | KEEP (*crtbegin?.o(.dtors)) |
AnnaBridge | 143:86740a56073b | 157 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)) |
AnnaBridge | 143:86740a56073b | 158 | KEEP (*(SORT(.dtors.*))) |
AnnaBridge | 143:86740a56073b | 159 | KEEP (*(.dtors)) |
AnnaBridge | 143:86740a56073b | 160 | __DTOR_END__ = .; |
AnnaBridge | 143:86740a56073b | 161 | } > m_text |
AnnaBridge | 143:86740a56073b | 162 | |
AnnaBridge | 143:86740a56073b | 163 | .preinit_array : |
AnnaBridge | 143:86740a56073b | 164 | { |
AnnaBridge | 143:86740a56073b | 165 | PROVIDE_HIDDEN (__preinit_array_start = .); |
AnnaBridge | 143:86740a56073b | 166 | KEEP (*(.preinit_array*)) |
AnnaBridge | 143:86740a56073b | 167 | PROVIDE_HIDDEN (__preinit_array_end = .); |
AnnaBridge | 143:86740a56073b | 168 | } > m_text |
AnnaBridge | 143:86740a56073b | 169 | |
AnnaBridge | 143:86740a56073b | 170 | .init_array : |
AnnaBridge | 143:86740a56073b | 171 | { |
AnnaBridge | 143:86740a56073b | 172 | PROVIDE_HIDDEN (__init_array_start = .); |
AnnaBridge | 143:86740a56073b | 173 | KEEP (*(SORT(.init_array.*))) |
AnnaBridge | 143:86740a56073b | 174 | KEEP (*(.init_array*)) |
AnnaBridge | 143:86740a56073b | 175 | PROVIDE_HIDDEN (__init_array_end = .); |
AnnaBridge | 143:86740a56073b | 176 | } > m_text |
AnnaBridge | 143:86740a56073b | 177 | |
AnnaBridge | 143:86740a56073b | 178 | .fini_array : |
AnnaBridge | 143:86740a56073b | 179 | { |
AnnaBridge | 143:86740a56073b | 180 | PROVIDE_HIDDEN (__fini_array_start = .); |
AnnaBridge | 143:86740a56073b | 181 | KEEP (*(SORT(.fini_array.*))) |
AnnaBridge | 143:86740a56073b | 182 | KEEP (*(.fini_array*)) |
AnnaBridge | 143:86740a56073b | 183 | PROVIDE_HIDDEN (__fini_array_end = .); |
AnnaBridge | 143:86740a56073b | 184 | } > m_text |
AnnaBridge | 143:86740a56073b | 185 | |
AnnaBridge | 143:86740a56073b | 186 | .interrupts_ram : |
AnnaBridge | 143:86740a56073b | 187 | { |
AnnaBridge | 171:3a7713b1edbc | 188 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 189 | __VECTOR_RAM__ = .; |
AnnaBridge | 143:86740a56073b | 190 | __interrupts_ram_start__ = .; /* Create a global symbol at data start */ |
AnnaBridge | 143:86740a56073b | 191 | *(.m_interrupts_ram) /* This is a user defined section */ |
AnnaBridge | 143:86740a56073b | 192 | . += M_VECTOR_RAM_SIZE; |
AnnaBridge | 171:3a7713b1edbc | 193 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 194 | __interrupts_ram_end__ = .; /* Define a global symbol at data end */ |
AnnaBridge | 143:86740a56073b | 195 | } > m_data |
AnnaBridge | 143:86740a56073b | 196 | |
AnnaBridge | 143:86740a56073b | 197 | |
AnnaBridge | 143:86740a56073b | 198 | __VECTOR_RAM = DEFINED(__ram_vector_table__) ? __VECTOR_RAM__ : ORIGIN(m_interrupts); |
AnnaBridge | 143:86740a56073b | 199 | __RAM_VECTOR_TABLE_SIZE_BYTES = DEFINED(__ram_vector_table__) ? (__interrupts_ram_end__ - __interrupts_ram_start__) : 0x0; |
AnnaBridge | 143:86740a56073b | 200 | |
AnnaBridge | 143:86740a56073b | 201 | .data : |
AnnaBridge | 143:86740a56073b | 202 | { |
AnnaBridge | 143:86740a56073b | 203 | PROVIDE(__etext = LOADADDR(.data)); /* Define a global symbol at end of code, */ |
AnnaBridge | 143:86740a56073b | 204 | PROVIDE(__DATA_ROM = LOADADDR(.data)); /* Symbol is used by startup for data initialization. */ |
AnnaBridge | 171:3a7713b1edbc | 205 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 206 | __DATA_RAM = .; |
AnnaBridge | 143:86740a56073b | 207 | __data_start__ = .; /* create a global symbol at data start */ |
AnnaBridge | 143:86740a56073b | 208 | *(.data) /* .data sections */ |
AnnaBridge | 143:86740a56073b | 209 | *(.data*) /* .data* sections */ |
AnnaBridge | 143:86740a56073b | 210 | KEEP(*(.jcr*)) |
AnnaBridge | 171:3a7713b1edbc | 211 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 212 | __data_end__ = .; /* define a global symbol at data end */ |
AnnaBridge | 143:86740a56073b | 213 | } > m_data_2 AT > m_text |
AnnaBridge | 143:86740a56073b | 214 | |
AnnaBridge | 143:86740a56073b | 215 | __DATA_END = __DATA_ROM + (__data_end__ - __data_start__); |
AnnaBridge | 143:86740a56073b | 216 | text_end = ORIGIN(m_text) + LENGTH(m_text); |
AnnaBridge | 143:86740a56073b | 217 | ASSERT(__DATA_END <= text_end, "region m_text overflowed with text and data") |
AnnaBridge | 143:86740a56073b | 218 | |
AnnaBridge | 143:86740a56073b | 219 | |
AnnaBridge | 143:86740a56073b | 220 | /* Uninitialized data section |
AnnaBridge | 143:86740a56073b | 221 | * This region is not initialized by the C/C++ library and can be used to |
AnnaBridge | 143:86740a56073b | 222 | * store state across soft reboots. */ |
AnnaBridge | 143:86740a56073b | 223 | .uninitialized (NOLOAD): |
AnnaBridge | 143:86740a56073b | 224 | { |
AnnaBridge | 143:86740a56073b | 225 | . = ALIGN(32); |
AnnaBridge | 143:86740a56073b | 226 | __uninitialized_start = .; |
AnnaBridge | 143:86740a56073b | 227 | *(.uninitialized) |
AnnaBridge | 143:86740a56073b | 228 | KEEP(*(.keep.uninitialized)) |
AnnaBridge | 143:86740a56073b | 229 | . = ALIGN(32); |
AnnaBridge | 143:86740a56073b | 230 | __uninitialized_end = .; |
AnnaBridge | 143:86740a56073b | 231 | } > m_data_2 |
AnnaBridge | 143:86740a56073b | 232 | |
AnnaBridge | 143:86740a56073b | 233 | USB_RAM_GAP = DEFINED(__usb_ram_size__) ? __usb_ram_size__ : 0x800; |
AnnaBridge | 143:86740a56073b | 234 | /* Uninitialized data section */ |
AnnaBridge | 143:86740a56073b | 235 | .bss : |
AnnaBridge | 143:86740a56073b | 236 | { |
AnnaBridge | 143:86740a56073b | 237 | /* This is used by the startup in order to initialize the .bss section */ |
AnnaBridge | 171:3a7713b1edbc | 238 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 239 | __START_BSS = .; |
AnnaBridge | 143:86740a56073b | 240 | __bss_start__ = .; |
AnnaBridge | 143:86740a56073b | 241 | *(.bss) |
AnnaBridge | 143:86740a56073b | 242 | *(.bss*) |
AnnaBridge | 143:86740a56073b | 243 | . = ALIGN(512); |
AnnaBridge | 143:86740a56073b | 244 | USB_RAM_START = .; |
AnnaBridge | 143:86740a56073b | 245 | . += USB_RAM_GAP; |
AnnaBridge | 143:86740a56073b | 246 | *(COMMON) |
AnnaBridge | 171:3a7713b1edbc | 247 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 248 | __bss_end__ = .; |
AnnaBridge | 143:86740a56073b | 249 | __END_BSS = .; |
AnnaBridge | 143:86740a56073b | 250 | } > m_data_2 |
AnnaBridge | 143:86740a56073b | 251 | |
AnnaBridge | 143:86740a56073b | 252 | .heap : |
AnnaBridge | 143:86740a56073b | 253 | { |
AnnaBridge | 143:86740a56073b | 254 | . = ALIGN(8); |
AnnaBridge | 143:86740a56073b | 255 | __end__ = .; |
AnnaBridge | 143:86740a56073b | 256 | PROVIDE(end = .); |
AnnaBridge | 143:86740a56073b | 257 | __HeapBase = .; |
AnnaBridge | 143:86740a56073b | 258 | . += HEAP_SIZE; |
AnnaBridge | 143:86740a56073b | 259 | __HeapLimit = .; |
AnnaBridge | 143:86740a56073b | 260 | __heap_limit = .; /* Add for _sbrk */ |
AnnaBridge | 143:86740a56073b | 261 | } > m_data_2 |
AnnaBridge | 143:86740a56073b | 262 | |
AnnaBridge | 143:86740a56073b | 263 | m_usb_bdt USB_RAM_START (NOLOAD) : |
AnnaBridge | 143:86740a56073b | 264 | { |
AnnaBridge | 143:86740a56073b | 265 | *(m_usb_bdt) |
AnnaBridge | 143:86740a56073b | 266 | USB_RAM_BDT_END = .; |
AnnaBridge | 143:86740a56073b | 267 | } |
AnnaBridge | 143:86740a56073b | 268 | |
AnnaBridge | 143:86740a56073b | 269 | m_usb_global USB_RAM_BDT_END (NOLOAD) : |
AnnaBridge | 143:86740a56073b | 270 | { |
AnnaBridge | 143:86740a56073b | 271 | *(m_usb_global) |
AnnaBridge | 143:86740a56073b | 272 | } |
AnnaBridge | 143:86740a56073b | 273 | |
AnnaBridge | 143:86740a56073b | 274 | /* Initializes stack on the end of block */ |
AnnaBridge | 143:86740a56073b | 275 | __StackTop = ORIGIN(m_data_2) + LENGTH(m_data_2); |
AnnaBridge | 143:86740a56073b | 276 | __StackLimit = __StackTop - STACK_SIZE; |
AnnaBridge | 143:86740a56073b | 277 | PROVIDE(__stack = __StackTop); |
AnnaBridge | 143:86740a56073b | 278 | |
AnnaBridge | 143:86740a56073b | 279 | .ARM.attributes 0 : { *(.ARM.attributes) } |
AnnaBridge | 143:86740a56073b | 280 | |
AnnaBridge | 143:86740a56073b | 281 | ASSERT(__StackLimit >= __HeapLimit, "region m_data_2 overflowed with stack and heap") |
AnnaBridge | 143:86740a56073b | 282 | |
AnnaBridge | 143:86740a56073b | 283 | } |