I have been using rust as embedded language for cortex M MCU for a while.
While I like rust, embedded dev in rust has some friction, and a few things are
a bit hard to do. Especially C interop and direct memory manipulation.
I decided to give zig a try, and while it is still in very early stage compared
to rust, I was able to get a working hello world program quite quickly. And I
was able to get RTT working with the SEGGER C library.
In this post, I'll share what I learned and a few gotchas.
TLDR: The repo is here: https://github.com/kuon/zig-stm32test
Read more