Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 857 Bytes

README.md

File metadata and controls

40 lines (30 loc) · 857 Bytes

LDC on Zephyr examples

Prerequiresites

  • LDC (>=1.32.1)
  • DUB

For Zephyr, read Getting Started Guide

For Qemu on Zephyr, read Run the Application in QEMU

How to build

Example: pthread

QEMU

$ source ~/zephyrproject/.venv/bin/activate
$ west build -b qemu_cortex_m3 pthread
$ west build -t run
(...)
*** Booting Zephyr OS build v4.0.0-4204-gcef0c1af0d8f ***
thread stack: 0x200026e4
Hello World!
QEMU: Terminated

native sim

$ source ~/zephyrproject/.venv/bin/activate
$ west build -b native_sim pthread
$ west build -t run
(...)
*** Booting Zephyr OS build v4.0.0-4204-gcef0c1af0d8f ***
thread stack: 0xf7416218
Hello World!
^C