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 Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
170:e95d10626187
mbed library release version 165

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