User Tools

Site Tools


esp:esp32:esp-idf-info:commands

This is an old revision of the document!


Usefull Commands


Common commands

idf.py --version
idf.py help
idf.py fullclean
idf.py menuconfig
idf.py build

Copy/clone/rename project

  1. Rename PROJECT_NAME in Makefile
  2. Update PROJECT_VER in CMakeLists.txt
  3. Update project( ##NAME## ) in CMakeLists.txt

Compiler defines

To set specific compile time defines (e.g. in case of compiling a project for different architectures esp32, esp32-c3, etc.) do the following:

in the c source files include conditional statements

#ifdef __GPIO_ESP_C3_MINI
   .....
#endif

In project/main/CMakelists.txt add at the bottom:

add_compile_definitions( __GPIO_ESP_C3_MINI=1)

SoftAP IPv6 connectivity with android phone

ip -6 addr add fd01:2345:6789:0:bbbb:cccc:0:2/64 dev wlan0
esp/esp32/esp-idf-info/commands.1739006736.txt.gz ยท Last modified: by oscar