Skip to content

Arm-Examples/CMSIS-Zephyr

Repository files navigation

CMSIS-Zephyr

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.

Quick start

  • 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.

Switch to a different board

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::Devicename

If 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_iot1

Note

Make sure to delete the previous /out and /tmp directories before saving the updated *.csolution.yml file, otherwise the solution might not load correctly.

Introduction video

Keil Studio Zephyr capabilities Video

About

This repository contains examples showing how to use the Arm CMSIS Debugger with Zephyr-based projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •