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:
Kojto
Date:
Tue Feb 14 11:24:20 2017 +0000
Revision:
136:ef9c61f8c49f
Parent:
127:25aea2a3f4e3
Child:
141:794e51388b66
Release 136 of the mbed library

Ports for Upcoming Targets


Fixes and Changes

3432: Target STM USBHOST support https://github.com/ARMmbed/mbed-os/pull/3432
3181: NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now https://github.com/ARMmbed/mbed-os/pull/3181
3626: NUCLEO_F412ZG : Add USB Device +Host https://github.com/ARMmbed/mbed-os/pull/3626
3628: Fix warnings https://github.com/ARMmbed/mbed-os/pull/3628
3629: STM32: L0 LL layer https://github.com/ARMmbed/mbed-os/pull/3629
3632: IDE Export support for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3632
3642: Missing IRQ pin fix for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3642
3664: Fix ncs36510 sleep definitions https://github.com/ARMmbed/mbed-os/pull/3664
3655: [STM32F4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3655
3657: [STM32L4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3657
3658: [STM32F3] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3658
3685: STM32: I2C: reset state machine https://github.com/ARMmbed/mbed-os/pull/3685
3692: uVisor: Standardize available legacy heap and stack https://github.com/ARMmbed/mbed-os/pull/3692
3621: Fix for #2884, LPC824: export to LPCXpresso, target running with wron https://github.com/ARMmbed/mbed-os/pull/3621
3649: [STM32F7] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3649
3695: Enforce device_name is valid in targets.json https://github.com/ARMmbed/mbed-os/pull/3695
3723: NCS36510: spi_format function bug fix https://github.com/ARMmbed/mbed-os/pull/3723

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 124:2241e3a39974 1 #! armcc -E
Kojto 124:2241e3a39974 2 /*
Kojto 124:2241e3a39974 3 ** ###################################################################
Kojto 124:2241e3a39974 4 ** Processors: MKL43Z256VLH4
Kojto 124:2241e3a39974 5 ** MKL43Z256VMP4
Kojto 124:2241e3a39974 6 **
Kojto 124:2241e3a39974 7 ** Compiler: Keil ARM C/C++ Compiler
Kojto 124:2241e3a39974 8 ** Reference manual: KL43P64M48SF6RM, Rev.3, Aug 2014
Kojto 124:2241e3a39974 9 ** Version: rev. 1.6, 2015-07-29
Kojto 124:2241e3a39974 10 ** Build: b160406
Kojto 124:2241e3a39974 11 **
Kojto 124:2241e3a39974 12 ** Abstract:
Kojto 124:2241e3a39974 13 ** Linker file for the Keil ARM C/C++ Compiler
Kojto 124:2241e3a39974 14 **
Kojto 124:2241e3a39974 15 ** Copyright (c) 2016 Freescale Semiconductor, Inc.
Kojto 124:2241e3a39974 16 ** All rights reserved.
Kojto 124:2241e3a39974 17 **
Kojto 124:2241e3a39974 18 ** Redistribution and use in source and binary forms, with or without modification,
Kojto 124:2241e3a39974 19 ** are permitted provided that the following conditions are met:
Kojto 124:2241e3a39974 20 **
Kojto 124:2241e3a39974 21 ** o Redistributions of source code must retain the above copyright notice, this list
Kojto 124:2241e3a39974 22 ** of conditions and the following disclaimer.
Kojto 124:2241e3a39974 23 **
Kojto 124:2241e3a39974 24 ** o Redistributions in binary form must reproduce the above copyright notice, this
Kojto 124:2241e3a39974 25 ** list of conditions and the following disclaimer in the documentation and/or
Kojto 124:2241e3a39974 26 ** other materials provided with the distribution.
Kojto 124:2241e3a39974 27 **
Kojto 124:2241e3a39974 28 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
Kojto 124:2241e3a39974 29 ** contributors may be used to endorse or promote products derived from this
Kojto 124:2241e3a39974 30 ** software without specific prior written permission.
Kojto 124:2241e3a39974 31 **
Kojto 124:2241e3a39974 32 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
Kojto 124:2241e3a39974 33 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Kojto 124:2241e3a39974 34 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 124:2241e3a39974 35 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
Kojto 124:2241e3a39974 36 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Kojto 124:2241e3a39974 37 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Kojto 124:2241e3a39974 38 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
Kojto 124:2241e3a39974 39 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Kojto 124:2241e3a39974 40 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Kojto 124:2241e3a39974 41 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 124:2241e3a39974 42 **
Kojto 124:2241e3a39974 43 ** http: www.freescale.com
Kojto 124:2241e3a39974 44 ** mail: support@freescale.com
Kojto 124:2241e3a39974 45 **
Kojto 124:2241e3a39974 46 ** ###################################################################
Kojto 124:2241e3a39974 47 */
Kojto 124:2241e3a39974 48 #define __ram_vector_table__ 1
Kojto 124:2241e3a39974 49
Kojto 124:2241e3a39974 50 /* Heap 1/4 of ram and stack 1/8 */
Kojto 124:2241e3a39974 51 #define __stack_size__ 0x1000
Kojto 124:2241e3a39974 52 #define __heap_size__ 0x2800
Kojto 124:2241e3a39974 53
Kojto 124:2241e3a39974 54 #if (defined(__ram_vector_table__))
Kojto 124:2241e3a39974 55 #define __ram_vector_table_size__ 0x00000200
Kojto 124:2241e3a39974 56 #else
Kojto 124:2241e3a39974 57 #define __ram_vector_table_size__ 0x00000000
Kojto 124:2241e3a39974 58 #endif
Kojto 124:2241e3a39974 59
Kojto 124:2241e3a39974 60 #define m_interrupts_start 0x00000000
Kojto 124:2241e3a39974 61 #define m_interrupts_size 0x00000200
Kojto 124:2241e3a39974 62
Kojto 124:2241e3a39974 63 #define m_flash_config_start 0x00000400
Kojto 124:2241e3a39974 64 #define m_flash_config_size 0x00000010
Kojto 124:2241e3a39974 65
Kojto 124:2241e3a39974 66 #define m_text_start 0x00000410
Kojto 124:2241e3a39974 67 #define m_text_size 0x0003FBF0
Kojto 124:2241e3a39974 68
Kojto 124:2241e3a39974 69 #define m_interrupts_ram_start 0x1FFFE000
Kojto 124:2241e3a39974 70 #define m_interrupts_ram_size __ram_vector_table_size__
Kojto 124:2241e3a39974 71
Kojto 124:2241e3a39974 72 #define m_data_start (m_interrupts_ram_start + m_interrupts_ram_size)
Kojto 124:2241e3a39974 73 #define m_data_size (0x00008000 - m_interrupts_ram_size)
Kojto 124:2241e3a39974 74
Kojto 124:2241e3a39974 75 /* Sizes */
Kojto 124:2241e3a39974 76 #if (defined(__stack_size__))
Kojto 124:2241e3a39974 77 #define Stack_Size __stack_size__
Kojto 124:2241e3a39974 78 #else
Kojto 124:2241e3a39974 79 #define Stack_Size 0x0400
Kojto 124:2241e3a39974 80 #endif
Kojto 124:2241e3a39974 81
Kojto 124:2241e3a39974 82 #if (defined(__heap_size__))
Kojto 124:2241e3a39974 83 #define Heap_Size __heap_size__
Kojto 124:2241e3a39974 84 #else
Kojto 124:2241e3a39974 85 #define Heap_Size 0x0400
Kojto 124:2241e3a39974 86 #endif
Kojto 124:2241e3a39974 87
Kojto 124:2241e3a39974 88 LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
Kojto 124:2241e3a39974 89 VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
Kojto 124:2241e3a39974 90 * (RESET,+FIRST)
Kojto 124:2241e3a39974 91 }
Kojto 124:2241e3a39974 92 ER_m_flash_config m_flash_config_start FIXED m_flash_config_size { ; load address = execution address
Kojto 124:2241e3a39974 93 * (FlashConfig)
Kojto 124:2241e3a39974 94 }
Kojto 124:2241e3a39974 95 ER_m_text m_text_start m_text_size { ; load address = execution address
Kojto 124:2241e3a39974 96 * (InRoot$$Sections)
Kojto 124:2241e3a39974 97 .ANY (+RO)
Kojto 124:2241e3a39974 98 }
Kojto 124:2241e3a39974 99
Kojto 124:2241e3a39974 100 #if (defined(__ram_vector_table__))
Kojto 124:2241e3a39974 101 VECTOR_RAM m_interrupts_ram_start EMPTY m_interrupts_ram_size {
Kojto 124:2241e3a39974 102 }
Kojto 124:2241e3a39974 103 #else
Kojto 124:2241e3a39974 104 VECTOR_RAM m_interrupts_start EMPTY 0 {
Kojto 124:2241e3a39974 105 }
Kojto 124:2241e3a39974 106 #endif
Kojto 124:2241e3a39974 107 RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
Kojto 124:2241e3a39974 108 .ANY (+RW +ZI)
Kojto 124:2241e3a39974 109 }
<> 127:25aea2a3f4e3 110 RW_IRAM1 +0 { ; Heap region growing up
Kojto 124:2241e3a39974 111 }
Kojto 124:2241e3a39974 112 }
Kojto 124:2241e3a39974 113