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.

Committer:
<>
Date:
Fri Sep 30 16:49:46 2016 +0100
Revision:
127:25aea2a3f4e3
Parent:
123:b0220dba8be7
Child:
128:9bcdf88f62b0
Release 127 of the mbed library

Ports for Upcoming Targets

2669: Added u-blox C029 target https://github.com/ARMmbed/mbed-os/pull/2669
2707: [EFM32] Add IAR support for remaining Silicon Labs targets https://github.com/ARMmbed/mbed-os/pull/2707
2819: MultiTech xDot platform support - 09.26.2016 https://github.com/ARMmbed/mbed-os/pull/2819
2827: include MultiTech xDot in mbed 5 releases https://github.com/ARMmbed/mbed-os/pull/2827

Fixes and Changes

2522: Add CThunk for CM7 https://github.com/ARMmbed/mbed-os/pull/2522
2518: Enable uvisor on Beetle https://github.com/ARMmbed/mbed-os/pull/2518
2571: STM32F7 - Add asynchronous serial https://github.com/ARMmbed/mbed-os/pull/2571
2616: STM32F3xx - Add Serial Flow Control pins + enable it https://github.com/ARMmbed/mbed-os/pull/2616
2619: NUCLEO_L152RE - Add Serial Flow Control https://github.com/ARMmbed/mbed-os/pull/2619
2620: NUCLEO_F429ZI - Add SERIAL_FC macro https://github.com/ARMmbed/mbed-os/pull/2620
2666: [EFM32] Microsecond ticker optimization https://github.com/ARMmbed/mbed-os/pull/2666
2681: STM32F0xx - Add support of ADC internal channels https://github.com/ARMmbed/mbed-os/pull/2681
2687: [NRF5] Add fs_data symbol in data secton for gcc https://github.com/ARMmbed/mbed-os/pull/2687
2696: Add device_has to all nrf51 devices https://github.com/ARMmbed/mbed-os/pull/2696
2703: TARGET_NRF5: Changed 'serial_baud' implementation to support special baud rates. https://github.com/ARMmbed/mbed-os/pull/2703
2704: DISCO_L476VG: add SPI nicknames https://github.com/ARMmbed/mbed-os/pull/2704
2723: KSDK serial_api.c: Fix assertion error for ParityEven https://github.com/ARMmbed/mbed-os/pull/2723
2463: [STM32L0] Add asynchronous serial https://github.com/ARMmbed/mbed-os/pull/2463
2572: Fix STM32F407VG target name and LPC11U6X linker errors https://github.com/ARMmbed/mbed-os/pull/2572
2698: DELTA_DFBM_NQ620 target https://github.com/ARMmbed/mbed-os/pull/2698
2542: Dev spi asynch stm32f4 https://github.com/ARMmbed/mbed-os/pull/2542
2650: STM32F3 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2650
2415: [STM32F0] Add asynchronous serial https://github.com/ARMmbed/mbed-os/pull/2415
2585: Added support for ADC only pins in LPC43xx https://github.com/ARMmbed/mbed-os/pull/2585
2622: [STM32F4] Add asynchronous I2C https://github.com/ARMmbed/mbed-os/pull/2622
2719: Updated ARM linker scripts for Kinetis platforms that use SDK 2.0 https://github.com/ARMmbed/mbed-os/pull/2719
2728: Added ethernet and enabled IPV4 feature for the EVK-ODIN-W2/C029 target https://github.com/ARMmbed/mbed-os/pull/2728
2747: [LPC11U68] Fix pin interrupt select offset https://github.com/ARMmbed/mbed-os/pull/2747
2751: STM32L0xx - Add Serial Flow Control https://github.com/ARMmbed/mbed-os/pull/2751
2753: [NUCLEO_F767ZI] Add CAN capability https://github.com/ARMmbed/mbed-os/pull/2753
2759: STM32F0 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2759
2763: STM32L1 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2763
2764: STM32L4 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2764
2771: STM32L4 - Update deepsleep implementation https://github.com/ARMmbed/mbed-os/pull/2771
2775: Update KSDK SDHC driver for K64F & K66F https://github.com/ARMmbed/mbed-os/pull/2775
2792: [NUCLEO_F303ZE] MBED-OS5 capability https://github.com/ARMmbed/mbed-os/pull/2792
2762: STM32L0 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2762
2761: STM32F7 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2761

Who changed what in which revision?

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