summaryrefslogtreecommitdiff
path: root/firmware/README.md
blob: b0d2c46330361ade048ff965e5f2689c256d590b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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

```
st-flash --connect-under-reset write build/zephyr/zephyr.bin 0x8000000
```

## Get shell output

```
picocom -b 115200 /dev/ttyACM0
```

## Remove firmware from device

```
st-flash --connect-under-reset erase
```

[1]: https://zephyrproject.org