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_UBRIDGE/TOOLCHAIN_IAR/MK82FN256xxx15.icf@169:a7c7b631e539, 2018-06-22 (annotated)
- Committer:
- Anna Bridge
- Date:
- Fri Jun 22 15:38:59 2018 +0100
- Revision:
- 169:a7c7b631e539
- Parent:
- 145:64910690c574
mbed library. Release version 162
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 145:64910690c574 | 1 | /* |
AnnaBridge | 145:64910690c574 | 2 | ** ################################################################### |
AnnaBridge | 145:64910690c574 | 3 | ** Processors: MK82FN256CAx15 |
AnnaBridge | 145:64910690c574 | 4 | ** MK82FN256VDC15 |
AnnaBridge | 145:64910690c574 | 5 | ** MK82FN256VLL15 |
AnnaBridge | 145:64910690c574 | 6 | ** MK82FN256VLQ15 |
AnnaBridge | 145:64910690c574 | 7 | ** |
AnnaBridge | 145:64910690c574 | 8 | ** Compiler: IAR ANSI C/C++ Compiler for ARM |
AnnaBridge | 145:64910690c574 | 9 | ** Reference manual: K82P121M150SF5RM, Rev. 0, May 2015 |
AnnaBridge | 145:64910690c574 | 10 | ** Version: rev. 1.2, 2015-07-29 |
AnnaBridge | 145:64910690c574 | 11 | ** Build: b160406 |
AnnaBridge | 145:64910690c574 | 12 | ** |
AnnaBridge | 145:64910690c574 | 13 | ** Abstract: |
AnnaBridge | 145:64910690c574 | 14 | ** Linker file for the IAR ANSI C/C++ Compiler for ARM |
AnnaBridge | 145:64910690c574 | 15 | ** |
AnnaBridge | 145:64910690c574 | 16 | ** Copyright (c) 2016 Freescale Semiconductor, Inc. |
AnnaBridge | 145:64910690c574 | 17 | ** All rights reserved. |
AnnaBridge | 145:64910690c574 | 18 | ** |
AnnaBridge | 145:64910690c574 | 19 | ** Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 145:64910690c574 | 20 | ** are permitted provided that the following conditions are met: |
AnnaBridge | 145:64910690c574 | 21 | ** |
AnnaBridge | 145:64910690c574 | 22 | ** o Redistributions of source code must retain the above copyright notice, this list |
AnnaBridge | 145:64910690c574 | 23 | ** of conditions and the following disclaimer. |
AnnaBridge | 145:64910690c574 | 24 | ** |
AnnaBridge | 145:64910690c574 | 25 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
AnnaBridge | 145:64910690c574 | 26 | ** list of conditions and the following disclaimer in the documentation and/or |
AnnaBridge | 145:64910690c574 | 27 | ** other materials provided with the distribution. |
AnnaBridge | 145:64910690c574 | 28 | ** |
AnnaBridge | 145:64910690c574 | 29 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
AnnaBridge | 145:64910690c574 | 30 | ** contributors may be used to endorse or promote products derived from this |
AnnaBridge | 145:64910690c574 | 31 | ** software without specific prior written permission. |
AnnaBridge | 145:64910690c574 | 32 | ** |
AnnaBridge | 145:64910690c574 | 33 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
AnnaBridge | 145:64910690c574 | 34 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
AnnaBridge | 145:64910690c574 | 35 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 145:64910690c574 | 36 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
AnnaBridge | 145:64910690c574 | 37 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
AnnaBridge | 145:64910690c574 | 38 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
AnnaBridge | 145:64910690c574 | 39 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
AnnaBridge | 145:64910690c574 | 40 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
AnnaBridge | 145:64910690c574 | 41 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
AnnaBridge | 145:64910690c574 | 42 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 145:64910690c574 | 43 | ** |
AnnaBridge | 145:64910690c574 | 44 | ** http: www.freescale.com |
AnnaBridge | 145:64910690c574 | 45 | ** mail: support@freescale.com |
AnnaBridge | 145:64910690c574 | 46 | ** |
AnnaBridge | 145:64910690c574 | 47 | ** ################################################################### |
AnnaBridge | 145:64910690c574 | 48 | */ |
AnnaBridge | 145:64910690c574 | 49 | |
AnnaBridge | 145:64910690c574 | 50 | define symbol __ram_vector_table__ = 1; |
AnnaBridge | 145:64910690c574 | 51 | |
AnnaBridge | 145:64910690c574 | 52 | /* Heap 1/4 of ram and stack 1/8 */ |
AnnaBridge | 145:64910690c574 | 53 | define symbol __stack_size__=0x8000; |
AnnaBridge | 145:64910690c574 | 54 | define symbol __heap_size__=0x10000; |
AnnaBridge | 145:64910690c574 | 55 | |
AnnaBridge | 145:64910690c574 | 56 | define symbol __ram_vector_table_size__ = isdefinedsymbol(__ram_vector_table__) ? 0x000003C0 : 0; |
AnnaBridge | 145:64910690c574 | 57 | define symbol __ram_vector_table_offset__ = isdefinedsymbol(__ram_vector_table__) ? 0x000003BF : 0; |
AnnaBridge | 145:64910690c574 | 58 | |
AnnaBridge | 145:64910690c574 | 59 | define symbol m_interrupts_start = 0x00000000; |
AnnaBridge | 145:64910690c574 | 60 | define symbol m_interrupts_end = 0x000003BF; |
AnnaBridge | 145:64910690c574 | 61 | |
AnnaBridge | 145:64910690c574 | 62 | define symbol m_bootloader_config_start = 0x000003C0; |
AnnaBridge | 145:64910690c574 | 63 | define symbol m_bootloader_config_end = 0x000003FF; |
AnnaBridge | 145:64910690c574 | 64 | |
AnnaBridge | 145:64910690c574 | 65 | define symbol m_flash_config_start = 0x00000400; |
AnnaBridge | 145:64910690c574 | 66 | define symbol m_flash_config_end = 0x0000040F; |
AnnaBridge | 145:64910690c574 | 67 | |
AnnaBridge | 145:64910690c574 | 68 | define symbol m_text_start = 0x00000410; |
AnnaBridge | 145:64910690c574 | 69 | define symbol m_text_end = 0x0003FFFF; |
AnnaBridge | 145:64910690c574 | 70 | |
AnnaBridge | 145:64910690c574 | 71 | define symbol m_interrupts_ram_start = 0x1FFF0000; |
AnnaBridge | 145:64910690c574 | 72 | define symbol m_interrupts_ram_end = 0x1FFF0000 + __ram_vector_table_offset__; |
AnnaBridge | 145:64910690c574 | 73 | |
AnnaBridge | 145:64910690c574 | 74 | define symbol m_data_start = m_interrupts_ram_start + __ram_vector_table_size__; |
AnnaBridge | 145:64910690c574 | 75 | define symbol m_data_end = 0x1FFFFFFF; |
AnnaBridge | 145:64910690c574 | 76 | |
AnnaBridge | 145:64910690c574 | 77 | define symbol m_data_2_start = 0x20000000; |
AnnaBridge | 145:64910690c574 | 78 | define symbol m_data_2_end = 0x2002FFFF; |
AnnaBridge | 145:64910690c574 | 79 | |
AnnaBridge | 145:64910690c574 | 80 | /* Sizes */ |
AnnaBridge | 145:64910690c574 | 81 | if (isdefinedsymbol(__stack_size__)) { |
AnnaBridge | 145:64910690c574 | 82 | define symbol __size_cstack__ = __stack_size__; |
AnnaBridge | 145:64910690c574 | 83 | } else { |
AnnaBridge | 145:64910690c574 | 84 | define symbol __size_cstack__ = 0x0400; |
AnnaBridge | 145:64910690c574 | 85 | } |
AnnaBridge | 145:64910690c574 | 86 | |
AnnaBridge | 145:64910690c574 | 87 | if (isdefinedsymbol(__heap_size__)) { |
AnnaBridge | 145:64910690c574 | 88 | define symbol __size_heap__ = __heap_size__; |
AnnaBridge | 145:64910690c574 | 89 | } else { |
AnnaBridge | 145:64910690c574 | 90 | define symbol __size_heap__ = 0x0400; |
AnnaBridge | 145:64910690c574 | 91 | } |
AnnaBridge | 145:64910690c574 | 92 | |
AnnaBridge | 145:64910690c574 | 93 | define exported symbol __VECTOR_TABLE = m_interrupts_start; |
AnnaBridge | 145:64910690c574 | 94 | define exported symbol __VECTOR_RAM = isdefinedsymbol(__ram_vector_table__) ? m_interrupts_ram_start : m_interrupts_start; |
AnnaBridge | 145:64910690c574 | 95 | define exported symbol __RAM_VECTOR_TABLE_SIZE = __ram_vector_table_size__; |
AnnaBridge | 145:64910690c574 | 96 | |
AnnaBridge | 145:64910690c574 | 97 | define memory mem with size = 4G; |
AnnaBridge | 145:64910690c574 | 98 | define region m_bootloader_config_region = mem:[from m_bootloader_config_start to m_bootloader_config_end]; |
AnnaBridge | 145:64910690c574 | 99 | define region m_flash_config_region = mem:[from m_flash_config_start to m_flash_config_end]; |
AnnaBridge | 145:64910690c574 | 100 | define region TEXT_region = mem:[from m_interrupts_start to m_interrupts_end] |
AnnaBridge | 145:64910690c574 | 101 | | mem:[from m_text_start to m_text_end]; |
AnnaBridge | 145:64910690c574 | 102 | define region DATA_region = mem:[from m_data_start to m_data_end] |
AnnaBridge | 145:64910690c574 | 103 | | mem:[from m_data_2_start to m_data_2_end-__size_cstack__]; |
AnnaBridge | 145:64910690c574 | 104 | define region CSTACK_region = mem:[from m_data_2_end-__size_cstack__+1 to m_data_2_end]; |
AnnaBridge | 145:64910690c574 | 105 | define region m_interrupts_ram_region = mem:[from m_interrupts_ram_start to m_interrupts_ram_end]; |
AnnaBridge | 145:64910690c574 | 106 | |
AnnaBridge | 145:64910690c574 | 107 | define block CSTACK with alignment = 8, size = __size_cstack__ { }; |
AnnaBridge | 145:64910690c574 | 108 | define block HEAP with alignment = 8, size = __size_heap__ { }; |
AnnaBridge | 145:64910690c574 | 109 | define block RW { readwrite }; |
AnnaBridge | 145:64910690c574 | 110 | define block ZI { zi }; |
AnnaBridge | 145:64910690c574 | 111 | |
AnnaBridge | 145:64910690c574 | 112 | initialize by copy { readwrite, section .textrw }; |
AnnaBridge | 145:64910690c574 | 113 | do not initialize { section .noinit }; |
AnnaBridge | 145:64910690c574 | 114 | |
AnnaBridge | 145:64910690c574 | 115 | place at address mem: m_interrupts_start { readonly section .intvec }; |
AnnaBridge | 145:64910690c574 | 116 | place in m_bootloader_config_region { section BootloaderConfig }; |
AnnaBridge | 145:64910690c574 | 117 | place in m_flash_config_region { section FlashConfig }; |
AnnaBridge | 145:64910690c574 | 118 | place in TEXT_region { readonly }; |
AnnaBridge | 145:64910690c574 | 119 | place in DATA_region { block RW }; |
AnnaBridge | 145:64910690c574 | 120 | place in DATA_region { block ZI }; |
AnnaBridge | 145:64910690c574 | 121 | place in DATA_region { last block HEAP }; |
AnnaBridge | 145:64910690c574 | 122 | place in CSTACK_region { block CSTACK }; |
AnnaBridge | 145:64910690c574 | 123 | place in m_interrupts_ram_region { section m_interrupts_ram }; |
AnnaBridge | 145:64910690c574 | 124 |