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:
Anna Bridge
Date:
Fri Jun 22 15:38:59 2018 +0100
Revision:
169:a7c7b631e539
Parent:
145:64910690c574
Child:
170:e95d10626187
mbed library. Release version 162

Who changed what in which revision?

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