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 Nov 08 17:18:06 2017 +0000
Revision:
156:ff21514d8981
Child:
170:e95d10626187
Reverting back to release 154 of the mbed library

Who changed what in which revision?

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