Smarty - Matter on ESP32 with Zephyr - Part 2#

In the previous part we built the Hello World Zephyr sample project and analyzed the build environment, dependencies and generated artifacts.

Now I will setup a yanga project to build the same example. The goal is to configure in yanga:

  • the two external dependencies zephyr and hal_espressif

  • the toolchain riscv64-zephyr-elf

  • the platform esp32h2_devkitm

  • a hello_world component

One shall be able to clone the repository and build it using yanga on both Ubuntu and Windows by running a single command. No extra steps to install toolchains or other dependencies.

PART 2: Hello World on ESP32-H2 with Yanga#

I followed the yanga getting started guide to setup my project. This project has two variants, English and German, which greet the user in their language (e.g. “Hello World” or “Hallo Welt”).

I pushed the code to github cuinixam/smarty.

Next steps are to add a new platform for ESP32-H2 and Zephyr.

The new platform esp32h2-zephyr will:

  • use the riscv64-zephyr-elf toolchain

  • define two dependencies: zephyr and hal_espressif

To be continued…