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