From d732a84ababe382f066c613c85142b8403c9e423 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 20 Jan 2025 21:22:55 +0100 Subject: fw: Add README.md --- fw/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 fw/README.md diff --git a/fw/README.md b/fw/README.md new file mode 100644 index 0000000..f58008f --- /dev/null +++ b/fw/README.md @@ -0,0 +1,33 @@ +# soundbox firmware + +This is the firmware for soundbox. It is based on the Zephyr real time +operating system [1]. + +## Setup Python environment + +``` +python -m venv zephyrproject/.venv +source zephyrproject/.venv/bin/activate +pip install -r zephyrproject/requirements.txt +``` + +## Build + +``` +cmake -Bbuild -GNinja +ninja -C build +``` + +## Flash + +``` +esptool.py --chip auto write_flash 0x1000 build/zephyr/zephyr.bin +``` + +## Get shell output + +``` +picocom -b 115200 /dev/ttyUSB0 +``` + +[1]: https://zephyrproject.org -- cgit v1.2.3-70-g09d2