This repository contains the code for Zephyr's Workshop used at Espressif Summit Brazil 2024.
Do not clone this repo using git. Zephyr's west
meta tool should be used to
set up your local workspace.
Follow the instructions available in Zephyr's Getting Started [1]:
Then, proceed with the following steps:
cd ~
mkdir zephyr-workshop
python -m venv zephyr-workshop/.venv
cd zephyr-workshop
source .venv/bin/activate
pip install wheel west
cd ~/zephyr-workshop
west init -m https://github.com/sylvioalves/zephyr-workshop.git .
west update
west zephyr-export
pip install -r zephyr/scripts/requirements.txt
Each numbered directory contains a different applications used in the workshop.
# Enable the Python virtual environment
$ cd ~/zephyr-workshop
$ source .venv/bin/activate
# Build the application
$ (.venv) cd app
# Choose one of the following build commands:
# For esp-rust board, use esp_rs
$ (.venv) west build -b esp_rs 01_hello_world
# Flash the binary to your device
$ (.venv) west flash
# Open serial monitor
$ (.venv) west espressif monitor
[1] | https://docs.zephyrproject.org/latest/develop/getting_started/index.html |