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