Skip to content

Commit 6c2ef92

Browse files
authored
Merge pull request #2427 from fvincenzo/master
[BEETLE] Add support for IAR compiler
2 parents 685096e + 5145ab7 commit 6c2ef92

File tree

8 files changed

+530
-4
lines changed

8 files changed

+530
-4
lines changed

hal/targets.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@
16081608
"ARM_BEETLE_SOC": {
16091609
"inherits": ["ARM_IOTSS_Target"],
16101610
"core": "Cortex-M3",
1611-
"supported_toolchains": ["ARM", "GCC_ARM"],
1611+
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
16121612
"default_toolchain": "ARM",
16131613
"extra_labels": ["ARM_SSG", "BEETLE"],
16141614
"macros": ["CMSDK_BEETLE", "WSF_MS_PER_TICK=20", "WSF_TOKEN_ENABLED=FALSE", "WSF_TRACE_ENABLED=TRUE", "WSF_ASSERT_ENABLED=FALSE", "WSF_PRINTF_MAX_LEN=128", "ASIC", "CONFIG_HOST_REV=0x20", "CONFIG_ALLOW_DEEP_SLEEP=FALSE", "HCI_VS_TARGET", "CONFIG_ALLOW_SETTING_WRITE=TRUE", "WSF_MAX_HANDLERS=20", "NO_LEDS"],
@@ -1619,8 +1619,8 @@
16191619
}
16201620
},
16211621
"device_has": ["ANALOGIN", "CLCD", "I2C", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SPI"],
1622-
"features": ["BLE"],
1623-
"release_versions": ["2"]
1622+
"features": ["BLE"],
1623+
"release_versions": ["2", "5"]
16241624
},
16251625
"RZ_A1H": {
16261626
"supported_form_factors": ["ARDUINO"],
@@ -1958,7 +1958,7 @@
19581958
"core": "Cortex-M4F",
19591959
"default_toolchain": "ARM",
19601960
"extra_labels": ["NUVOTON", "NUC472", "NUMAKER_PFM_NUC472"],
1961-
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
1961+
"macros": ["MBEDTLS_ENTROPY_HARDWARE_ALT"],
19621962
"is_disk_virtual": true,
19631963
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
19641964
"inherits": ["Target"],
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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

Comments
 (0)