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_SEEED_TINY_BLE/TOOLCHAIN_GCC_ARM/NRF51822.ld@134:ad3be0349dc5, 2017-01-16 (annotated)
- Committer:
- <>
- Date:
- Mon Jan 16 12:05:23 2017 +0000
- Revision:
- 134:ad3be0349dc5
- Parent:
- 122:f9eeca106725
Release 134 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3488: Dev stm i2c v2 unitary functions https://github.com/ARMmbed/mbed-os/pull/3488
3492: Fix #3463 CAN read() return value https://github.com/ARMmbed/mbed-os/pull/3492
3503: [LPC15xx] Ensure that PWM=1 is resolved correctly https://github.com/ARMmbed/mbed-os/pull/3503
3504: [LPC15xx] CAN implementation improvements https://github.com/ARMmbed/mbed-os/pull/3504
3539: NUCLEO_F412ZG - Add support of TRNG peripheral https://github.com/ARMmbed/mbed-os/pull/3539
3540: STM: SPI: Initialize Rx in spi_master_write https://github.com/ARMmbed/mbed-os/pull/3540
3438: K64F: Add support for SERIAL ASYNCH API https://github.com/ARMmbed/mbed-os/pull/3438
3519: MCUXpresso: Fix ENET driver to enable interrupts after interrupt handler is set https://github.com/ARMmbed/mbed-os/pull/3519
3544: STM32L4 deepsleep improvement https://github.com/ARMmbed/mbed-os/pull/3544
3546: NUCLEO-F412ZG - Add CAN peripheral https://github.com/ARMmbed/mbed-os/pull/3546
3551: Fix I2C driver for RZ/A1H https://github.com/ARMmbed/mbed-os/pull/3551
3558: K64F UART Asynch API: Fix synchronization issue https://github.com/ARMmbed/mbed-os/pull/3558
3563: LPC4088 - Fix vector checksum https://github.com/ARMmbed/mbed-os/pull/3563
3567: Dev stm32 F0 v1.7.0 https://github.com/ARMmbed/mbed-os/pull/3567
3577: Fixes linking errors when building with debug profile https://github.com/ARMmbed/mbed-os/pull/3577
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 93:e188a91d3eaa | 1 | /* Linker script to configure memory regions. */ |
Kojto | 93:e188a91d3eaa | 2 | |
Kojto | 93:e188a91d3eaa | 3 | MEMORY |
Kojto | 93:e188a91d3eaa | 4 | { |
Kojto | 99:dbbf35b96557 | 5 | FLASH (rx) : ORIGIN = 0x0001C000, LENGTH = 0x24000 |
Kojto | 99:dbbf35b96557 | 6 | RAM (rwx) : ORIGIN = 0x20002800, LENGTH = 0x1800 |
Kojto | 93:e188a91d3eaa | 7 | } |
Kojto | 93:e188a91d3eaa | 8 | |
Kojto | 93:e188a91d3eaa | 9 | OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") |
Kojto | 93:e188a91d3eaa | 10 | |
Kojto | 93:e188a91d3eaa | 11 | /* Linker script to place sections and symbol values. Should be used together |
Kojto | 93:e188a91d3eaa | 12 | * with other linker script that defines memory regions FLASH and RAM. |
Kojto | 93:e188a91d3eaa | 13 | * It references following symbols, which must be defined in code: |
Kojto | 93:e188a91d3eaa | 14 | * Reset_Handler : Entry of reset handler |
Kojto | 93:e188a91d3eaa | 15 | * |
Kojto | 93:e188a91d3eaa | 16 | * It defines following symbols, which code can use without definition: |
Kojto | 93:e188a91d3eaa | 17 | * __exidx_start |
Kojto | 93:e188a91d3eaa | 18 | * __exidx_end |
Kojto | 93:e188a91d3eaa | 19 | * __etext |
Kojto | 93:e188a91d3eaa | 20 | * __data_start__ |
Kojto | 93:e188a91d3eaa | 21 | * __preinit_array_start |
Kojto | 93:e188a91d3eaa | 22 | * __preinit_array_end |
Kojto | 93:e188a91d3eaa | 23 | * __init_array_start |
Kojto | 93:e188a91d3eaa | 24 | * __init_array_end |
Kojto | 93:e188a91d3eaa | 25 | * __fini_array_start |
Kojto | 93:e188a91d3eaa | 26 | * __fini_array_end |
Kojto | 93:e188a91d3eaa | 27 | * __data_end__ |
Kojto | 93:e188a91d3eaa | 28 | * __bss_start__ |
Kojto | 93:e188a91d3eaa | 29 | * __bss_end__ |
Kojto | 93:e188a91d3eaa | 30 | * __end__ |
Kojto | 93:e188a91d3eaa | 31 | * end |
Kojto | 93:e188a91d3eaa | 32 | * __HeapLimit |
Kojto | 93:e188a91d3eaa | 33 | * __StackLimit |
Kojto | 93:e188a91d3eaa | 34 | * __StackTop |
Kojto | 93:e188a91d3eaa | 35 | * __stack |
Kojto | 93:e188a91d3eaa | 36 | */ |
Kojto | 93:e188a91d3eaa | 37 | ENTRY(Reset_Handler) |
Kojto | 93:e188a91d3eaa | 38 | |
Kojto | 93:e188a91d3eaa | 39 | SECTIONS |
Kojto | 93:e188a91d3eaa | 40 | { |
Kojto | 93:e188a91d3eaa | 41 | .text : |
Kojto | 93:e188a91d3eaa | 42 | { |
Kojto | 93:e188a91d3eaa | 43 | KEEP(*(.Vectors)) |
Kojto | 93:e188a91d3eaa | 44 | *(.text*) |
Kojto | 93:e188a91d3eaa | 45 | |
Kojto | 93:e188a91d3eaa | 46 | KEEP(*(.init)) |
Kojto | 93:e188a91d3eaa | 47 | KEEP(*(.fini)) |
Kojto | 93:e188a91d3eaa | 48 | |
Kojto | 93:e188a91d3eaa | 49 | /* .ctors */ |
Kojto | 93:e188a91d3eaa | 50 | *crtbegin.o(.ctors) |
Kojto | 93:e188a91d3eaa | 51 | *crtbegin?.o(.ctors) |
Kojto | 93:e188a91d3eaa | 52 | *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors) |
Kojto | 93:e188a91d3eaa | 53 | *(SORT(.ctors.*)) |
Kojto | 93:e188a91d3eaa | 54 | *(.ctors) |
Kojto | 93:e188a91d3eaa | 55 | |
Kojto | 93:e188a91d3eaa | 56 | /* .dtors */ |
Kojto | 93:e188a91d3eaa | 57 | *crtbegin.o(.dtors) |
Kojto | 93:e188a91d3eaa | 58 | *crtbegin?.o(.dtors) |
Kojto | 93:e188a91d3eaa | 59 | *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors) |
Kojto | 93:e188a91d3eaa | 60 | *(SORT(.dtors.*)) |
Kojto | 93:e188a91d3eaa | 61 | *(.dtors) |
Kojto | 93:e188a91d3eaa | 62 | |
Kojto | 93:e188a91d3eaa | 63 | *(.rodata*) |
Kojto | 93:e188a91d3eaa | 64 | |
Kojto | 93:e188a91d3eaa | 65 | KEEP(*(.eh_frame*)) |
Kojto | 93:e188a91d3eaa | 66 | } > FLASH |
Kojto | 93:e188a91d3eaa | 67 | |
Kojto | 93:e188a91d3eaa | 68 | |
Kojto | 93:e188a91d3eaa | 69 | .ARM.extab : |
Kojto | 93:e188a91d3eaa | 70 | { |
Kojto | 93:e188a91d3eaa | 71 | *(.ARM.extab* .gnu.linkonce.armextab.*) |
Kojto | 93:e188a91d3eaa | 72 | } > FLASH |
Kojto | 93:e188a91d3eaa | 73 | |
Kojto | 93:e188a91d3eaa | 74 | __exidx_start = .; |
Kojto | 93:e188a91d3eaa | 75 | .ARM.exidx : |
Kojto | 93:e188a91d3eaa | 76 | { |
Kojto | 93:e188a91d3eaa | 77 | *(.ARM.exidx* .gnu.linkonce.armexidx.*) |
Kojto | 93:e188a91d3eaa | 78 | } > FLASH |
Kojto | 93:e188a91d3eaa | 79 | __exidx_end = .; |
Kojto | 93:e188a91d3eaa | 80 | |
Kojto | 93:e188a91d3eaa | 81 | __etext = .; |
Kojto | 93:e188a91d3eaa | 82 | |
Kojto | 93:e188a91d3eaa | 83 | .data : AT (__etext) |
Kojto | 93:e188a91d3eaa | 84 | { |
Kojto | 93:e188a91d3eaa | 85 | __data_start__ = .; |
Kojto | 93:e188a91d3eaa | 86 | *(vtable) |
Kojto | 93:e188a91d3eaa | 87 | *(.data*) |
Kojto | 93:e188a91d3eaa | 88 | |
Kojto | 93:e188a91d3eaa | 89 | . = ALIGN(4); |
Kojto | 93:e188a91d3eaa | 90 | /* preinit data */ |
Kojto | 93:e188a91d3eaa | 91 | PROVIDE_HIDDEN (__preinit_array_start = .); |
Kojto | 93:e188a91d3eaa | 92 | KEEP(*(.preinit_array)) |
Kojto | 93:e188a91d3eaa | 93 | PROVIDE_HIDDEN (__preinit_array_end = .); |
Kojto | 93:e188a91d3eaa | 94 | |
Kojto | 93:e188a91d3eaa | 95 | . = ALIGN(4); |
Kojto | 93:e188a91d3eaa | 96 | /* init data */ |
Kojto | 93:e188a91d3eaa | 97 | PROVIDE_HIDDEN (__init_array_start = .); |
Kojto | 93:e188a91d3eaa | 98 | KEEP(*(SORT(.init_array.*))) |
Kojto | 93:e188a91d3eaa | 99 | KEEP(*(.init_array)) |
Kojto | 93:e188a91d3eaa | 100 | PROVIDE_HIDDEN (__init_array_end = .); |
Kojto | 93:e188a91d3eaa | 101 | |
Kojto | 93:e188a91d3eaa | 102 | |
Kojto | 93:e188a91d3eaa | 103 | . = ALIGN(4); |
Kojto | 93:e188a91d3eaa | 104 | /* finit data */ |
Kojto | 93:e188a91d3eaa | 105 | PROVIDE_HIDDEN (__fini_array_start = .); |
Kojto | 93:e188a91d3eaa | 106 | KEEP(*(SORT(.fini_array.*))) |
Kojto | 93:e188a91d3eaa | 107 | KEEP(*(.fini_array)) |
Kojto | 93:e188a91d3eaa | 108 | PROVIDE_HIDDEN (__fini_array_end = .); |
Kojto | 93:e188a91d3eaa | 109 | |
Kojto | 93:e188a91d3eaa | 110 | *(.jcr) |
Kojto | 93:e188a91d3eaa | 111 | . = ALIGN(4); |
Kojto | 93:e188a91d3eaa | 112 | /* All data end */ |
Kojto | 93:e188a91d3eaa | 113 | __data_end__ = .; |
Kojto | 93:e188a91d3eaa | 114 | |
Kojto | 93:e188a91d3eaa | 115 | } > RAM |
Kojto | 93:e188a91d3eaa | 116 | |
Kojto | 93:e188a91d3eaa | 117 | .bss : |
Kojto | 93:e188a91d3eaa | 118 | { |
Kojto | 93:e188a91d3eaa | 119 | . = ALIGN(4); |
Kojto | 93:e188a91d3eaa | 120 | __bss_start__ = .; |
Kojto | 93:e188a91d3eaa | 121 | *(.bss*) |
Kojto | 93:e188a91d3eaa | 122 | *(COMMON) |
Kojto | 93:e188a91d3eaa | 123 | . = ALIGN(4); |
Kojto | 93:e188a91d3eaa | 124 | __bss_end__ = .; |
Kojto | 93:e188a91d3eaa | 125 | } > RAM |
Kojto | 93:e188a91d3eaa | 126 | |
Kojto | 122:f9eeca106725 | 127 | .heap (NOLOAD): |
Kojto | 93:e188a91d3eaa | 128 | { |
Kojto | 93:e188a91d3eaa | 129 | __end__ = .; |
Kojto | 93:e188a91d3eaa | 130 | end = __end__; |
Kojto | 122:f9eeca106725 | 131 | __HeapBase = .; |
Kojto | 93:e188a91d3eaa | 132 | *(.heap*) |
Kojto | 122:f9eeca106725 | 133 | . = ORIGIN(RAM) + LENGTH(RAM) - Stack_Size; |
Kojto | 93:e188a91d3eaa | 134 | __HeapLimit = .; |
Kojto | 93:e188a91d3eaa | 135 | } > RAM |
Kojto | 93:e188a91d3eaa | 136 | |
Kojto | 93:e188a91d3eaa | 137 | /* .stack_dummy section doesn't contains any symbols. It is only |
Kojto | 93:e188a91d3eaa | 138 | * used for linker to calculate size of stack sections, and assign |
Kojto | 93:e188a91d3eaa | 139 | * values to stack symbols later */ |
Kojto | 122:f9eeca106725 | 140 | .stack_dummy (NOLOAD): |
Kojto | 93:e188a91d3eaa | 141 | { |
Kojto | 93:e188a91d3eaa | 142 | *(.stack*) |
Kojto | 93:e188a91d3eaa | 143 | } > RAM |
Kojto | 93:e188a91d3eaa | 144 | |
Kojto | 93:e188a91d3eaa | 145 | /* Set stack top to end of RAM, and stack limit move down by |
Kojto | 93:e188a91d3eaa | 146 | * size of stack_dummy section */ |
Kojto | 93:e188a91d3eaa | 147 | __StackTop = ORIGIN(RAM) + LENGTH(RAM); |
Kojto | 93:e188a91d3eaa | 148 | __StackLimit = __StackTop - SIZEOF(.stack_dummy); |
Kojto | 93:e188a91d3eaa | 149 | PROVIDE(__stack = __StackTop); |
Kojto | 93:e188a91d3eaa | 150 | |
Kojto | 93:e188a91d3eaa | 151 | /* Check if data + heap + stack exceeds RAM limit */ |
Kojto | 93:e188a91d3eaa | 152 | ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack") |
Kojto | 93:e188a91d3eaa | 153 | } |