README.md raw
 1# Zephyr RTOS ESP32 blinky
 2
 3## Hardware
 4
 5- [DFR0478 FireBeetle ESP32](https://si.farnell.com/dfrobot/dfr0478/firebeetle-esp32-iot-mcu-arduino/dp/3517881?CMP=e-email-sys-orderack-GLB)
 6
 7## System requirements
 8
 9Other distributions will require different packages.
10
11```sh
12sudo xbps-install -S gcc ninja cmake make python3 python3-devel python3-pip
13sudo xbps-install -S gcc-multilib glibc-devel-32bit libgcc-devel-32bit
14```
15
16## Install toolchain for real hardware
17
18```sh
19mkdir ~/Toolchain
20cd ~/Toolchain
21wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v1.0.1/zephyr-sdk-1.0.1_linux-x86_64_gnu.tar.xz
22tar xvf zephyr-sdk-1.0.1_linux-x86_64_gnu.tar.xz
23cd zephyr-sdk-1.0.1
24./setup.sh
25```
26
27## Getting started with a project
28
29```sh
30# Clone
31git clone git@github.com:mitjafelicijan/zephyr-esp32-blinky.git
32cd zephyr-esp32-blinky
33
34# Environment
35python -m venv .venv
36source .venv/bin/activate
37pip install --upgrade pip
38pip install west
39west packages pip --install
40
41# Fetch requirements and tooling
42west init
43west update
44west zephyr-export
45
46# Go to application directory
47cd apps/blinky
48
49# Compile and run on host
50make host-build
51make host-run
52
53# Compile and flash ESP32 board
54make esp-build
55make esp-flash
56
57# Serial monitor of ESP32
58make esp-monitor
59```