This repository contains an exemplary CMSIS solution file that can be used to build two Zephyr basic examples on two
different development boards. It can be easily adapted to other boards or examples. It uses Zephyr's west build
system to create the executable file for an application and the
Arm CMSIS Debugger to flash download
and run the image on the target hardware.
Note
Make sure that you have installed Zephyr as explained in the Keil Studio documentation.
- Clone this repository onto your machine.
- Open it in VS Code. It should install required extensions automatically.
- In the CMSIS view, click on ..., use Open Solution in Workspace, and choose "zephyr".
- Press the Manage Solution Settings button. In the dialog, select the target board and application.
- Press the Build solution button to build the example.
- Press the Load & Debug application button to start a debug session.
Note
Check that the Arm CMSIS Solution extension is at least v1.64.0.
If you want to run the examples on a different board, simply edit the Examples/Blinky/blinky.csolution.yml or
Examples/Threads/threads.csolution.yml files:
# List the packs that define the device and/or board.
packs:
- pack: Vendor::DFP
- pack: Vendor::BSP
# List different hardware targets that are used to deploy the solution.
target-types:
- type: SpecifyName
board: Vendor::Boardname
device: Vendor::DevicenameIf your development board's CMSIS board name and Zephyr board name do not match, you need to add the correct Zephyr board name like this:
target-types:
- type: B-L475-IOT01A
board: STMicroelectronics::B-L475E-IOT01A
device: STMicroelectronics::STM32L475VGTx
variables:
- west-board: disco_l475_iot1Note
Make sure to delete the previous /out and /tmp directories before saving the updated *.csolution.yml file,
otherwise the solution might not load correctly.
