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:
AnnaBridge
Date:
Wed Oct 25 14:40:21 2017 +0100
Revision:
154:fb8e0ae1cceb
Parent:
153:b484a57bc302
Release 154 of the mbed library.

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