2021-11-22 16:13:21 +02:00
|
|
|
How to build PlatformIO based project
|
|
|
|
|
=====================================
|
|
|
|
|
|
2022-03-31 14:23:26 +03:00
|
|
|
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
|
2021-11-22 16:13:21 +02:00
|
|
|
2. Download [development platform with examples](https://github.com/platformio/platform-espressif32/archive/develop.zip)
|
|
|
|
|
3. Extract ZIP archive
|
|
|
|
|
4. Run these commands:
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
# Change directory to example
|
|
|
|
|
$ cd platform-espressif32/examples/espidf-ulp-adc
|
|
|
|
|
|
|
|
|
|
# Build project
|
|
|
|
|
$ pio run
|
|
|
|
|
|
|
|
|
|
# Upload firmware
|
|
|
|
|
$ pio run --target upload
|
|
|
|
|
|
|
|
|
|
# Build specific environment
|
|
|
|
|
$ pio run -e esp32dev
|
|
|
|
|
|
|
|
|
|
# Upload firmware for the specific environment
|
|
|
|
|
$ pio run -e esp32dev --target upload
|
|
|
|
|
|
|
|
|
|
# Clean build files
|
|
|
|
|
$ pio run --target clean
|
|
|
|
|
```
|