Skip to content

Commit 2d2d1cf

Browse files
committed
Modify the python tools to support Cortex-A5
1 parent ff21881 commit 2d2d1cf

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

tools/export/gnuarmeclipse/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def process_options(self, opts, flags_in):
428428
'Cortex-M7': {'mcpu': 'cortex-m7', 'fpu_unit': None},
429429
'Cortex-M7F': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv4spd16'},
430430
'Cortex-M7FD': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv5d16'},
431+
'Cortex-A5': {'mcpu': 'cortex-a5', 'fpu_unit': 'vfpv3'},
431432
'Cortex-A9': {'mcpu': 'cortex-a9', 'fpu_unit': 'vfpv3'}
432433
}
433434

tools/export/mcuxpresso/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ def process_options(self, opts, flags_in, libraries):
353353
'Cortex-M7': {'mcpu': 'cortex-m7', 'fpu_unit': None},
354354
'Cortex-M7F': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv4spd16'},
355355
'Cortex-M7FD': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv5d16'},
356+
'Cortex-A5': {'mcpu': 'cortex-a5', 'fpu_unit': 'vfpv3'},
356357
'Cortex-A9': {'mcpu': 'cortex-a9', 'fpu_unit': 'vfpv3'}
357358
}
358359

tools/targets/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"Cortex-M7F": ["M7", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M7", "CORTEX"],
5050
"Cortex-M7FD": ["M7", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M7",
5151
"CORTEX"],
52+
"Cortex-A5": ["A5", "CORTEX_A", "LIKE_CORTEX_A5", "CORTEX"],
5253
"Cortex-A9": ["A9", "CORTEX_A", "LIKE_CORTEX_A9", "CORTEX"],
5354
"Cortex-M23": ["M23", "CORTEX_M", "LIKE_CORTEX_M23", "CORTEX"],
5455
"Cortex-M23-NS": ["M23", "M23_NS", "CORTEX_M", "LIKE_CORTEX_M23",
@@ -74,6 +75,7 @@
7475
"Cortex-M7": 7,
7576
"Cortex-M7F": 7,
7677
"Cortex-M7FD": 7,
78+
"Cortex-A5": 7,
7779
"Cortex-A9": 7,
7880
"Cortex-M23": 8,
7981
"Cortex-M23-NS": 8,

tools/toolchains/arm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ARM(mbedToolchain):
5757
SHEBANG = "#! armcc -E"
5858
SUPPORTED_CORES = [
5959
"Cortex-M0", "Cortex-M0+", "Cortex-M3", "Cortex-M4", "Cortex-M4F",
60-
"Cortex-M7", "Cortex-M7F", "Cortex-M7FD", "Cortex-A9"
60+
"Cortex-M7", "Cortex-M7F", "Cortex-M7FD", "Cortex-A5", "Cortex-A9"
6161
]
6262
ARMCC_RANGE = (LooseVersion("5.06"), LooseVersion("5.07"))
6363
ARMCC_PRODUCT_RE = re.compile(b"Product: (.*)")
@@ -544,7 +544,7 @@ class ARMC6(ARM_STD):
544544
"Cortex-M4F", "Cortex-M7", "Cortex-M7F", "Cortex-M7FD",
545545
"Cortex-M23", "Cortex-M23-NS", "Cortex-M33", "Cortex-M33F",
546546
"Cortex-M33-NS", "Cortex-M33F-NS", "Cortex-M33FE-NS", "Cortex-M33FE",
547-
"Cortex-A9"
547+
"Cortex-A5", "Cortex-A9"
548548
]
549549
ARMCC_RANGE = (LooseVersion("6.10"), LooseVersion("7.0"))
550550
LD_DIAGNOSTIC_PATTERN = re.compile(

tools/toolchains/gcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def __init__(self, target, notify=None, macros=None, build_profile=None,
131131
self.cpu.append("-mfpu=fpv5-d16")
132132
self.cpu.append("-mfloat-abi=softfp")
133133

134-
if target.core == "Cortex-A9":
134+
if target.core == "Cortex-A9" or target.core == "Cortex-A5":
135135
self.cpu.append("-mthumb-interwork")
136136
self.cpu.append("-marm")
137137
self.cpu.append("-march=armv7-a")

tools/toolchains/mbed_toolchain.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
"__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
8787
"Cortex-M7FD": ["__CORTEX_M7", "ARM_MATH_CM7", "__FPU_PRESENT=1",
8888
"__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
89+
"Cortex-A5": ["__CORTEX_A5", "ARM_MATH_CA5", "__FPU_PRESENT",
90+
"__CMSIS_RTOS", "__EVAL"],
8991
"Cortex-A9": ["__CORTEX_A9", "ARM_MATH_CA9", "__FPU_PRESENT",
9092
"__CMSIS_RTOS", "__EVAL", "__MBED_CMSIS_RTOS_CA9"],
9193
"Cortex-M23-NS": ["__CORTEX_M23", "ARM_MATH_ARMV8MBL", "DOMAIN_NS=1",

0 commit comments

Comments
 (0)