Compiling, Linking, Flashing#
ESP32’s idf.py
#
Set up the ESP32 environment
First, make sure the ESP32 environment is set up by running the following command (after installation):
get_idf
Build the project
To compile your ESP32 project, run:
idf.py build
Flash the project
Once the project is built, you can flash it to the ESP32 by running:
idf.py flash
Monitor the serial output
To monitor the serial output from the ESP32 after flashing, use the following command:
idf.py monitor
Clean the build directory
If you need to clean up the build directory before building again, use:
idf.py clean
Full clean of the build directory
If you want to completely remove the entire build directory (for a more thorough clean), run:
idf.py fullclean
Check ROM usage (flash memory)
After building your project, you can check how much of the ESP32’s flash memory is used by running:
idf.py size
Sphinx#
Build the Documentation
To build the documentation using Sphinx, run:
make html
View Locally
You can view the generated documentation locally by running a simple HTTP server:
python -m http.server 8080 --directory docs/html