mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
51 lines
762 B
Markdown
51 lines
762 B
Markdown
# firmware
|
|
|
|
## Install Dependencies
|
|
### MacOS
|
|
Install xcode command line tools (if you do not already have them)
|
|
```
|
|
xcode-select --install
|
|
```
|
|
|
|
Install project & ESP-IDF dependencies
|
|
```
|
|
brew install cmake ninja dfu-util
|
|
brew install python3
|
|
```
|
|
|
|
Setup ESP-IDF
|
|
```
|
|
mkdir -p ~/esp
|
|
cd ~/esp
|
|
git clone --recursive https://github.com/espressif/esp-idf.git
|
|
cd ~/esp/isp-idf
|
|
./install.sh esp32
|
|
```
|
|
|
|
## Running
|
|
The board is flashed via UART. A USB to UART adapter is provided as part of the devboard.
|
|
|
|
### MacOS
|
|
Export environment variables
|
|
```
|
|
cd ~/esp/esp-idf && . ./export.sh
|
|
```
|
|
|
|
Flashing via UART
|
|
```
|
|
idf.py -p PORT [-b BAUD] flash
|
|
```
|
|
|
|
## Connect to serial
|
|
### MacOS
|
|
Find the port
|
|
```
|
|
ls /dev/cu.*
|
|
```
|
|
|
|
View the output
|
|
```
|
|
screen /dev/cu.device_name [BAUD]
|
|
```
|
|
|