ads1115 only
Fork of mbed by
TARGET_K82F/TOOLCHAIN_GCC_ARM/MK82FN256xxx15.ld@129:0ab6a29f35bf, 2016-11-08 (annotated)
- Committer:
- <>
- Date:
- Tue Nov 08 17:28:34 2016 +0000
- Revision:
- 129:0ab6a29f35bf
Release 129 of the mbed library
Ports for Upcoming Targets
3011: Add u-blox Sara-N target. https://github.com/ARMmbed/mbed-os/pull/3011
3099: MAX32625 https://github.com/ARMmbed/mbed-os/pull/3099
3151: Add support for FRDM-K82F https://github.com/ARMmbed/mbed-os/pull/3151
3177: New mcu k22512 fixing pr 3136 https://github.com/ARMmbed/mbed-os/pull/3177
Fixes and Changes
3008: NUCLEO_F072RB: Fix wrong timer channel number on pwm PB_5 pin https://github.com/ARMmbed/mbed-os/pull/3008
3013: STM32xx - Change how the ADC internal pins are checked before pinmap_ https://github.com/ARMmbed/mbed-os/pull/3013
3041: [nRF5] - added implementation of API of serial port flow control configuration. https://github.com/ARMmbed/mbed-os/pull/3041
3084: [nrf5] fix in Digital I/O : a gpioe pin was uninitialized badly https://github.com/ARMmbed/mbed-os/pull/3084
3009: TRNG enabled. TRNG APIs implemented. REV A/B/C/D flags removed. Warnings removed https://github.com/ARMmbed/mbed-os/pull/3009
3074: Target stm init gcc alignement https://github.com/ARMmbed/mbed-os/pull/3074
2988: Update of can_api.c fixing #2987 https://github.com/ARMmbed/mbed-os/pull/2988
3173: [Exporters] Add a device_name to microbit entry in targets.json https://github.com/ARMmbed/mbed-os/pull/3173
2969: [nRF52] - switch irq priorities of driver handlers to the lowest level https://github.com/ARMmbed/mbed-os/pull/2969
3184: #3183 Compiler warning in trng_api.c with K64F https://github.com/ARMmbed/mbed-os/pull/3184
3104: [NuMaker] Support CAN and fix PWM CLK error https://github.com/ARMmbed/mbed-os/pull/3104
3186: MultiTech mDot - add back SPI3 pins https://github.com/ARMmbed/mbed-os/pull/3186
3075: nsapi - Add standardized return types for size and errors https://github.com/ARMmbed/mbed-os/pull/3075
3221: u-blox odin w2 drivers update https://github.com/ARMmbed/mbed-os/pull/3221
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 129:0ab6a29f35bf | 1 | /* |
<> | 129:0ab6a29f35bf | 2 | ** ################################################################### |
<> | 129:0ab6a29f35bf | 3 | ** Processors: MK82FN256CAx15 |
<> | 129:0ab6a29f35bf | 4 | ** MK82FN256VDC15 |
<> | 129:0ab6a29f35bf | 5 | ** MK82FN256VLL15 |
<> | 129:0ab6a29f35bf | 6 | ** MK82FN256VLQ15 |
<> | 129:0ab6a29f35bf | 7 | ** |
<> | 129:0ab6a29f35bf | 8 | ** Compiler: GNU C Compiler |
<> | 129:0ab6a29f35bf | 9 | ** Reference manual: K82P121M150SF5RM, Rev. 0, May 2015 |
<> | 129:0ab6a29f35bf | 10 | ** Version: rev. 1.2, 2015-07-29 |
<> | 129:0ab6a29f35bf | 11 | ** Build: b160613 |
<> | 129:0ab6a29f35bf | 12 | ** |
<> | 129:0ab6a29f35bf | 13 | ** Abstract: |
<> | 129:0ab6a29f35bf | 14 | ** Linker file for the GNU C Compiler |
<> | 129:0ab6a29f35bf | 15 | ** |
<> | 129:0ab6a29f35bf | 16 | ** Copyright (c) 2016 Freescale Semiconductor, Inc. |
<> | 129:0ab6a29f35bf | 17 | ** All rights reserved. |
<> | 129:0ab6a29f35bf | 18 | ** |
<> | 129:0ab6a29f35bf | 19 | ** Redistribution and use in source and binary forms, with or without modification, |
<> | 129:0ab6a29f35bf | 20 | ** are permitted provided that the following conditions are met: |
<> | 129:0ab6a29f35bf | 21 | ** |
<> | 129:0ab6a29f35bf | 22 | ** o Redistributions of source code must retain the above copyright notice, this list |
<> | 129:0ab6a29f35bf | 23 | ** of conditions and the following disclaimer. |
<> | 129:0ab6a29f35bf | 24 | ** |
<> | 129:0ab6a29f35bf | 25 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
<> | 129:0ab6a29f35bf | 26 | ** list of conditions and the following disclaimer in the documentation and/or |
<> | 129:0ab6a29f35bf | 27 | ** other materials provided with the distribution. |
<> | 129:0ab6a29f35bf | 28 | ** |
<> | 129:0ab6a29f35bf | 29 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
<> | 129:0ab6a29f35bf | 30 | ** contributors may be used to endorse or promote products derived from this |
<> | 129:0ab6a29f35bf | 31 | ** software without specific prior written permission. |
<> | 129:0ab6a29f35bf | 32 | ** |
<> | 129:0ab6a29f35bf | 33 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
<> | 129:0ab6a29f35bf | 34 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
<> | 129:0ab6a29f35bf | 35 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
<> | 129:0ab6a29f35bf | 36 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
<> | 129:0ab6a29f35bf | 37 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
<> | 129:0ab6a29f35bf | 38 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
<> | 129:0ab6a29f35bf | 39 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
<> | 129:0ab6a29f35bf | 40 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
<> | 129:0ab6a29f35bf | 41 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
<> | 129:0ab6a29f35bf | 42 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
<> | 129:0ab6a29f35bf | 43 | ** |
<> | 129:0ab6a29f35bf | 44 | ** http: www.freescale.com |
<> | 129:0ab6a29f35bf | 45 | ** mail: support@freescale.com |
<> | 129:0ab6a29f35bf | 46 | ** |
<> | 129:0ab6a29f35bf | 47 | ** ################################################################### |
<> | 129:0ab6a29f35bf | 48 | */ |
<> | 129:0ab6a29f35bf | 49 | |
<> | 129:0ab6a29f35bf | 50 | /* Entry Point */ |
<> | 129:0ab6a29f35bf | 51 | ENTRY(Reset_Handler) |
<> | 129:0ab6a29f35bf | 52 | |
<> | 129:0ab6a29f35bf | 53 | __ram_vector_table__ = 1; |
<> | 129:0ab6a29f35bf | 54 | |
<> | 129:0ab6a29f35bf | 55 | /* Heap 1/4 of ram and stack 1/8 */ |
<> | 129:0ab6a29f35bf | 56 | __stack_size__ = 0x8000; |
<> | 129:0ab6a29f35bf | 57 | __heap_size__ = 0x10000; |
<> | 129:0ab6a29f35bf | 58 | |
<> | 129:0ab6a29f35bf | 59 | HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x0400; |
<> | 129:0ab6a29f35bf | 60 | STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400; |
<> | 129:0ab6a29f35bf | 61 | M_VECTOR_RAM_SIZE = DEFINED(__ram_vector_table__) ? 0x03C0 : 0x0; |
<> | 129:0ab6a29f35bf | 62 | |
<> | 129:0ab6a29f35bf | 63 | /* Specify the memory areas */ |
<> | 129:0ab6a29f35bf | 64 | MEMORY |
<> | 129:0ab6a29f35bf | 65 | { |
<> | 129:0ab6a29f35bf | 66 | m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000003C0 |
<> | 129:0ab6a29f35bf | 67 | m_bootloader_config (RX) : ORIGIN = 0x000003C0, LENGTH = 0x00000040 |
<> | 129:0ab6a29f35bf | 68 | m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010 |
<> | 129:0ab6a29f35bf | 69 | m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0 |
<> | 129:0ab6a29f35bf | 70 | m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000 |
<> | 129:0ab6a29f35bf | 71 | m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00030000 |
<> | 129:0ab6a29f35bf | 72 | } |
<> | 129:0ab6a29f35bf | 73 | |
<> | 129:0ab6a29f35bf | 74 | /* Define output sections */ |
<> | 129:0ab6a29f35bf | 75 | SECTIONS |
<> | 129:0ab6a29f35bf | 76 | { |
<> | 129:0ab6a29f35bf | 77 | /* The startup code goes first into internal flash */ |
<> | 129:0ab6a29f35bf | 78 | .interrupts : |
<> | 129:0ab6a29f35bf | 79 | { |
<> | 129:0ab6a29f35bf | 80 | __VECTOR_TABLE = .; |
<> | 129:0ab6a29f35bf | 81 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 82 | KEEP(*(.isr_vector)) /* Startup code */ |
<> | 129:0ab6a29f35bf | 83 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 84 | } > m_interrupts |
<> | 129:0ab6a29f35bf | 85 | |
<> | 129:0ab6a29f35bf | 86 | .bootloader_config : |
<> | 129:0ab6a29f35bf | 87 | { |
<> | 129:0ab6a29f35bf | 88 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 89 | KEEP(*(.BootloaderConfig)) /* Bootloader Configuration Area (BCA) */ |
<> | 129:0ab6a29f35bf | 90 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 91 | } > m_bootloader_config |
<> | 129:0ab6a29f35bf | 92 | |
<> | 129:0ab6a29f35bf | 93 | .flash_config : |
<> | 129:0ab6a29f35bf | 94 | { |
<> | 129:0ab6a29f35bf | 95 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 96 | KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */ |
<> | 129:0ab6a29f35bf | 97 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 98 | } > m_flash_config |
<> | 129:0ab6a29f35bf | 99 | |
<> | 129:0ab6a29f35bf | 100 | /* The program code and other data goes into internal flash */ |
<> | 129:0ab6a29f35bf | 101 | .text : |
<> | 129:0ab6a29f35bf | 102 | { |
<> | 129:0ab6a29f35bf | 103 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 104 | *(.text) /* .text sections (code) */ |
<> | 129:0ab6a29f35bf | 105 | *(.text*) /* .text* sections (code) */ |
<> | 129:0ab6a29f35bf | 106 | *(.rodata) /* .rodata sections (constants, strings, etc.) */ |
<> | 129:0ab6a29f35bf | 107 | *(.rodata*) /* .rodata* sections (constants, strings, etc.) */ |
<> | 129:0ab6a29f35bf | 108 | *(.glue_7) /* glue arm to thumb code */ |
<> | 129:0ab6a29f35bf | 109 | *(.glue_7t) /* glue thumb to arm code */ |
<> | 129:0ab6a29f35bf | 110 | *(.eh_frame) |
<> | 129:0ab6a29f35bf | 111 | KEEP (*(.init)) |
<> | 129:0ab6a29f35bf | 112 | KEEP (*(.fini)) |
<> | 129:0ab6a29f35bf | 113 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 114 | } > m_text |
<> | 129:0ab6a29f35bf | 115 | |
<> | 129:0ab6a29f35bf | 116 | .ARM.extab : |
<> | 129:0ab6a29f35bf | 117 | { |
<> | 129:0ab6a29f35bf | 118 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
<> | 129:0ab6a29f35bf | 119 | } > m_text |
<> | 129:0ab6a29f35bf | 120 | |
<> | 129:0ab6a29f35bf | 121 | .ARM : |
<> | 129:0ab6a29f35bf | 122 | { |
<> | 129:0ab6a29f35bf | 123 | __exidx_start = .; |
<> | 129:0ab6a29f35bf | 124 | *(.ARM.exidx*) |
<> | 129:0ab6a29f35bf | 125 | __exidx_end = .; |
<> | 129:0ab6a29f35bf | 126 | } > m_text |
<> | 129:0ab6a29f35bf | 127 | |
<> | 129:0ab6a29f35bf | 128 | .ctors : |
<> | 129:0ab6a29f35bf | 129 | { |
<> | 129:0ab6a29f35bf | 130 | __CTOR_LIST__ = .; |
<> | 129:0ab6a29f35bf | 131 | /* gcc uses crtbegin.o to find the start of |
<> | 129:0ab6a29f35bf | 132 | the constructors, so we make sure it is |
<> | 129:0ab6a29f35bf | 133 | first. Because this is a wildcard, it |
<> | 129:0ab6a29f35bf | 134 | doesn't matter if the user does not |
<> | 129:0ab6a29f35bf | 135 | actually link against crtbegin.o; the |
<> | 129:0ab6a29f35bf | 136 | linker won't look for a file to match a |
<> | 129:0ab6a29f35bf | 137 | wildcard. The wildcard also means that it |
<> | 129:0ab6a29f35bf | 138 | doesn't matter which directory crtbegin.o |
<> | 129:0ab6a29f35bf | 139 | is in. */ |
<> | 129:0ab6a29f35bf | 140 | KEEP (*crtbegin.o(.ctors)) |
<> | 129:0ab6a29f35bf | 141 | KEEP (*crtbegin?.o(.ctors)) |
<> | 129:0ab6a29f35bf | 142 | /* We don't want to include the .ctor section from |
<> | 129:0ab6a29f35bf | 143 | from the crtend.o file until after the sorted ctors. |
<> | 129:0ab6a29f35bf | 144 | The .ctor section from the crtend file contains the |
<> | 129:0ab6a29f35bf | 145 | end of ctors marker and it must be last */ |
<> | 129:0ab6a29f35bf | 146 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)) |
<> | 129:0ab6a29f35bf | 147 | KEEP (*(SORT(.ctors.*))) |
<> | 129:0ab6a29f35bf | 148 | KEEP (*(.ctors)) |
<> | 129:0ab6a29f35bf | 149 | __CTOR_END__ = .; |
<> | 129:0ab6a29f35bf | 150 | } > m_text |
<> | 129:0ab6a29f35bf | 151 | |
<> | 129:0ab6a29f35bf | 152 | .dtors : |
<> | 129:0ab6a29f35bf | 153 | { |
<> | 129:0ab6a29f35bf | 154 | __DTOR_LIST__ = .; |
<> | 129:0ab6a29f35bf | 155 | KEEP (*crtbegin.o(.dtors)) |
<> | 129:0ab6a29f35bf | 156 | KEEP (*crtbegin?.o(.dtors)) |
<> | 129:0ab6a29f35bf | 157 | KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)) |
<> | 129:0ab6a29f35bf | 158 | KEEP (*(SORT(.dtors.*))) |
<> | 129:0ab6a29f35bf | 159 | KEEP (*(.dtors)) |
<> | 129:0ab6a29f35bf | 160 | __DTOR_END__ = .; |
<> | 129:0ab6a29f35bf | 161 | } > m_text |
<> | 129:0ab6a29f35bf | 162 | |
<> | 129:0ab6a29f35bf | 163 | .preinit_array : |
<> | 129:0ab6a29f35bf | 164 | { |
<> | 129:0ab6a29f35bf | 165 | PROVIDE_HIDDEN (__preinit_array_start = .); |
<> | 129:0ab6a29f35bf | 166 | KEEP (*(.preinit_array*)) |
<> | 129:0ab6a29f35bf | 167 | PROVIDE_HIDDEN (__preinit_array_end = .); |
<> | 129:0ab6a29f35bf | 168 | } > m_text |
<> | 129:0ab6a29f35bf | 169 | |
<> | 129:0ab6a29f35bf | 170 | .init_array : |
<> | 129:0ab6a29f35bf | 171 | { |
<> | 129:0ab6a29f35bf | 172 | PROVIDE_HIDDEN (__init_array_start = .); |
<> | 129:0ab6a29f35bf | 173 | KEEP (*(SORT(.init_array.*))) |
<> | 129:0ab6a29f35bf | 174 | KEEP (*(.init_array*)) |
<> | 129:0ab6a29f35bf | 175 | PROVIDE_HIDDEN (__init_array_end = .); |
<> | 129:0ab6a29f35bf | 176 | } > m_text |
<> | 129:0ab6a29f35bf | 177 | |
<> | 129:0ab6a29f35bf | 178 | .fini_array : |
<> | 129:0ab6a29f35bf | 179 | { |
<> | 129:0ab6a29f35bf | 180 | PROVIDE_HIDDEN (__fini_array_start = .); |
<> | 129:0ab6a29f35bf | 181 | KEEP (*(SORT(.fini_array.*))) |
<> | 129:0ab6a29f35bf | 182 | KEEP (*(.fini_array*)) |
<> | 129:0ab6a29f35bf | 183 | PROVIDE_HIDDEN (__fini_array_end = .); |
<> | 129:0ab6a29f35bf | 184 | } > m_text |
<> | 129:0ab6a29f35bf | 185 | |
<> | 129:0ab6a29f35bf | 186 | __etext = .; /* define a global symbol at end of code */ |
<> | 129:0ab6a29f35bf | 187 | __DATA_ROM = .; /* Symbol is used by startup for data initialization */ |
<> | 129:0ab6a29f35bf | 188 | |
<> | 129:0ab6a29f35bf | 189 | .interrupts_ram : |
<> | 129:0ab6a29f35bf | 190 | { |
<> | 129:0ab6a29f35bf | 191 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 192 | __VECTOR_RAM__ = .; |
<> | 129:0ab6a29f35bf | 193 | __interrupts_ram_start__ = .; /* Create a global symbol at data start */ |
<> | 129:0ab6a29f35bf | 194 | *(.m_interrupts_ram) /* This is a user defined section */ |
<> | 129:0ab6a29f35bf | 195 | . += M_VECTOR_RAM_SIZE; |
<> | 129:0ab6a29f35bf | 196 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 197 | __interrupts_ram_end__ = .; /* Define a global symbol at data end */ |
<> | 129:0ab6a29f35bf | 198 | } > m_data |
<> | 129:0ab6a29f35bf | 199 | |
<> | 129:0ab6a29f35bf | 200 | __VECTOR_RAM = DEFINED(__ram_vector_table__) ? __VECTOR_RAM__ : ORIGIN(m_interrupts); |
<> | 129:0ab6a29f35bf | 201 | __RAM_VECTOR_TABLE_SIZE_BYTES = DEFINED(__ram_vector_table__) ? (__interrupts_ram_end__ - __interrupts_ram_start__) : 0x0; |
<> | 129:0ab6a29f35bf | 202 | |
<> | 129:0ab6a29f35bf | 203 | .data : AT(__DATA_ROM) |
<> | 129:0ab6a29f35bf | 204 | { |
<> | 129:0ab6a29f35bf | 205 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 206 | __DATA_RAM = .; |
<> | 129:0ab6a29f35bf | 207 | __data_start__ = .; /* create a global symbol at data start */ |
<> | 129:0ab6a29f35bf | 208 | *(.data) /* .data sections */ |
<> | 129:0ab6a29f35bf | 209 | *(.data*) /* .data* sections */ |
<> | 129:0ab6a29f35bf | 210 | KEEP(*(.jcr*)) |
<> | 129:0ab6a29f35bf | 211 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 212 | __data_end__ = .; /* define a global symbol at data end */ |
<> | 129:0ab6a29f35bf | 213 | } > m_data |
<> | 129:0ab6a29f35bf | 214 | |
<> | 129:0ab6a29f35bf | 215 | __DATA_END = __DATA_ROM + (__data_end__ - __data_start__); |
<> | 129:0ab6a29f35bf | 216 | text_end = ORIGIN(m_text) + LENGTH(m_text); |
<> | 129:0ab6a29f35bf | 217 | ASSERT(__DATA_END <= text_end, "region m_text overflowed with text and data") |
<> | 129:0ab6a29f35bf | 218 | |
<> | 129:0ab6a29f35bf | 219 | USB_RAM_GAP = DEFINED(__usb_ram_size__) ? __usb_ram_size__ : 0x00; |
<> | 129:0ab6a29f35bf | 220 | /* Uninitialized data section */ |
<> | 129:0ab6a29f35bf | 221 | .bss : |
<> | 129:0ab6a29f35bf | 222 | { |
<> | 129:0ab6a29f35bf | 223 | /* This is used by the startup in order to initialize the .bss section */ |
<> | 129:0ab6a29f35bf | 224 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 225 | __START_BSS = .; |
<> | 129:0ab6a29f35bf | 226 | __bss_start__ = .; |
<> | 129:0ab6a29f35bf | 227 | *(.bss) |
<> | 129:0ab6a29f35bf | 228 | *(.bss*) |
<> | 129:0ab6a29f35bf | 229 | . = ALIGN(512); |
<> | 129:0ab6a29f35bf | 230 | USB_RAM_START = .; |
<> | 129:0ab6a29f35bf | 231 | . += USB_RAM_GAP; |
<> | 129:0ab6a29f35bf | 232 | *(COMMON) |
<> | 129:0ab6a29f35bf | 233 | . = ALIGN(4); |
<> | 129:0ab6a29f35bf | 234 | __bss_end__ = .; |
<> | 129:0ab6a29f35bf | 235 | __END_BSS = .; |
<> | 129:0ab6a29f35bf | 236 | } > m_data |
<> | 129:0ab6a29f35bf | 237 | |
<> | 129:0ab6a29f35bf | 238 | .heap : |
<> | 129:0ab6a29f35bf | 239 | { |
<> | 129:0ab6a29f35bf | 240 | . = ALIGN(8); |
<> | 129:0ab6a29f35bf | 241 | __end__ = .; |
<> | 129:0ab6a29f35bf | 242 | PROVIDE(end = .); |
<> | 129:0ab6a29f35bf | 243 | __HeapBase = .; |
<> | 129:0ab6a29f35bf | 244 | . += HEAP_SIZE; |
<> | 129:0ab6a29f35bf | 245 | __HeapLimit = .; |
<> | 129:0ab6a29f35bf | 246 | __heap_limit = .; /* Add for _sbrk */ |
<> | 129:0ab6a29f35bf | 247 | } > m_data_2 |
<> | 129:0ab6a29f35bf | 248 | |
<> | 129:0ab6a29f35bf | 249 | .stack : |
<> | 129:0ab6a29f35bf | 250 | { |
<> | 129:0ab6a29f35bf | 251 | . = ALIGN(8); |
<> | 129:0ab6a29f35bf | 252 | . += STACK_SIZE; |
<> | 129:0ab6a29f35bf | 253 | } > m_data_2 |
<> | 129:0ab6a29f35bf | 254 | |
<> | 129:0ab6a29f35bf | 255 | m_usb_bdt USB_RAM_START (NOLOAD) : |
<> | 129:0ab6a29f35bf | 256 | { |
<> | 129:0ab6a29f35bf | 257 | *(m_usb_bdt) |
<> | 129:0ab6a29f35bf | 258 | USB_RAM_BDT_END = .; |
<> | 129:0ab6a29f35bf | 259 | } |
<> | 129:0ab6a29f35bf | 260 | |
<> | 129:0ab6a29f35bf | 261 | m_usb_global USB_RAM_BDT_END (NOLOAD) : |
<> | 129:0ab6a29f35bf | 262 | { |
<> | 129:0ab6a29f35bf | 263 | *(m_usb_global) |
<> | 129:0ab6a29f35bf | 264 | } |
<> | 129:0ab6a29f35bf | 265 | |
<> | 129:0ab6a29f35bf | 266 | /* Initializes stack on the end of block */ |
<> | 129:0ab6a29f35bf | 267 | __StackTop = ORIGIN(m_data_2) + LENGTH(m_data_2); |
<> | 129:0ab6a29f35bf | 268 | __StackLimit = __StackTop - STACK_SIZE; |
<> | 129:0ab6a29f35bf | 269 | PROVIDE(__stack = __StackTop); |
<> | 129:0ab6a29f35bf | 270 | |
<> | 129:0ab6a29f35bf | 271 | .ARM.attributes 0 : { *(.ARM.attributes) } |
<> | 129:0ab6a29f35bf | 272 | |
<> | 129:0ab6a29f35bf | 273 | ASSERT(__StackLimit >= __HeapLimit, "region m_data_2 overflowed with stack and heap") |
<> | 129:0ab6a29f35bf | 274 | } |
<> | 129:0ab6a29f35bf | 275 |