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:
Mon Jan 16 12:05:23 2017 +0000
Revision:
134:ad3be0349dc5
Parent:
101:7cff1c4259d7
Child:
171:3a7713b1edbc
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?

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