Smarty - Matter on ESP32 with Zephyr - Part 2#
Disclaimer
I am an engineer who knows his sh*t and prioritizes learning and innovation to getting certifications for tinkering with hardware. To follow along with the hardware portions of this guide, you should either:
Be an engineer who also knows their sh*t.
Accept that you are responsible for your own components and safety.
Or just sit back and enjoy the read.
Reading is still learning, and you are more than welcome to just follow the code without touching a single wire. However, if you do decide to dive into the hardware and things go sideways, whether it’s a fried ESP32, a tripped breaker, or a “spicy” encounter with mains power, I am not to be held accountable. I take no responsibility for your hardware, your home, or yourself. You are the captain of your own (hopefully well-insulated) ship.
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
zephyrandhal_espressifthe toolchain
riscv64-zephyr-elfthe platform
esp32h2_devkitma
hello_worldcomponent
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-elftoolchaindefine two dependencies:
zephyrandhal_espressif
To be continued…