Note:
You need to do Step 6 every time you open a new shell, or you can put it inside your .bashrc file.
2.1.3. Building Firmware
1. Create a directory to store a new project.
mkdir ~/Workspace
cd ~/Workspace
2. Download the latest ESP32 RTOS SDK.
git clone https://github.com/espressif/ESP32_RTOS_SDK.git
Notes:
For the package components of the SDK, refer to "1.3 Package Components".
1.
You can build customized project according the ESP32_RTOS_SDK/examples/project_template.
2.
3. Create a directory to store the.bin files compiled.
mkdir –p ~/Workspace/ESP32_BIN
4. Set the PATHs variable to point to the SDK and BIN files.
export SDK_PATH=~/Workspace/ESP32_RTOS_SDK
export BIN_PATH=~/Workspace/ESP32_BIN
⚠ Warning:
Make sure you set the correct paths, or it will occur a compile error.
5. Start to compile files.
cd ~/Workspace/project_template
make clean
make
Note:
You need to do Step 3 every time you open a new shell, or you can put it inside your .bashrc file.
Espressif
2. Getting Started
2015.12
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?