Skip to content

Commit a5d0c1c

Browse files
committed
ARM MPS2: Cortex-M4 -> M4F & M7 -> M7FD
According to their cmsis.h, FPU is present, so change targets.json to use it. * ARM_MPS2_M4: already was Cortex-M4F * ARM_MPS2_M7: Cortex-M7 -> M7FD * FVP_MPS2_M4: Cortex-M4 -> M4F * FVP_MPS2_M7: Cortex-M7 -> M7FD If they do not in fact have FPU, then cmsis.h should be modified to set `__FPU_PRESENT` to 0. This will currently cause compilation problems with ARMC6, but I'll be submitting a fix for that.
1 parent beed42e commit a5d0c1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/targets.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5314,7 +5314,7 @@
53145314
},
53155315
"ARM_MPS2_M7": {
53165316
"inherits": ["ARM_MPS2_Target"],
5317-
"core": "Cortex-M7",
5317+
"core": "Cortex-M7FD",
53185318
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
53195319
"extra_labels": ["ARM_SSG", "MPS2", "MPS2_M7"],
53205320
"macros": ["CMSDK_CM7"],
@@ -8011,13 +8011,13 @@
80118011
},
80128012
"FVP_MPS2_M4": {
80138013
"inherits": ["FVP_MPS2"],
8014-
"core": "Cortex-M4",
8014+
"core": "Cortex-M4F",
80158015
"macros_add": ["CMSDK_CM4"],
80168016
"device_has_add": ["MPU"]
80178017
},
80188018
"FVP_MPS2_M7": {
80198019
"inherits": ["FVP_MPS2"],
8020-
"core": "Cortex-M7",
8020+
"core": "Cortex-M7FD",
80218021
"macros_add": ["CMSDK_CM7"],
80228022
"device_has_add": ["MPU"]
80238023
},

0 commit comments

Comments
 (0)