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:
Thu Sep 06 13:39:34 2018 +0100
Revision:
170:e95d10626187
Parent:
156:ff21514d8981
mbed library. Release version 163

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