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.
TARGET_USENSE/TOOLCHAIN_ARM_STD/MKL82Z128xxx7.sct@170:e95d10626187, 2018-09-06 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Sep 06 13:39:34 2018 +0100
- Revision:
- 170:e95d10626187
- Parent:
- 145:64910690c574
mbed library. Release version 163
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 145:64910690c574 | 1 | #! armcc -E |
AnnaBridge | 145:64910690c574 | 2 | /* |
AnnaBridge | 145:64910690c574 | 3 | ** ################################################################### |
AnnaBridge | 145:64910690c574 | 4 | ** Processors: MKL82Z128VLH7 |
AnnaBridge | 145:64910690c574 | 5 | ** MKL82Z128VLK7 |
AnnaBridge | 145:64910690c574 | 6 | ** MKL82Z128VLL7 |
AnnaBridge | 145:64910690c574 | 7 | ** MKL82Z128VMC7 |
AnnaBridge | 145:64910690c574 | 8 | ** MKL82Z128VMP7 |
AnnaBridge | 145:64910690c574 | 9 | ** |
AnnaBridge | 145:64910690c574 | 10 | ** Compiler: Keil ARM C/C++ Compiler |
AnnaBridge | 145:64910690c574 | 11 | ** Reference manual: KL82P121M72SF0RM, Rev.2 November 2015 |
AnnaBridge | 145:64910690c574 | 12 | ** Version: rev. 1.5, 2015-09-24 |
AnnaBridge | 145:64910690c574 | 13 | ** Build: b160406 |
AnnaBridge | 145:64910690c574 | 14 | ** |
AnnaBridge | 145:64910690c574 | 15 | ** Abstract: |
AnnaBridge | 145:64910690c574 | 16 | ** Linker file for the Keil ARM C/C++ Compiler |
AnnaBridge | 145:64910690c574 | 17 | ** |
AnnaBridge | 145:64910690c574 | 18 | ** Copyright (c) 2016 Freescale Semiconductor, Inc. |
AnnaBridge | 145:64910690c574 | 19 | ** All rights reserved. |
AnnaBridge | 145:64910690c574 | 20 | ** |
AnnaBridge | 145:64910690c574 | 21 | ** Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 145:64910690c574 | 22 | ** are permitted provided that the following conditions are met: |
AnnaBridge | 145:64910690c574 | 23 | ** |
AnnaBridge | 145:64910690c574 | 24 | ** o Redistributions of source code must retain the above copyright notice, this list |
AnnaBridge | 145:64910690c574 | 25 | ** of conditions and the following disclaimer. |
AnnaBridge | 145:64910690c574 | 26 | ** |
AnnaBridge | 145:64910690c574 | 27 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
AnnaBridge | 145:64910690c574 | 28 | ** list of conditions and the following disclaimer in the documentation and/or |
AnnaBridge | 145:64910690c574 | 29 | ** other materials provided with the distribution. |
AnnaBridge | 145:64910690c574 | 30 | ** |
AnnaBridge | 145:64910690c574 | 31 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
AnnaBridge | 145:64910690c574 | 32 | ** contributors may be used to endorse or promote products derived from this |
AnnaBridge | 145:64910690c574 | 33 | ** software without specific prior written permission. |
AnnaBridge | 145:64910690c574 | 34 | ** |
AnnaBridge | 145:64910690c574 | 35 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
AnnaBridge | 145:64910690c574 | 36 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
AnnaBridge | 145:64910690c574 | 37 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 145:64910690c574 | 38 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
AnnaBridge | 145:64910690c574 | 39 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
AnnaBridge | 145:64910690c574 | 40 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
AnnaBridge | 145:64910690c574 | 41 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
AnnaBridge | 145:64910690c574 | 42 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
AnnaBridge | 145:64910690c574 | 43 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
AnnaBridge | 145:64910690c574 | 44 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 145:64910690c574 | 45 | ** |
AnnaBridge | 145:64910690c574 | 46 | ** http: www.freescale.com |
AnnaBridge | 145:64910690c574 | 47 | ** mail: support@freescale.com |
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__ 0x00000140 |
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 0x00000140 |
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 0x0001FBF0 |
AnnaBridge | 145:64910690c574 | 70 | |
AnnaBridge | 145:64910690c574 | 71 | #define m_interrupts_ram_start 0x1FFFA000 |
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 (0x00018000 - m_interrupts_ram_size) |
AnnaBridge | 145:64910690c574 | 76 | |
AnnaBridge | 145:64910690c574 | 77 | #if (defined(__usb_use_usbram__)) |
AnnaBridge | 145:64910690c574 | 78 | #define m_usb_sram_start 0x40100000 |
AnnaBridge | 145:64910690c574 | 79 | #define m_usb_sram_size 0x00000800 |
AnnaBridge | 145:64910690c574 | 80 | #endif |
AnnaBridge | 145:64910690c574 | 81 | |
AnnaBridge | 145:64910690c574 | 82 | /* USB BDT size */ |
AnnaBridge | 145:64910690c574 | 83 | #define usb_bdt_size 0x200 |
AnnaBridge | 145:64910690c574 | 84 | /* Sizes */ |
AnnaBridge | 145:64910690c574 | 85 | #if (defined(__stack_size__)) |
AnnaBridge | 145:64910690c574 | 86 | #define Stack_Size __stack_size__ |
AnnaBridge | 145:64910690c574 | 87 | #else |
AnnaBridge | 145:64910690c574 | 88 | #define Stack_Size 0x0400 |
AnnaBridge | 145:64910690c574 | 89 | #endif |
AnnaBridge | 145:64910690c574 | 90 | |
AnnaBridge | 145:64910690c574 | 91 | #if (defined(__heap_size__)) |
AnnaBridge | 145:64910690c574 | 92 | #define Heap_Size __heap_size__ |
AnnaBridge | 145:64910690c574 | 93 | #else |
AnnaBridge | 145:64910690c574 | 94 | #define Heap_Size 0x0400 |
AnnaBridge | 145:64910690c574 | 95 | #endif |
AnnaBridge | 145:64910690c574 | 96 | |
AnnaBridge | 170:e95d10626187 | 97 | LR_IROM1 m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region |
AnnaBridge | 145:64910690c574 | 98 | VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address |
AnnaBridge | 145:64910690c574 | 99 | * (RESET,+FIRST) |
AnnaBridge | 145:64910690c574 | 100 | } |
AnnaBridge | 145:64910690c574 | 101 | ER_m_bootloader_config m_bootloader_config_start FIXED m_bootloader_config_size { ; load address = execution address |
AnnaBridge | 145:64910690c574 | 102 | * (BootloaderConfig) |
AnnaBridge | 145:64910690c574 | 103 | } |
AnnaBridge | 145:64910690c574 | 104 | ER_m_flash_config m_flash_config_start FIXED m_flash_config_size { ; load address = execution address |
AnnaBridge | 145:64910690c574 | 105 | * (FlashConfig) |
AnnaBridge | 145:64910690c574 | 106 | } |
AnnaBridge | 170:e95d10626187 | 107 | ER_IROM1 m_text_start m_text_size { ; load address = execution address |
AnnaBridge | 145:64910690c574 | 108 | * (InRoot$$Sections) |
AnnaBridge | 145:64910690c574 | 109 | .ANY (+RO) |
AnnaBridge | 145:64910690c574 | 110 | } |
AnnaBridge | 145:64910690c574 | 111 | |
AnnaBridge | 145:64910690c574 | 112 | #if (defined(__ram_vector_table__)) |
AnnaBridge | 145:64910690c574 | 113 | VECTOR_RAM m_interrupts_ram_start EMPTY m_interrupts_ram_size { |
AnnaBridge | 145:64910690c574 | 114 | } |
AnnaBridge | 145:64910690c574 | 115 | #else |
AnnaBridge | 145:64910690c574 | 116 | VECTOR_RAM m_interrupts_start EMPTY 0 { |
AnnaBridge | 145:64910690c574 | 117 | } |
AnnaBridge | 145:64910690c574 | 118 | #endif |
AnnaBridge | 145:64910690c574 | 119 | RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data |
AnnaBridge | 145:64910690c574 | 120 | .ANY (+RW +ZI) |
AnnaBridge | 145:64910690c574 | 121 | } |
AnnaBridge | 145:64910690c574 | 122 | RW_IRAM1 +0 { ; Heap region growing up |
AnnaBridge | 145:64910690c574 | 123 | } |
AnnaBridge | 145:64910690c574 | 124 | } |
AnnaBridge | 145:64910690c574 | 125 | |
AnnaBridge | 145:64910690c574 | 126 | #if (defined(__usb_use_usbram__)) |
AnnaBridge | 145:64910690c574 | 127 | LR_m_usb_bdt m_usb_sram_start usb_bdt_size { |
AnnaBridge | 145:64910690c574 | 128 | ER_m_usb_bdt m_usb_sram_start UNINIT usb_bdt_size { |
AnnaBridge | 145:64910690c574 | 129 | * (m_usb_bdt) |
AnnaBridge | 145:64910690c574 | 130 | } |
AnnaBridge | 145:64910690c574 | 131 | } |
AnnaBridge | 145:64910690c574 | 132 | |
AnnaBridge | 145:64910690c574 | 133 | LR_m_usb_ram (m_usb_sram_start + usb_bdt_size) (m_usb_sram_size - usb_bdt_size) { |
AnnaBridge | 145:64910690c574 | 134 | ER_m_usb_ram (m_usb_sram_start + usb_bdt_size) UNINIT (m_usb_sram_size - usb_bdt_size) { |
AnnaBridge | 145:64910690c574 | 135 | * (m_usb_global) |
AnnaBridge | 145:64910690c574 | 136 | } |
AnnaBridge | 145:64910690c574 | 137 | } |
AnnaBridge | 145:64910690c574 | 138 | #endif |
AnnaBridge | 145:64910690c574 | 139 |