2018-07-29 14:25:04 +00:00
|
|
|
# Readme
|
2020-04-08 17:00:59 +00:00
|
|
|
Author: Jannik Beyerstedt
|
|
|
|
**license:** GNU GPL v3
|
|
|
|
|
2018-07-29 14:25:04 +00:00
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
Prepare toolchain (macOS):
|
|
|
|
```
|
2018-08-01 12:27:10 +00:00
|
|
|
cd ~/JBeyerstedt-Projekte/
|
2018-07-29 14:25:04 +00:00
|
|
|
mkdir ./esp32
|
|
|
|
cd esp32
|
|
|
|
curl https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz -o xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
|
|
|
|
tar -xzf xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
|
|
|
|
rm xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz
|
|
|
|
```
|
|
|
|
|
2018-08-01 12:27:10 +00:00
|
|
|
Prepare toolchain (Debian, Ubuntu) (ubuntu devel vm):
|
|
|
|
```
|
|
|
|
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
|
|
|
|
|
|
|
|
cd ~/Development/
|
|
|
|
mkdir ./esp32
|
|
|
|
cd esp32
|
|
|
|
wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar.gz
|
|
|
|
tar -xzf xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar.gz
|
|
|
|
rm xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar.gz
|
|
|
|
```
|
|
|
|
|
2018-07-29 14:25:04 +00:00
|
|
|
Add to your bash profile, zshrc or other:
|
|
|
|
```
|
|
|
|
export PATH=$PATH:$HOME/JBeyerstedt-Projekte/esp32/xtensa-esp32-elf/bin
|
|
|
|
export IDF_PATH = $HOME/JBeyerstedt-Projekte/esp32/esp-idf
|
|
|
|
```
|
2018-08-01 12:27:10 +00:00
|
|
|
or for ubuntu devel vm:
|
|
|
|
```
|
|
|
|
export PATH=$PATH:$HOME/Development/esp32/xtensa-esp32-elf/bin
|
|
|
|
export IDF_PATH = $HOME/Development/esp32/esp-idf
|
|
|
|
```
|
2018-07-29 14:25:04 +00:00
|
|
|
|
2018-08-01 12:27:10 +00:00
|
|
|
Install esp-idf:
|
2018-07-29 14:25:04 +00:00
|
|
|
```
|
|
|
|
git clone --recursive https://github.com/espressif/esp-idf.git
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Checkout this project and configure arduino-es32 with esp-idf:
|
|
|
|
```
|
|
|
|
TODO!!
|
|
|
|
|
|
|
|
mkdir -p components && \
|
|
|
|
cd components && \
|
|
|
|
git clone https://github.com/espressif/arduino-esp32.git arduino && \
|
|
|
|
cd arduino && \
|
|
|
|
git submodule update --init --recursive && \
|
|
|
|
cd ../..
|
|
|
|
```
|
|
|
|
|
|
|
|
Configure `make menuconfig`:
|
|
|
|
* under "Arduino Configuration":
|
|
|
|
* "Autostart Arduino setup and loop on boot": off
|
|
|
|
* "Disable mutex locks for HAL": off
|
|
|
|
* under "Serial flasher config":
|
|
|
|
* change flash size to 4 MB
|
|
|
|
* optionally set your serial port
|
|
|
|
* under "Component config" -> "ESP32-secific":
|
|
|
|
* set CPU frequency to 80 MHz
|
|
|
|
|
|
|
|
Make and flash:
|
|
|
|
```
|
|
|
|
make all
|
|
|
|
make flash
|
|
|
|
```
|
|
|
|
You would probably have to adapt the `UPLOAD_PORT` in the `Makefile` or set it via an environment variable.
|