This is a simple "Hello World" example for the Arm V2M-MPS3 board with a Corstone SSE-300 subsystem. The example also executes on Arm Virtual Hardware (AVH) modeling the hardware. This example prints "Hello World" and a counter value via the standard output.
To facilitate tool integration, Arm provides critical foundation tools in an artifactory. The following tools are installed via the vcpkg-configuration.json
file. In addition utilities such as CMake and Ninja are installed.
URL/Tool | Description |
---|---|
https://www.keil.arm.com/artifacts/#models/arm/avh-fvp | Arm Virtual Hardware FVP Models |
https://www.keil.arm.com/artifacts/#tools/open-cmsis-pack/cmsis-toolbox | CLI Build System for CMSIS-Pack based projects |
https://www.keil.arm.com/artifacts/#compilers/arm/armclang | Arm Compiler for Embedded (commercial) |
https://www.keil.arm.com/artifacts/#compilers/arm/arm-none-eabi-gcc | Arm GNU Toolchain (community supported); not recommended for Cortex-M with Helium |
https://www.keil.arm.com/artifacts/#debuggers/arm/armdbg | Arm Debugger |
Required tools described in file vcpkg-configuration.json
are automatically installed by the VS code extensions. You can see the status of the process in the status bar.
Required CMSIS-Packs also need to be installed. In case a required pack is missing, a notification window will pop-up to install the missing pack.
Open the 'CMSIS' view from the side bar, select desired 'Build Type' and press the 'Build' button.
Download required packs (not required when the packs are already available) by executing the following commands:
csolution list packs -s hello.csolution.yml -m >packs.txt
cpackget update-index
cpackget add -f packs.txt
Build the project by execute the following command:
cbuild hello.csolution.yml
Note: AVH is only available on Windows PCs and Linux machines.
Run the project by executing the following command:
FVP_Corstone_SSE-300 -f vht_config.txt -a out/hello/V2M-MPS3-SSE-300-FVP/Debug/hello.axf --simlimit 20
Make sure that you have selected the virtual device in the Device Manager ("Corstone SSE 300"). In the CMSIS view, click on the debug button at the top to start the debug session.