Skip to content

tangybbq/non-c-on-zephyr

Repository files navigation

Using Non-C languages with Zephyr

This repository contains example programs for my presentation on using Non-C languages with Zephyr. There are numbered directories, named after each of the examples.

All of the examples, beyond the initial per-language "Hello World" programs assume that the Zephyr build environment has been setup. There is a shell.nix in each directory that can be used to recreate the environments that I use for the builds. Because of conflicts with gcc and clang, some of the setups are a little complicated, as we can't use the gcc-based Zephyr SDK.

  • 01-rust-hello Hello world example in Rust. Run with cargo run

  • 02-zig-hello Hello world example in Zig. Run with zig run hello.zig

  • 03-ada-hello Hello world example in Ada. Run with gnatmake hello, followed by ./hello.

  • 04-rust-zephyr-hello Hello world example, with main in Rust, running in Zephyr Run with:

    • west build -b mps2_an521
    • west build -t run
  • 05-zig-zephyr-hello Hello world example, with main in Zig, running in Zephyr Run with:

    • west build -t mps2_an521
    • west build -t run

About

Code from the Non-C Languages on Zephyr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published