Skip to content

Commit adb07ef

Browse files
kjbraceyadbridge
authored andcommitted
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 0663378 commit adb07ef

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
@@ -5309,7 +5309,7 @@
53095309
},
53105310
"ARM_MPS2_M7": {
53115311
"inherits": ["ARM_MPS2_Target"],
5312-
"core": "Cortex-M7",
5312+
"core": "Cortex-M7FD",
53135313
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
53145314
"extra_labels": ["ARM_SSG", "MPS2", "MPS2_M7"],
53155315
"macros": ["CMSDK_CM7"],
@@ -8006,13 +8006,13 @@
80068006
},
80078007
"FVP_MPS2_M4": {
80088008
"inherits": ["FVP_MPS2"],
8009-
"core": "Cortex-M4",
8009+
"core": "Cortex-M4F",
80108010
"macros_add": ["CMSDK_CM4"],
80118011
"device_has_add": ["MPU"]
80128012
},
80138013
"FVP_MPS2_M7": {
80148014
"inherits": ["FVP_MPS2"],
8015-
"core": "Cortex-M7",
8015+
"core": "Cortex-M7FD",
80168016
"macros_add": ["CMSDK_CM7"],
80178017
"device_has_add": ["MPU"]
80188018
},

0 commit comments

Comments
 (0)