ads1115 only

Fork of mbed by mbed official

Committer:
Kojto
Date:
Thu Oct 29 08:40:18 2015 +0000
Revision:
109:9296ab0bfc11
Release 109  of the mbed library

Changes:
- new platforms - NUCLEO_F042K6, WIZNWIKI_W7500ECO
- MTS targets - bootloaders update to 0.1.1
- STM F7 - RTC enable fixes
- STM F4 - i2c pending stop before start fix
- STM all targets - analogout normalization fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 109:9296ab0bfc11 1 /* Linker script to configure memory regions. */
Kojto 109:9296ab0bfc11 2 MEMORY
Kojto 109:9296ab0bfc11 3 {
Kojto 109:9296ab0bfc11 4 FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 64K
Kojto 109:9296ab0bfc11 5 CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 4K
Kojto 109:9296ab0bfc11 6 RAM (rwx) : ORIGIN = 0x20000188, LENGTH = 12K - 0x188
Kojto 109:9296ab0bfc11 7 }
Kojto 109:9296ab0bfc11 8
Kojto 109:9296ab0bfc11 9 /* Linker script to place sections and symbol values. Should be used together
Kojto 109:9296ab0bfc11 10 * with other linker script that defines memory regions FLASH and RAM.
Kojto 109:9296ab0bfc11 11 * It references following symbols, which must be defined in code:
Kojto 109:9296ab0bfc11 12 * Reset_Handler : Entry of reset handler
Kojto 109:9296ab0bfc11 13 *
Kojto 109:9296ab0bfc11 14 * It defines following symbols, which code can use without definition:
Kojto 109:9296ab0bfc11 15 * __exidx_start
Kojto 109:9296ab0bfc11 16 * __exidx_end
Kojto 109:9296ab0bfc11 17 * __etext
Kojto 109:9296ab0bfc11 18 * __data_start__
Kojto 109:9296ab0bfc11 19 * __preinit_array_start
Kojto 109:9296ab0bfc11 20 * __preinit_array_end
Kojto 109:9296ab0bfc11 21 * __init_array_start
Kojto 109:9296ab0bfc11 22 * __init_array_end
Kojto 109:9296ab0bfc11 23 * __fini_array_start
Kojto 109:9296ab0bfc11 24 * __fini_array_end
Kojto 109:9296ab0bfc11 25 * __data_end__
Kojto 109:9296ab0bfc11 26 * __bss_start__
Kojto 109:9296ab0bfc11 27 * __bss_end__
Kojto 109:9296ab0bfc11 28 * __end__
Kojto 109:9296ab0bfc11 29 * end
Kojto 109:9296ab0bfc11 30 * __HeapLimit
Kojto 109:9296ab0bfc11 31 * __StackLimit
Kojto 109:9296ab0bfc11 32 * __StackTop
Kojto 109:9296ab0bfc11 33 * __stack
Kojto 109:9296ab0bfc11 34 * _estack
Kojto 109:9296ab0bfc11 35 */
Kojto 109:9296ab0bfc11 36 ENTRY(Reset_Handler)
Kojto 109:9296ab0bfc11 37
Kojto 109:9296ab0bfc11 38 SECTIONS
Kojto 109:9296ab0bfc11 39 {
Kojto 109:9296ab0bfc11 40 .text :
Kojto 109:9296ab0bfc11 41 {
Kojto 109:9296ab0bfc11 42 KEEP(*(.isr_vector))
Kojto 109:9296ab0bfc11 43 *(.text*)
Kojto 109:9296ab0bfc11 44 KEEP(*(.init))
Kojto 109:9296ab0bfc11 45 KEEP(*(.fini))
Kojto 109:9296ab0bfc11 46
Kojto 109:9296ab0bfc11 47 /* .ctors */
Kojto 109:9296ab0bfc11 48 *crtbegin.o(.ctors)
Kojto 109:9296ab0bfc11 49 *crtbegin?.o(.ctors)
Kojto 109:9296ab0bfc11 50 *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
Kojto 109:9296ab0bfc11 51 *(SORT(.ctors.*))
Kojto 109:9296ab0bfc11 52 *(.ctors)
Kojto 109:9296ab0bfc11 53
Kojto 109:9296ab0bfc11 54 /* .dtors */
Kojto 109:9296ab0bfc11 55 *crtbegin.o(.dtors)
Kojto 109:9296ab0bfc11 56 *crtbegin?.o(.dtors)
Kojto 109:9296ab0bfc11 57 *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
Kojto 109:9296ab0bfc11 58 *(SORT(.dtors.*))
Kojto 109:9296ab0bfc11 59 *(.dtors)
Kojto 109:9296ab0bfc11 60
Kojto 109:9296ab0bfc11 61 *(.rodata*)
Kojto 109:9296ab0bfc11 62
Kojto 109:9296ab0bfc11 63 KEEP(*(.eh_frame*))
Kojto 109:9296ab0bfc11 64 } > FLASH
Kojto 109:9296ab0bfc11 65
Kojto 109:9296ab0bfc11 66 .ARM.extab :
Kojto 109:9296ab0bfc11 67 {
Kojto 109:9296ab0bfc11 68 *(.ARM.extab* .gnu.linkonce.armextab.*)
Kojto 109:9296ab0bfc11 69 } > FLASH
Kojto 109:9296ab0bfc11 70
Kojto 109:9296ab0bfc11 71 __exidx_start = .;
Kojto 109:9296ab0bfc11 72 .ARM.exidx :
Kojto 109:9296ab0bfc11 73 {
Kojto 109:9296ab0bfc11 74 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
Kojto 109:9296ab0bfc11 75 } > FLASH
Kojto 109:9296ab0bfc11 76 __exidx_end = .;
Kojto 109:9296ab0bfc11 77
Kojto 109:9296ab0bfc11 78 __etext = .;
Kojto 109:9296ab0bfc11 79 _sidata = .;
Kojto 109:9296ab0bfc11 80
Kojto 109:9296ab0bfc11 81 .data : AT (__etext)
Kojto 109:9296ab0bfc11 82 {
Kojto 109:9296ab0bfc11 83 __data_start__ = .;
Kojto 109:9296ab0bfc11 84 _sdata = .;
Kojto 109:9296ab0bfc11 85 *(vtable)
Kojto 109:9296ab0bfc11 86 *(.data*)
Kojto 109:9296ab0bfc11 87
Kojto 109:9296ab0bfc11 88 . = ALIGN(4);
Kojto 109:9296ab0bfc11 89 /* preinit data */
Kojto 109:9296ab0bfc11 90 PROVIDE_HIDDEN (__preinit_array_start = .);
Kojto 109:9296ab0bfc11 91 KEEP(*(.preinit_array))
Kojto 109:9296ab0bfc11 92 PROVIDE_HIDDEN (__preinit_array_end = .);
Kojto 109:9296ab0bfc11 93
Kojto 109:9296ab0bfc11 94 . = ALIGN(4);
Kojto 109:9296ab0bfc11 95 /* init data */
Kojto 109:9296ab0bfc11 96 PROVIDE_HIDDEN (__init_array_start = .);
Kojto 109:9296ab0bfc11 97 KEEP(*(SORT(.init_array.*)))
Kojto 109:9296ab0bfc11 98 KEEP(*(.init_array))
Kojto 109:9296ab0bfc11 99 PROVIDE_HIDDEN (__init_array_end = .);
Kojto 109:9296ab0bfc11 100
Kojto 109:9296ab0bfc11 101
Kojto 109:9296ab0bfc11 102 . = ALIGN(4);
Kojto 109:9296ab0bfc11 103 /* finit data */
Kojto 109:9296ab0bfc11 104 PROVIDE_HIDDEN (__fini_array_start = .);
Kojto 109:9296ab0bfc11 105 KEEP(*(SORT(.fini_array.*)))
Kojto 109:9296ab0bfc11 106 KEEP(*(.fini_array))
Kojto 109:9296ab0bfc11 107 PROVIDE_HIDDEN (__fini_array_end = .);
Kojto 109:9296ab0bfc11 108
Kojto 109:9296ab0bfc11 109 KEEP(*(.jcr*))
Kojto 109:9296ab0bfc11 110 . = ALIGN(4);
Kojto 109:9296ab0bfc11 111 /* All data end */
Kojto 109:9296ab0bfc11 112 __data_end__ = .;
Kojto 109:9296ab0bfc11 113 _edata = .;
Kojto 109:9296ab0bfc11 114
Kojto 109:9296ab0bfc11 115 } > RAM
Kojto 109:9296ab0bfc11 116
Kojto 109:9296ab0bfc11 117 .bss :
Kojto 109:9296ab0bfc11 118 {
Kojto 109:9296ab0bfc11 119 . = ALIGN(4);
Kojto 109:9296ab0bfc11 120 __bss_start__ = .;
Kojto 109:9296ab0bfc11 121 _sbss = .;
Kojto 109:9296ab0bfc11 122 *(.bss*)
Kojto 109:9296ab0bfc11 123 *(COMMON)
Kojto 109:9296ab0bfc11 124 . = ALIGN(4);
Kojto 109:9296ab0bfc11 125 __bss_end__ = .;
Kojto 109:9296ab0bfc11 126 _ebss = .;
Kojto 109:9296ab0bfc11 127 } > RAM
Kojto 109:9296ab0bfc11 128
Kojto 109:9296ab0bfc11 129 .heap (COPY):
Kojto 109:9296ab0bfc11 130 {
Kojto 109:9296ab0bfc11 131 __end__ = .;
Kojto 109:9296ab0bfc11 132 end = __end__;
Kojto 109:9296ab0bfc11 133 *(.heap*)
Kojto 109:9296ab0bfc11 134 __HeapLimit = .;
Kojto 109:9296ab0bfc11 135 } > RAM
Kojto 109:9296ab0bfc11 136
Kojto 109:9296ab0bfc11 137 /* .stack_dummy section doesn't contains any symbols. It is only
Kojto 109:9296ab0bfc11 138 * used for linker to calculate size of stack sections, and assign
Kojto 109:9296ab0bfc11 139 * values to stack symbols later */
Kojto 109:9296ab0bfc11 140 .stack_dummy (COPY):
Kojto 109:9296ab0bfc11 141 {
Kojto 109:9296ab0bfc11 142 *(.stack*)
Kojto 109:9296ab0bfc11 143 } > RAM
Kojto 109:9296ab0bfc11 144
Kojto 109:9296ab0bfc11 145 /* Set stack top to end of RAM, and stack limit move down by
Kojto 109:9296ab0bfc11 146 * size of stack_dummy section */
Kojto 109:9296ab0bfc11 147 __StackTop = ORIGIN(RAM) + LENGTH(RAM);
Kojto 109:9296ab0bfc11 148 _estack = __StackTop;
Kojto 109:9296ab0bfc11 149 __StackLimit = __StackTop - SIZEOF(.stack_dummy);
Kojto 109:9296ab0bfc11 150 PROVIDE(__stack = __StackTop);
Kojto 109:9296ab0bfc11 151
Kojto 109:9296ab0bfc11 152 /* Check if data + heap + stack exceeds RAM limit */
Kojto 109:9296ab0bfc11 153 ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
Kojto 109:9296ab0bfc11 154 }
Kojto 109:9296ab0bfc11 155