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_ARM_CM3DS_MPS2/TOOLCHAIN_IAR/MPS2.icf@157:e7ca05fa8600, 2017-11-09 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Nov 09 11:14:10 2017 +0000
- Revision:
- 157:e7ca05fa8600
- Parent:
- 145:64910690c574
- Child:
- 165:d1b4690b3f8b
Release 155 of the mbed library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 145:64910690c574 | 1 | /* |
AnnaBridge | 145:64910690c574 | 2 | * MPS2 CMSIS Library |
AnnaBridge | 145:64910690c574 | 3 | */ |
AnnaBridge | 145:64910690c574 | 4 | /* |
AnnaBridge | 145:64910690c574 | 5 | * Copyright (c) 2009-2017 ARM Limited. All rights reserved. |
AnnaBridge | 145:64910690c574 | 6 | * |
AnnaBridge | 145:64910690c574 | 7 | * SPDX-License-Identifier: Apache-2.0 |
AnnaBridge | 145:64910690c574 | 8 | * |
AnnaBridge | 145:64910690c574 | 9 | * Licensed under the Apache License, Version 2.0 (the License) you may |
AnnaBridge | 145:64910690c574 | 10 | * not use this file except in compliance with the License. |
AnnaBridge | 145:64910690c574 | 11 | * You may obtain a copy of the License at |
AnnaBridge | 145:64910690c574 | 12 | * |
AnnaBridge | 145:64910690c574 | 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 145:64910690c574 | 14 | * |
AnnaBridge | 145:64910690c574 | 15 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 145:64910690c574 | 16 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
AnnaBridge | 145:64910690c574 | 17 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 145:64910690c574 | 18 | * See the License for the specific language governing permissions and |
AnnaBridge | 145:64910690c574 | 19 | * limitations under the License. |
AnnaBridge | 145:64910690c574 | 20 | */ |
AnnaBridge | 145:64910690c574 | 21 | |
AnnaBridge | 145:64910690c574 | 22 | /* The RAM region doesn't start at the beginning of the RAM address |
AnnaBridge | 145:64910690c574 | 23 | * space to create space for the vector table copied over to the RAM by mbed. |
AnnaBridge | 145:64910690c574 | 24 | * The space left is a bit bigger than is necessary based on the number of |
AnnaBridge | 145:64910690c574 | 25 | * interrupt handlers. |
AnnaBridge | 145:64910690c574 | 26 | */ |
AnnaBridge | 145:64910690c574 | 27 | /*###ICF### Section handled by ICF editor, don't touch! ****/ |
AnnaBridge | 145:64910690c574 | 28 | /*-Editor annotation file-*/ |
AnnaBridge | 145:64910690c574 | 29 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ |
AnnaBridge | 145:64910690c574 | 30 | /*-Specials-*/ |
AnnaBridge | 145:64910690c574 | 31 | define symbol __ICFEDIT_intvec_start__ = 0x00000000; |
AnnaBridge | 145:64910690c574 | 32 | /*-Memory Regions-*/ |
AnnaBridge | 145:64910690c574 | 33 | define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; |
AnnaBridge | 145:64910690c574 | 34 | define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF; |
AnnaBridge | 145:64910690c574 | 35 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000140; |
AnnaBridge | 145:64910690c574 | 36 | define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; |
AnnaBridge | 145:64910690c574 | 37 | /*-Sizes-*/ |
AnnaBridge | 145:64910690c574 | 38 | /* Heap and Stack size */ |
AnnaBridge | 145:64910690c574 | 39 | define symbol __ICFEDIT_size_heap__ = 0x4000; |
AnnaBridge | 145:64910690c574 | 40 | define symbol __ICFEDIT_size_cstack__ = 0x1000; |
AnnaBridge | 145:64910690c574 | 41 | /**** End of ICF editor section. ###ICF###*/ |
AnnaBridge | 145:64910690c574 | 42 | |
AnnaBridge | 145:64910690c574 | 43 | define memory mem with size = 4G; |
AnnaBridge | 145:64910690c574 | 44 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; |
AnnaBridge | 145:64910690c574 | 45 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; |
AnnaBridge | 145:64910690c574 | 46 | |
AnnaBridge | 145:64910690c574 | 47 | initialize by copy { readwrite }; |
AnnaBridge | 145:64910690c574 | 48 | do not initialize { section .noinit }; |
AnnaBridge | 145:64910690c574 | 49 | |
AnnaBridge | 145:64910690c574 | 50 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; |
AnnaBridge | 145:64910690c574 | 51 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; |
AnnaBridge | 145:64910690c574 | 52 | |
AnnaBridge | 145:64910690c574 | 53 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; |
AnnaBridge | 145:64910690c574 | 54 | place in ROM_region { readonly }; |
AnnaBridge | 145:64910690c574 | 55 | place in RAM_region { readwrite, |
AnnaBridge | 145:64910690c574 | 56 | block CSTACK, block HEAP }; |