2020-12-17 19:24:28 +08:00
|
|
|
# An example ESP32 application
|
|
|
|
|
|
|
|
To build this application, follow these steps:
|
|
|
|
|
|
|
|
1. Make sure you have Docker installed
|
|
|
|
2. Clone whole mongoose repository on your machine:
|
|
|
|
```sh
|
|
|
|
git clone --depth 1 https://github.com/cesanta/mongoose.git
|
|
|
|
```
|
|
|
|
3. Start command line or terminal, and go into the example's directory:
|
|
|
|
```sh
|
|
|
|
cd mongoose/examples/esp32
|
|
|
|
```
|
|
|
|
4. Run `make`. This invokes a Docker-based build. A firmware will be built
|
|
|
|
in the `build/` directory:
|
|
|
|
```sh
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
2020-12-25 00:52:12 +08:00
|
|
|
# Flashing built firmware
|
|
|
|
|
|
|
|
If you have a real board to flash to, you can flash a built firmware.
|
|
|
|
First, make sure to have `esptool.py` script installed on your workstation.
|
|
|
|
Then, connect the board to your workstation and run the following command:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
make flash COMPORT=YOUR_USB_PORT
|
|
|
|
```
|