Steward
分享是一種喜悅、更是一種幸福
系統 - Zephyr RTOS - Hello, world!
參考資訊:
https://github.com/zephyrproject-rtos/zephyr
https://docs.zephyrproject.org/latest/develop/getting_started/index.html
$ export ZEPHYR_TOOLCHAIN_VARIANT=host
$ python3 -m venv ~/zephyrproject/.venv
$ source ~/zephyrproject/.venv/bin/activate
$ west init ~/zephyrproject
$ pip install west
$ cd zephyrproject/zephyr/
$ west packages pip --install
$ west build -b native_sim samples/hello_world
$ west build -t run
-- west build: running target run
[2/3] cd /home/steward/zephyrproject/zephyr/build && /home/steward/zephyrproject/zephyr/build/zephyr/zephyr.exe
*** Booting Zephyr OS build v4.3.0-6437-gb70f7d28c623 ***
Hello World! native_sim/native