Skip to content

Commit 0a22da8

Browse files
committed
Fixes to CoreValidation
1 parent c912941 commit 0a22da8

3 files changed

Lines changed: 56 additions & 43 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/1.5.0/tools/projmgr/schemas/cdefault.schema.json
2+
3+
default:
4+
compiler: AC6
5+
6+
misc:
7+
- for-compiler: AC6
8+
C: [-std=c99, -gdwarf-4, -ffunction-sections]
9+
Link: [--entry=Reset_Handler, --symbols, --map]
10+
11+
- for-compiler: GCC
12+
C: [-std=gnu99, -gdwarf-2, -ffunction-sections, -fdata-sections]
13+
Link: [--specs=nano.specs, --specs=rdimon.specs]
14+
15+
- for-compiler: IAR
16+
C: [--dlib_config DLib_Config_Full.h]
17+
Link: [--semihosting]

CMSIS/CoreValidation/Project/Validation.csolution.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/1.5.0/tools/projmgr/schemas/csolution.schema.json
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Open-CMSIS-Pack/devtools/schemas/projmgr/2.0.0-dev2/tools/projmgr/schemas/csolution.schema.json
22

33
solution:
4+
created-for: cmsis-toobox@2.0.0-dev2
5+
6+
cdefault: null
7+
48
packs:
59
- pack: ARM::CMSIS
610
path: ../../../
711
- pack: ARM::CMSIS_DFP
812

9-
compiler: AC6
10-
11-
misc:
12-
- for-compiler: AC6
13-
C: [-std=c99, -gdwarf-4, -ffunction-sections]
14-
Link: [--entry=Reset_Handler, --symbols, --map]
15-
- for-compiler: GCC
16-
C: [-std=gnu99, -gdwarf-2, -ffunction-sections, -fdata-sections]
17-
Link: [--specs=nano.specs, --specs=rdimon.specs]
18-
- for-compiler: IAR
19-
C: [--dlib_config DLib_Config_Full.h]
20-
Link: [--semihosting]
21-
2213
target-types:
2314
#CM0
2415
- type: CM0

CMSIS/CoreValidation/Project/build.py

100644100755
Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

44
import logging
@@ -102,34 +102,39 @@ class OptimizationAxis(Enum):
102102
SIZE = ('size')
103103

104104

105+
@matrix_axis("model", "m", "Model variant(s) to be considered.")
106+
class ModelAxis(Enum):
107+
VHT = ('VHT')
108+
FVP = ('FVP')
109+
105110
MODEL_EXECUTABLE = {
106-
DeviceAxis.CM0: ("VHT_MPS2_Cortex-M0", []),
107-
DeviceAxis.CM0plus: ("VHT_MPS2_Cortex-M0plus", []),
108-
DeviceAxis.CM3: ("VHT_MPS2_Cortex-M3", []),
109-
DeviceAxis.CM4: ("VHT_MPS2_Cortex-M4", []),
110-
DeviceAxis.CM4FP: ("VHT_MPS2_Cortex-M4", []),
111-
DeviceAxis.CM7: ("VHT_MPS2_Cortex-M7", []),
112-
DeviceAxis.CM7DP: ("VHT_MPS2_Cortex-M7", []),
113-
DeviceAxis.CM7SP: ("VHT_MPS2_Cortex-M7", []),
114-
DeviceAxis.CM23: ("VHT_MPS2_Cortex-M23", []),
115-
DeviceAxis.CM23S: ("VHT_MPS2_Cortex-M23", []),
116-
DeviceAxis.CM23NS: ("VHT_MPS2_Cortex-M23", []),
117-
DeviceAxis.CM33: ("VHT_MPS2_Cortex-M33", []),
118-
DeviceAxis.CM33S: ("VHT_MPS2_Cortex-M33", []),
119-
DeviceAxis.CM33NS: ("VHT_MPS2_Cortex-M33", []),
120-
DeviceAxis.CM35P: ("VHT_MPS2_Cortex-M35P", []),
121-
DeviceAxis.CM35PS: ("VHT_MPS2_Cortex-M35P", []),
122-
DeviceAxis.CM35PNS: ("VHT_MPS2_Cortex-M35P", []),
123-
DeviceAxis.CM55S: ("VHT_MPS2_Cortex-M55", []),
124-
DeviceAxis.CM55NS: ("VHT_MPS2_Cortex-M55", []),
125-
DeviceAxis.CM85S: ("VHT_MPS2_Cortex-M85", []),
126-
DeviceAxis.CM85NS: ("VHT_MPS2_Cortex-M85", []),
127-
DeviceAxis.CA5: ("FVP_VE_Cortex-A5x1", []),
128-
DeviceAxis.CA7: ("FVP_VE_Cortex-A7x1", []),
129-
DeviceAxis.CA9: ("FVP_VE_Cortex-A9x1", []),
130-
# DeviceAxis.CA5NEON: ("FVP_VE_Cortex-A5x1", []),
131-
# DeviceAxis.CA7NEON: ("FVP_VE_Cortex-A7x1", []),
132-
# DeviceAxis.CA9NEON: ("FVP_VE_Cortex-A9x1", [])
111+
DeviceAxis.CM0: ("_MPS2_Cortex-M0", []),
112+
DeviceAxis.CM0plus: ("_MPS2_Cortex-M0plus", []),
113+
DeviceAxis.CM3: ("_MPS2_Cortex-M3", []),
114+
DeviceAxis.CM4: ("_MPS2_Cortex-M4", []),
115+
DeviceAxis.CM4FP: ("_MPS2_Cortex-M4", []),
116+
DeviceAxis.CM7: ("_MPS2_Cortex-M7", []),
117+
DeviceAxis.CM7DP: ("_MPS2_Cortex-M7", []),
118+
DeviceAxis.CM7SP: ("_MPS2_Cortex-M7", []),
119+
DeviceAxis.CM23: ("_MPS2_Cortex-M23", []),
120+
DeviceAxis.CM23S: ("_MPS2_Cortex-M23", []),
121+
DeviceAxis.CM23NS: ("_MPS2_Cortex-M23", []),
122+
DeviceAxis.CM33: ("_MPS2_Cortex-M33", []),
123+
DeviceAxis.CM33S: ("_MPS2_Cortex-M33", []),
124+
DeviceAxis.CM33NS: ("_MPS2_Cortex-M33", []),
125+
DeviceAxis.CM35P: ("_MPS2_Cortex-M35P", []),
126+
DeviceAxis.CM35PS: ("_MPS2_Cortex-M35P", []),
127+
DeviceAxis.CM35PNS: ("_MPS2_Cortex-M35P", []),
128+
DeviceAxis.CM55S: ("_MPS2_Cortex-M55", []),
129+
DeviceAxis.CM55NS: ("_MPS2_Cortex-M55", []),
130+
DeviceAxis.CM85S: ("_MPS2_Cortex-M85", []),
131+
DeviceAxis.CM85NS: ("_MPS2_Cortex-M85", []),
132+
DeviceAxis.CA5: ("_VE_Cortex-A5x1", []),
133+
DeviceAxis.CA7: ("_VE_Cortex-A7x1", []),
134+
DeviceAxis.CA9: ("_VE_Cortex-A9x1", []),
135+
# DeviceAxis.CA5NEON: ("_VE_Cortex-A5x1", []),
136+
# DeviceAxis.CA7NEON: ("_VE_Cortex-A7x1", []),
137+
# DeviceAxis.CA9NEON: ("_VE_Cortex-A9x1", [])
133138
}
134139

135140
def config_suffix(config, timestamp=True):
@@ -245,7 +250,7 @@ def cbuild(config):
245250
f"{result.command.config.device}."
246251
f"{title}"))
247252
def model_exec(config):
248-
cmdline = [MODEL_EXECUTABLE[config.device][0], "-q", "--simlimit", 100, "-f", model_config(config)]
253+
cmdline = [f"{config.model}{MODEL_EXECUTABLE[config.device][0]}", "-q", "--simlimit", 100, "-f", model_config(config)]
249254
cmdline += MODEL_EXECUTABLE[config.device][1]
250255
cmdline += ["-a", f"{build_dir(config)}/{output_dir(config)}/Validation.{config.compiler.image_ext}"]
251256
if config.device.has_bl():

0 commit comments

Comments
 (0)