Commit a4e610c3 authored by Jozef Kralik's avatar Jozef Kralik

update README.md

parent 97132615
This repository contains ESP32 simulator for linux.
ESP32
# How does it work?
ESP-IDF contains small amount of hardware specific code, FreeRTOS and few
multi-platform libraries.
# Running
## Using ubuntu
# Build
## ubuntu
```
sudo apt install -y git wget flex bison gperf python3 python3-pip python3-setuptools python3-serial python3-click python3-cryptography python3-future python3-pyparsing python3-pyelftools cmake ninja-build ccache libffi-dev libssl-dev libusb-1.0-0
mkdir esp
cd esp
git clone -b release/v4.1 --recursive https://github.com/espressif/esp-idf.git
git clone --recursive https://github.com/espressif/esp-idf.git
./esp-idf/install.sh
. ./esp-idf/export.sh
idf.py set-target esp32
idf.py menuconfig // set wifi
idf.py build
idf.py -p (PORT) flash monitor
```
## Inside docker
## windows
- [install] (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/windows-setup.html)
- Please select master repository
- Install CMake
- Set PATH env to cmake, python
- Run esp-idf commandline
- cd iotivity-lite/port/esp32
- ```
idf.py set-target esp32
idf.py menuconfig // set wifi
idf.py build
idf.py -p (PORT) flash monitor
```
```
docker build -t esp32-simulator .
docker run --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun --name esp32-simulator -v `pwd`:/root/simulator -d esp32-simulator
docker exec -i -t esp32-simulator bash
cd ~/simulator/example
idf.build
./build/example
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment