|
| 1 | +/* |
| 2 | + * BEETLE CMSIS Library |
| 3 | + */ |
| 4 | +/* |
| 5 | + * Copyright (c) 2009-2016 ARM Limited. All rights reserved. |
| 6 | + * |
| 7 | + * SPDX-License-Identifier: Apache-2.0 |
| 8 | + * |
| 9 | + * Licensed under the Apache License, Version 2.0 (the License) you may |
| 10 | + * not use this file except in compliance with the License. |
| 11 | + * You may obtain a copy of the License at |
| 12 | + * |
| 13 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | + * |
| 15 | + * Unless required by applicable law or agreed to in writing, software |
| 16 | + * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| 17 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | + * See the License for the specific language governing permissions and |
| 19 | + * limitations under the License. |
| 20 | + */ |
| 21 | +/*###ICF### Section handled by ICF editor, don't touch! ****/ |
| 22 | +/*-Editor annotation file-*/ |
| 23 | +/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ |
| 24 | +/*-Specials-*/ |
| 25 | +define symbol __ICFEDIT_intvec_start__ = 0x00000000; |
| 26 | +/*-Memory Regions-*/ |
| 27 | +define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; |
| 28 | +define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF; |
| 29 | +define symbol __ICFEDIT_region_RAM_start__ = 0x20000140; |
| 30 | +define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; |
| 31 | +/*-Sizes-*/ |
| 32 | +/* Heap and Stack size */ |
| 33 | +define symbol __ICFEDIT_size_cstack__ = 0x1000; |
| 34 | +define symbol __ICFEDIT_size_heap__ = 0x4000; |
| 35 | +/**** End of ICF editor section. ###ICF###*/ |
| 36 | + |
| 37 | +define memory mem with size = 4G; |
| 38 | +define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; |
| 39 | +define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; |
| 40 | + |
| 41 | +initialize by copy { readwrite }; |
| 42 | +do not initialize { section .noinit }; |
| 43 | + |
| 44 | +define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; |
| 45 | +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; |
| 46 | + |
| 47 | +place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; |
| 48 | +place in ROM_region { readonly }; |
| 49 | +place in RAM_region { readwrite, |
| 50 | + block CSTACK, block HEAP }; |
0 commit comments