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_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429xI.ld@136:ef9c61f8c49f, 2017-02-14 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 14 11:24:20 2017 +0000
- Revision:
- 136:ef9c61f8c49f
- Child:
- 138:093f2bd7b9eb
Release 136 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3432: Target STM USBHOST support https://github.com/ARMmbed/mbed-os/pull/3432
3181: NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now https://github.com/ARMmbed/mbed-os/pull/3181
3626: NUCLEO_F412ZG : Add USB Device +Host https://github.com/ARMmbed/mbed-os/pull/3626
3628: Fix warnings https://github.com/ARMmbed/mbed-os/pull/3628
3629: STM32: L0 LL layer https://github.com/ARMmbed/mbed-os/pull/3629
3632: IDE Export support for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3632
3642: Missing IRQ pin fix for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3642
3664: Fix ncs36510 sleep definitions https://github.com/ARMmbed/mbed-os/pull/3664
3655: [STM32F4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3655
3657: [STM32L4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3657
3658: [STM32F3] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3658
3685: STM32: I2C: reset state machine https://github.com/ARMmbed/mbed-os/pull/3685
3692: uVisor: Standardize available legacy heap and stack https://github.com/ARMmbed/mbed-os/pull/3692
3621: Fix for #2884, LPC824: export to LPCXpresso, target running with wron https://github.com/ARMmbed/mbed-os/pull/3621
3649: [STM32F7] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3649
3695: Enforce device_name is valid in targets.json https://github.com/ARMmbed/mbed-os/pull/3695
3723: NCS36510: spi_format function bug fix https://github.com/ARMmbed/mbed-os/pull/3723
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 136:ef9c61f8c49f | 1 | M_VECTOR_RAM_SIZE = 0x400; |
Kojto | 136:ef9c61f8c49f | 2 | |
Kojto | 136:ef9c61f8c49f | 3 | /* With the RTOS in use, this does not affect the main stack size. The size of |
Kojto | 136:ef9c61f8c49f | 4 | * the stack where main runs is determined via the RTOS. */ |
Kojto | 136:ef9c61f8c49f | 5 | STACK_SIZE = 0x400; |
Kojto | 136:ef9c61f8c49f | 6 | |
Kojto | 136:ef9c61f8c49f | 7 | /* This is the guaranteed minimum available heap size for an application. When |
Kojto | 136:ef9c61f8c49f | 8 | * uVisor is enabled, this is also the maximum available heap size. The |
Kojto | 136:ef9c61f8c49f | 9 | * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy |
Kojto | 136:ef9c61f8c49f | 10 | * heap and the page heap in uVisor applications. */ |
Kojto | 136:ef9c61f8c49f | 11 | HEAP_SIZE = 0x6000; |
Kojto | 136:ef9c61f8c49f | 12 | |
Kojto | 136:ef9c61f8c49f | 13 | /* Specify the memory areas */ |
Kojto | 136:ef9c61f8c49f | 14 | MEMORY |
Kojto | 136:ef9c61f8c49f | 15 | { |
Kojto | 136:ef9c61f8c49f | 16 | VECTORS (rx) : ORIGIN = 0x08000000, LENGTH = 0x400 |
Kojto | 136:ef9c61f8c49f | 17 | FLASH (rx) : ORIGIN = 0x08000400, LENGTH = 2048k - 0x400 |
Kojto | 136:ef9c61f8c49f | 18 | CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K |
Kojto | 136:ef9c61f8c49f | 19 | RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 192k |
Kojto | 136:ef9c61f8c49f | 20 | } |
Kojto | 136:ef9c61f8c49f | 21 | |
Kojto | 136:ef9c61f8c49f | 22 | /* Linker script to place sections and symbol values. Should be used together |
Kojto | 136:ef9c61f8c49f | 23 | * with other linker script that defines memory regions FLASH and RAM. |
Kojto | 136:ef9c61f8c49f | 24 | * It references following symbols, which must be defined in code: |
Kojto | 136:ef9c61f8c49f | 25 | * Reset_Handler : Entry of reset handler |
Kojto | 136:ef9c61f8c49f | 26 | * |
Kojto | 136:ef9c61f8c49f | 27 | * It defines following symbols, which code can use without definition: |
Kojto | 136:ef9c61f8c49f | 28 | * __exidx_start |
Kojto | 136:ef9c61f8c49f | 29 | * __exidx_end |
Kojto | 136:ef9c61f8c49f | 30 | * __etext |
Kojto | 136:ef9c61f8c49f | 31 | * __data_start__ |
Kojto | 136:ef9c61f8c49f | 32 | * __preinit_array_start |
Kojto | 136:ef9c61f8c49f | 33 | * __preinit_array_end |
Kojto | 136:ef9c61f8c49f | 34 | * __init_array_start |
Kojto | 136:ef9c61f8c49f | 35 | * __init_array_end |
Kojto | 136:ef9c61f8c49f | 36 | * __fini_array_start |
Kojto | 136:ef9c61f8c49f | 37 | * __fini_array_end |
Kojto | 136:ef9c61f8c49f | 38 | * __data_end__ |
Kojto | 136:ef9c61f8c49f | 39 | * __bss_start__ |
Kojto | 136:ef9c61f8c49f | 40 | * __bss_end__ |
Kojto | 136:ef9c61f8c49f | 41 | * __end__ |
Kojto | 136:ef9c61f8c49f | 42 | * end |
Kojto | 136:ef9c61f8c49f | 43 | * __HeapLimit |
Kojto | 136:ef9c61f8c49f | 44 | * __StackLimit |
Kojto | 136:ef9c61f8c49f | 45 | * __StackTop |
Kojto | 136:ef9c61f8c49f | 46 | * __stack |
Kojto | 136:ef9c61f8c49f | 47 | * _estack |
Kojto | 136:ef9c61f8c49f | 48 | */ |
Kojto | 136:ef9c61f8c49f | 49 | ENTRY(Reset_Handler) |
Kojto | 136:ef9c61f8c49f | 50 | |
Kojto | 136:ef9c61f8c49f | 51 | SECTIONS |
Kojto | 136:ef9c61f8c49f | 52 | { |
Kojto | 136:ef9c61f8c49f | 53 | .isr_vector : |
Kojto | 136:ef9c61f8c49f | 54 | { |
Kojto | 136:ef9c61f8c49f | 55 | __vector_table = .; |
Kojto | 136:ef9c61f8c49f | 56 | KEEP(*(.isr_vector)) |
Kojto | 136:ef9c61f8c49f | 57 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 58 | } > VECTORS |
Kojto | 136:ef9c61f8c49f | 59 | |
Kojto | 136:ef9c61f8c49f | 60 | /* Note: The uVisor expects this section at a fixed location, as specified |
Kojto | 136:ef9c61f8c49f | 61 | * by the porting process configuration parameter: |
Kojto | 136:ef9c61f8c49f | 62 | * FLASH_OFFSET. */ |
Kojto | 136:ef9c61f8c49f | 63 | __UVISOR_FLASH_OFFSET = 0x400; |
Kojto | 136:ef9c61f8c49f | 64 | __UVISOR_FLASH_START = ORIGIN(VECTORS) + __UVISOR_FLASH_OFFSET; |
Kojto | 136:ef9c61f8c49f | 65 | .text __UVISOR_FLASH_START : |
Kojto | 136:ef9c61f8c49f | 66 | { |
Kojto | 136:ef9c61f8c49f | 67 | /* uVisor code and data */ |
Kojto | 136:ef9c61f8c49f | 68 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 69 | __uvisor_main_start = .; |
Kojto | 136:ef9c61f8c49f | 70 | *(.uvisor.main) |
Kojto | 136:ef9c61f8c49f | 71 | __uvisor_main_end = .; |
Kojto | 136:ef9c61f8c49f | 72 | |
Kojto | 136:ef9c61f8c49f | 73 | *(.text*) |
Kojto | 136:ef9c61f8c49f | 74 | |
Kojto | 136:ef9c61f8c49f | 75 | KEEP(*(.init)) |
Kojto | 136:ef9c61f8c49f | 76 | KEEP(*(.fini)) |
Kojto | 136:ef9c61f8c49f | 77 | |
Kojto | 136:ef9c61f8c49f | 78 | /* .ctors */ |
Kojto | 136:ef9c61f8c49f | 79 | *crtbegin.o(.ctors) |
Kojto | 136:ef9c61f8c49f | 80 | *crtbegin?.o(.ctors) |
Kojto | 136:ef9c61f8c49f | 81 | *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors) |
Kojto | 136:ef9c61f8c49f | 82 | *(SORT(.ctors.*)) |
Kojto | 136:ef9c61f8c49f | 83 | *(.ctors) |
Kojto | 136:ef9c61f8c49f | 84 | |
Kojto | 136:ef9c61f8c49f | 85 | /* .dtors */ |
Kojto | 136:ef9c61f8c49f | 86 | *crtbegin.o(.dtors) |
Kojto | 136:ef9c61f8c49f | 87 | *crtbegin?.o(.dtors) |
Kojto | 136:ef9c61f8c49f | 88 | *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors) |
Kojto | 136:ef9c61f8c49f | 89 | *(SORT(.dtors.*)) |
Kojto | 136:ef9c61f8c49f | 90 | *(.dtors) |
Kojto | 136:ef9c61f8c49f | 91 | |
Kojto | 136:ef9c61f8c49f | 92 | *(.rodata*) |
Kojto | 136:ef9c61f8c49f | 93 | |
Kojto | 136:ef9c61f8c49f | 94 | KEEP(*(.eh_frame*)) |
Kojto | 136:ef9c61f8c49f | 95 | } > FLASH |
Kojto | 136:ef9c61f8c49f | 96 | |
Kojto | 136:ef9c61f8c49f | 97 | .ARM.extab : |
Kojto | 136:ef9c61f8c49f | 98 | { |
Kojto | 136:ef9c61f8c49f | 99 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
Kojto | 136:ef9c61f8c49f | 100 | } > FLASH |
Kojto | 136:ef9c61f8c49f | 101 | |
Kojto | 136:ef9c61f8c49f | 102 | __exidx_start = .; |
Kojto | 136:ef9c61f8c49f | 103 | |
Kojto | 136:ef9c61f8c49f | 104 | .ARM.exidx : |
Kojto | 136:ef9c61f8c49f | 105 | { |
Kojto | 136:ef9c61f8c49f | 106 | *(.ARM.exidx* .gnu.linkonce.armexidx.*) |
Kojto | 136:ef9c61f8c49f | 107 | } > FLASH |
Kojto | 136:ef9c61f8c49f | 108 | __exidx_end = .; |
Kojto | 136:ef9c61f8c49f | 109 | |
Kojto | 136:ef9c61f8c49f | 110 | __etext = .; |
Kojto | 136:ef9c61f8c49f | 111 | _sidata = .; |
Kojto | 136:ef9c61f8c49f | 112 | |
Kojto | 136:ef9c61f8c49f | 113 | .interrupts_ram : |
Kojto | 136:ef9c61f8c49f | 114 | { |
Kojto | 136:ef9c61f8c49f | 115 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 116 | __VECTOR_RAM__ = .; |
Kojto | 136:ef9c61f8c49f | 117 | __interrupts_ram_start__ = .; /* Create a global symbol at data start */ |
Kojto | 136:ef9c61f8c49f | 118 | *(.m_interrupts_ram) /* This is a user defined section */ |
Kojto | 136:ef9c61f8c49f | 119 | . += M_VECTOR_RAM_SIZE; |
Kojto | 136:ef9c61f8c49f | 120 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 121 | __interrupts_ram_end__ = .; /* Define a global symbol at data end */ |
Kojto | 136:ef9c61f8c49f | 122 | } > RAM |
Kojto | 136:ef9c61f8c49f | 123 | |
Kojto | 136:ef9c61f8c49f | 124 | /* uVisor own memory and private box memories |
Kojto | 136:ef9c61f8c49f | 125 | /* Note: The uVisor expects this section at a fixed location, as specified |
Kojto | 136:ef9c61f8c49f | 126 | by the porting process configuration parameter: SRAM_OFFSET. */ |
Kojto | 136:ef9c61f8c49f | 127 | __UVISOR_SRAM_OFFSET = 0x0; |
Kojto | 136:ef9c61f8c49f | 128 | __UVISOR_SRAM_START = ORIGIN(CCM) + __UVISOR_SRAM_OFFSET; |
Kojto | 136:ef9c61f8c49f | 129 | .uvisor.bss __UVISOR_SRAM_START (NOLOAD): |
Kojto | 136:ef9c61f8c49f | 130 | { |
Kojto | 136:ef9c61f8c49f | 131 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 132 | __uvisor_bss_start = .; |
Kojto | 136:ef9c61f8c49f | 133 | |
Kojto | 136:ef9c61f8c49f | 134 | /* Protected uVisor own BSS section */ |
Kojto | 136:ef9c61f8c49f | 135 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 136 | __uvisor_bss_main_start = .; |
Kojto | 136:ef9c61f8c49f | 137 | KEEP(*(.keep.uvisor.bss.main)) |
Kojto | 136:ef9c61f8c49f | 138 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 139 | __uvisor_bss_main_end = .; |
Kojto | 136:ef9c61f8c49f | 140 | |
Kojto | 136:ef9c61f8c49f | 141 | /* Protected uVisor boxes' static memories */ |
Kojto | 136:ef9c61f8c49f | 142 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 143 | __uvisor_bss_boxes_start = .; |
Kojto | 136:ef9c61f8c49f | 144 | KEEP(*(.keep.uvisor.bss.boxes)) |
Kojto | 136:ef9c61f8c49f | 145 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 146 | __uvisor_bss_boxes_end = .; |
Kojto | 136:ef9c61f8c49f | 147 | |
Kojto | 136:ef9c61f8c49f | 148 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 149 | __uvisor_bss_end = .; |
Kojto | 136:ef9c61f8c49f | 150 | } > CCM |
Kojto | 136:ef9c61f8c49f | 151 | |
Kojto | 136:ef9c61f8c49f | 152 | /* Heap space for the page allocator |
Kojto | 136:ef9c61f8c49f | 153 | /* If uVisor shares the SRAM with the OS/app, ensure that this section is |
Kojto | 136:ef9c61f8c49f | 154 | * the first one after the uVisor BSS section. Otherwise, ensure it is the |
Kojto | 136:ef9c61f8c49f | 155 | * first one after the VTOR relocation section. */ |
Kojto | 136:ef9c61f8c49f | 156 | .page_heap (NOLOAD) : |
Kojto | 136:ef9c61f8c49f | 157 | { |
Kojto | 136:ef9c61f8c49f | 158 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 159 | __uvisor_page_start = .; |
Kojto | 136:ef9c61f8c49f | 160 | KEEP(*(.keep.uvisor.page_heap)) |
Kojto | 136:ef9c61f8c49f | 161 | . = ALIGN((1 << LOG2CEIL(LENGTH(RAM))) / 8); |
Kojto | 136:ef9c61f8c49f | 162 | __uvisor_page_end = .; |
Kojto | 136:ef9c61f8c49f | 163 | } > RAM |
Kojto | 136:ef9c61f8c49f | 164 | |
Kojto | 136:ef9c61f8c49f | 165 | .data : |
Kojto | 136:ef9c61f8c49f | 166 | { |
Kojto | 136:ef9c61f8c49f | 167 | PROVIDE( __etext = LOADADDR(.data) ); |
Kojto | 136:ef9c61f8c49f | 168 | |
Kojto | 136:ef9c61f8c49f | 169 | __data_start__ = .; |
Kojto | 136:ef9c61f8c49f | 170 | _sdata = .; |
Kojto | 136:ef9c61f8c49f | 171 | *(vtable) |
Kojto | 136:ef9c61f8c49f | 172 | *(.data*) |
Kojto | 136:ef9c61f8c49f | 173 | |
Kojto | 136:ef9c61f8c49f | 174 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 175 | /* preinit data */ |
Kojto | 136:ef9c61f8c49f | 176 | PROVIDE_HIDDEN (__preinit_array_start = .); |
Kojto | 136:ef9c61f8c49f | 177 | KEEP(*(.preinit_array)) |
Kojto | 136:ef9c61f8c49f | 178 | PROVIDE_HIDDEN (__preinit_array_end = .); |
Kojto | 136:ef9c61f8c49f | 179 | |
Kojto | 136:ef9c61f8c49f | 180 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 181 | /* init data */ |
Kojto | 136:ef9c61f8c49f | 182 | PROVIDE_HIDDEN (__init_array_start = .); |
Kojto | 136:ef9c61f8c49f | 183 | KEEP(*(SORT(.init_array.*))) |
Kojto | 136:ef9c61f8c49f | 184 | KEEP(*(.init_array)) |
Kojto | 136:ef9c61f8c49f | 185 | PROVIDE_HIDDEN (__init_array_end = .); |
Kojto | 136:ef9c61f8c49f | 186 | |
Kojto | 136:ef9c61f8c49f | 187 | |
Kojto | 136:ef9c61f8c49f | 188 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 189 | /* finit data */ |
Kojto | 136:ef9c61f8c49f | 190 | PROVIDE_HIDDEN (__fini_array_start = .); |
Kojto | 136:ef9c61f8c49f | 191 | KEEP(*(SORT(.fini_array.*))) |
Kojto | 136:ef9c61f8c49f | 192 | KEEP(*(.fini_array)) |
Kojto | 136:ef9c61f8c49f | 193 | PROVIDE_HIDDEN (__fini_array_end = .); |
Kojto | 136:ef9c61f8c49f | 194 | |
Kojto | 136:ef9c61f8c49f | 195 | KEEP(*(.jcr*)) |
Kojto | 136:ef9c61f8c49f | 196 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 197 | /* All data end */ |
Kojto | 136:ef9c61f8c49f | 198 | __data_end__ = .; |
Kojto | 136:ef9c61f8c49f | 199 | _edata = .; |
Kojto | 136:ef9c61f8c49f | 200 | |
Kojto | 136:ef9c61f8c49f | 201 | } > RAM AT > FLASH |
Kojto | 136:ef9c61f8c49f | 202 | |
Kojto | 136:ef9c61f8c49f | 203 | /* uVisor configuration section |
Kojto | 136:ef9c61f8c49f | 204 | * This section must be located after all other flash regions. */ |
Kojto | 136:ef9c61f8c49f | 205 | .uvisor.secure : |
Kojto | 136:ef9c61f8c49f | 206 | { |
Kojto | 136:ef9c61f8c49f | 207 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 208 | __uvisor_secure_start = .; |
Kojto | 136:ef9c61f8c49f | 209 | |
Kojto | 136:ef9c61f8c49f | 210 | /* uVisor secure boxes configuration tables */ |
Kojto | 136:ef9c61f8c49f | 211 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 212 | __uvisor_cfgtbl_start = .; |
Kojto | 136:ef9c61f8c49f | 213 | KEEP(*(.keep.uvisor.cfgtbl)) |
Kojto | 136:ef9c61f8c49f | 214 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 215 | __uvisor_cfgtbl_end = .; |
Kojto | 136:ef9c61f8c49f | 216 | |
Kojto | 136:ef9c61f8c49f | 217 | /* Pointers to the uVisor secure boxes configuration tables */ |
Kojto | 136:ef9c61f8c49f | 218 | /* Note: Do not add any further alignment here, as uVisor will need to |
Kojto | 136:ef9c61f8c49f | 219 | * have access to the exact list of pointers. */ |
Kojto | 136:ef9c61f8c49f | 220 | __uvisor_cfgtbl_ptr_start = .; |
Kojto | 136:ef9c61f8c49f | 221 | KEEP(*(.keep.uvisor.cfgtbl_ptr_first)) |
Kojto | 136:ef9c61f8c49f | 222 | KEEP(*(.keep.uvisor.cfgtbl_ptr)) |
Kojto | 136:ef9c61f8c49f | 223 | __uvisor_cfgtbl_ptr_end = .; |
Kojto | 136:ef9c61f8c49f | 224 | |
Kojto | 136:ef9c61f8c49f | 225 | /* Pointers to all boxes register gateways. These are grouped here to |
Kojto | 136:ef9c61f8c49f | 226 | allow discoverability and firmware verification. */ |
Kojto | 136:ef9c61f8c49f | 227 | __uvisor_register_gateway_ptr_start = .; |
Kojto | 136:ef9c61f8c49f | 228 | KEEP(*(.keep.uvisor.register_gateway_ptr)) |
Kojto | 136:ef9c61f8c49f | 229 | __uvisor_register_gateway_ptr_end = .; |
Kojto | 136:ef9c61f8c49f | 230 | |
Kojto | 136:ef9c61f8c49f | 231 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 232 | __uvisor_secure_end = .; |
Kojto | 136:ef9c61f8c49f | 233 | } > FLASH |
Kojto | 136:ef9c61f8c49f | 234 | |
Kojto | 136:ef9c61f8c49f | 235 | /* Uninitialized data section |
Kojto | 136:ef9c61f8c49f | 236 | * This region is not initialized by the C/C++ library and can be used to |
Kojto | 136:ef9c61f8c49f | 237 | * store state across soft reboots. */ |
Kojto | 136:ef9c61f8c49f | 238 | .uninitialized (NOLOAD): |
Kojto | 136:ef9c61f8c49f | 239 | { |
Kojto | 136:ef9c61f8c49f | 240 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 241 | __uninitialized_start = .; |
Kojto | 136:ef9c61f8c49f | 242 | *(.uninitialized) |
Kojto | 136:ef9c61f8c49f | 243 | KEEP(*(.keep.uninitialized)) |
Kojto | 136:ef9c61f8c49f | 244 | . = ALIGN(32); |
Kojto | 136:ef9c61f8c49f | 245 | __uninitialized_end = .; |
Kojto | 136:ef9c61f8c49f | 246 | } > RAM |
Kojto | 136:ef9c61f8c49f | 247 | |
Kojto | 136:ef9c61f8c49f | 248 | .bss (NOLOAD): |
Kojto | 136:ef9c61f8c49f | 249 | { |
Kojto | 136:ef9c61f8c49f | 250 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 251 | __bss_start__ = .; |
Kojto | 136:ef9c61f8c49f | 252 | _sbss = .; |
Kojto | 136:ef9c61f8c49f | 253 | *(.bss*) |
Kojto | 136:ef9c61f8c49f | 254 | *(COMMON) |
Kojto | 136:ef9c61f8c49f | 255 | . = ALIGN(4); |
Kojto | 136:ef9c61f8c49f | 256 | __bss_end__ = .; |
Kojto | 136:ef9c61f8c49f | 257 | _ebss = .; |
Kojto | 136:ef9c61f8c49f | 258 | } > RAM |
Kojto | 136:ef9c61f8c49f | 259 | |
Kojto | 136:ef9c61f8c49f | 260 | .heap (NOLOAD): |
Kojto | 136:ef9c61f8c49f | 261 | { |
Kojto | 136:ef9c61f8c49f | 262 | __uvisor_heap_start = .; |
Kojto | 136:ef9c61f8c49f | 263 | __end__ = .; |
Kojto | 136:ef9c61f8c49f | 264 | end = __end__; |
Kojto | 136:ef9c61f8c49f | 265 | . += HEAP_SIZE; |
Kojto | 136:ef9c61f8c49f | 266 | __HeapLimit = .; |
Kojto | 136:ef9c61f8c49f | 267 | __uvisor_heap_end = .; |
Kojto | 136:ef9c61f8c49f | 268 | } > RAM |
Kojto | 136:ef9c61f8c49f | 269 | |
Kojto | 136:ef9c61f8c49f | 270 | __StackTop = ORIGIN(RAM) + LENGTH(RAM); |
Kojto | 136:ef9c61f8c49f | 271 | __stack = __StackTop; |
Kojto | 136:ef9c61f8c49f | 272 | __StackLimit = __StackTop - STACK_SIZE; |
Kojto | 136:ef9c61f8c49f | 273 | |
Kojto | 136:ef9c61f8c49f | 274 | ASSERT(__StackLimit >= __HeapLimit, "Region RAM overflowed with stack and heap") |
Kojto | 136:ef9c61f8c49f | 275 | |
Kojto | 136:ef9c61f8c49f | 276 | /* Provide physical memory boundaries for uVisor. */ |
Kojto | 136:ef9c61f8c49f | 277 | __uvisor_flash_start = ORIGIN(VECTORS); |
Kojto | 136:ef9c61f8c49f | 278 | __uvisor_flash_end = ORIGIN(FLASH) + LENGTH(FLASH); |
Kojto | 136:ef9c61f8c49f | 279 | __uvisor_sram_start = ORIGIN(CCM); |
Kojto | 136:ef9c61f8c49f | 280 | __uvisor_sram_end = ORIGIN(CCM) + LENGTH(CCM); |
Kojto | 136:ef9c61f8c49f | 281 | __uvisor_public_sram_start = ORIGIN(RAM); |
Kojto | 136:ef9c61f8c49f | 282 | __uvisor_public_sram_end = ORIGIN(RAM) + LENGTH(RAM); |
Kojto | 136:ef9c61f8c49f | 283 | } |