Skip to main content

Build Your First App

Build the Blinky Example

note

The references below should be changed appropriately for the board in use:

  • ZEST_CORE_BOARD: board name (eg. Zest_Core_STM32L4A6RG)
  • YOUR_APP_NAME: name of the application

Requirements

Cookiecutter

Cookiecutter is a command-line tool that creates projects from templates.

Install Cookiecutter with Pipx:

pipx install cookiecutter

Create Your First Application

Create a workspace application from the template:

mkdir app-workspace
cd app-workspace
cookiecutter gh:catie-aq/cookiecutter_zephyr

Select Workspace application and fill in the requested information.

Your application is now created and the workspace can be initialized:

west init -l YOUR_APP_NAME

Update workspace:

west update

Build the blinky example:

west build -b ZEST_CORE_BOARD app

Flash the Target

Connect to the board with a SEGGER J-Link probe.

Flash the target using west:

west flash