You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aef2267
Browse filesBrowse the repository at this point in the historyBrowse files
Validation project uses CMSIS Project Manager to generate independent projects.
3
+
Validation project uses CMSIS-Toolbox to build and run test configurations.
4
4
5
-
Independent project can be generated for specific RTOS, DEVICE and COMPILER. Possible values for all variables are listed below:
5
+
The solution file `Validation.csolution.yml` defines all target types and build types. It is the input file for build and references the application layer and the board layer for each target device.
6
+
7
+
A test configuration can be built for any combination of RTOS, DEVICE and COMPILER. Possible values are listed below:
6
8
7
9
| RTOS | Device | Compiler |
8
10
|----------|----------|----------|
@@ -15,8 +17,6 @@ Independent project can be generated for specific RTOS, DEVICE and COMPILER. Pos
15
17
|| CM55 ||
16
18
|| CM85 ||
17
19
18
-
Input file for cbuild is Validation.csolution.yml
19
-
20
20
## Prerequisites
21
21
22
22
-[CMSIS-Toolbox 2.13.0 or later](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/releases)
@@ -27,22 +27,11 @@ Input file for cbuild is Validation.csolution.yml
27
27
-[LLVM/Clang Embedded Toolchain 22.1.0 or later](https://developer.arm.com/Tools%20and%20Software/Arm%20Toolchain%20for%20Embedded)
28
28
-[CMake 3.31.5 or later](https://cmake.org/download/)
29
29
-[Ninja 1.13.2 or later](https://github.com/ninja-build/ninja/releases)
30
-
- Python (to use `build.py` script)
31
30
32
-
These prerequisites can be installed automatically using `vcpkg`:
31
+
These prerequisites can be installed automatically using `vcpkg` with the configuration file `.ci/vcpkg-configuration.json`:
33
32
34
33
```Shell
35
-
./Project $ vcpkg activate
36
-
```
37
-
38
-
Python packages required to build and run with `build.py`:
These get installed automatically if missing. One can explicitly install the packs using `cpackget` from CMSIS-Toolbox.
56
45
57
-
## Build and Execute Projects with Arm Virtual Hardware
58
-
59
-
The simplest way to execute this validation suite is to build and run configured targets using Python script:
60
-
61
-
```Shell
62
-
./Project $ python build.py build run
63
-
```
46
+
## Build and Execute Project with Arm Virtual Hardware
64
47
65
-
Use `--verbose` command to output more information:
48
+
The following command will build the project for specified RTOS/Device/Compiler and its output is an executable (either `Validation.axf`, `Validation.elf` or `Validation.out`):
Above commands will build all defined projects and run each target. One might be interested in only one RTOS/Device/Compiler combination and can also build and run a project for specific combination, see below.
72
-
73
-
## Build and Execute Project for Specific Target
74
-
75
-
To build and execute validation suite for specific target use the following command:
54
+
Executable file is then used as input parameter when calling the FVP model to run the validation:
./Project $ {FVP_MODEL} -q --simlimit 100 -f ../Layer/Board/{DEVICE}/fvp_config.txt -a out/Validation/{DEVICE}/{RTOS}/Validation.{EXT}
79
58
```
80
59
81
-
> Note: Mentioned commands can be executed either in Windows command prompt or bash shell.
82
-
83
-
Python script is used to simplify build commands and Virtual Hardware Target model execution. One can call cbuild and execute the model manually, see below.
84
-
85
-
## Manually Build and Execute Project for Specific Target
86
-
87
-
Behind the scenes, build.py script calls cbuild and VHT model executable to build and execute the test suite.
88
-
89
-
The following command will build the project for specified RTOS/Device/Compiler and its output is an executable (either Validation.axf or Validation.elf):
Executable file is then used as input parameter when calling Virtual Hardware Target model to run the validation:
96
-
97
-
```Shell
98
-
./Project $ {AVH_MODEL} -f ../Layer/Board/{DEVICE}/fvp_config.txt -a out/Validation/{DEVICE}/{RTOS}/Validation.axf
99
-
```
60
+
Test results are output to stdout in JUnit XML format.
100
61
101
-
Please see a table below for a possible {AVH_MODEL} variable value when a project for specified {DEVICE} was built:
62
+
Please see the tables below for possible values of `{FVP_MODEL}` and `{EXT}`:
102
63
103
-
|AVH_MODEL| DEVICE |
64
+
|FVP_MODEL| DEVICE |
104
65
|---------------------------|---------|
105
66
| FVP_MPS2_Cortex-M0plus | CM0plus |
106
67
| FVP_MPS2_Cortex-M3 | CM3 |
@@ -111,13 +72,19 @@ Please see a table below for a possible {AVH_MODEL} variable value when a projec
111
72
| FVP_MPS2_Cortex-M55 | CM55 |
112
73
| FVP_MPS2_Cortex-M85 | CM85 |
113
74
114
-
## Debug the Project using Keil MDK-Professional
75
+
| EXT | COMPILER |
76
+
|------|-------------|
77
+
| axf | AC6 |
78
+
| elf | GCC / CLANG |
79
+
| out | IAR |
115
80
116
-
All projects can be opened and debugged using Keil MDK-Professional no matter whether the project was build using Python script or manually with cbuild.
117
-
After the project was successfully built, follow the steps below:
81
+
## Build and Execute Project using Keil Studio for VS Code
118
82
119
-
1. Go into folder Validation.{RTOS}+{DEVICE}_{COMPILER} and double click the generated cprj file
120
-
2. In uVision, open dialog Options for Target->Debug and configure the debugger
121
-
- Configuration File 'fvp_config.txt' for each target can be found in folder [**.\Layer\Board**](https://github.com/ARM-software/CMSIS-RTOS2_Validation/tree/main/Layer/Board)
83
+
### Quick Start
122
84
123
-
Documentation on how to [use Keil MDK with Arm Virtual Hardware](https://arm-software.github.io/AVH/main/infrastructure/html/run_mdk_pro.html) describes how to configure the debugger.
85
+
1. Install [Keil Studio for VS Code](https://marketplace.visualstudio.com/items?itemName=Arm.keil-studio-pack) from the VS Code marketplace.
86
+
2. Open the base directory in VS Code.
87
+
3. In VS Code Explorer View right click on `.ci/vcpkg-configuration.json` and select `Activate Environment`. This will download and install
88
+
the related tools.
89
+
4. Open the [CMSIS View](https://mdk-packs.github.io/vscode-cmsis-solution-docs/userinterface.html#2-main-area-of-the-cmsis-view) in VS Code and use the *Open Solution in Workspace* to open `Project/Validation` solution.
90
+
5. In the CMSIS view, use the [Action buttons](https://github.com/ARM-software/vscode-cmsis-csolution?tab=readme-ov-file#action-buttons) to build, load and run the example on the Arm Virtual Hardware FVP models.
0 commit comments