ads1115 only

Fork of mbed by mbed official

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

Who changed what in which revision?

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