# iot-contact Firmware This is the firmware for iot-contact. 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 --port /dev/ttyUSB0 --baud 115200 write_flash 0x0 build/zephyr/zephyr.bin ``` ## Get shell output ``` picocom -b 115200 /dev/ttyUSB0 ``` ## Remove firmware from device ``` st-flash --connect-under-reset erase # FIXME ``` [1]: https://zephyrproject.org