mkdir -p ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh esp32
. $HOME/esp/esp-idf/export.sh
idf.py build
idf.py flash /dev/ttyusb0 monitor
This is an qualification task for the Omnic inc. Developed for the ESP32 devkit v1 using the esp-idf framework
For example, we would use the home directory.
cd ~
git clone https://github.com/victorrar/omnic_qualification.git
Detailed installation instructions can be found on the official wiki There is some snippets for linux from there:
mkdir -p ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh esp32
Framework installed and now you're ready to go!
ESP-IDF is based on Cmake, so the project can be built in any IDE/tool that supports it. We are recommended to use the bundled idf.py tool
It will point the system on idf.py and exports some other required variables
. $HOME/esp/esp-idf/export.sh
Also, we need to point on the IDF location
export IDF_PATH=~/esp/esp-idf
To configure appliaction parameters you could run idf.py menuconfig
and change paremeters under User configuration
menu. Then save settiong by pressing s
and leave the configuration menu by pressing q
.
Just mention, that Logger tag can't exceed 16 characters.
To determine the flashing port you could run ls /dev/tty*
, then plug-in your ESP32, and repeat ls /dev/tty*
command. Port that just appeared is the port you are looking for.
idf.py build
idf.py flash -p /dev/ttyUSB0
After uploading you can watch app execution by the monitor tool
idf.py monitor -p /dev/ttyUSB0