ESP32 - create your own project

1. Refer to the example method in "ESP32 - Development Environment Building ESP-IDF+VSCODE" to create a project, or directly copy the original project folder to the target folder (and then use VSCODE to open the corresponding directory).

2. Modify the project name of the Makefile file to "test_io" as shown in the figure below.

3. Modify the item in the CMakeLists.txt file as "test_io" as shown in the figure below (only if the "build" directory is modified here will the bin and other files named test_io be generated)

4. If you add a new header file and source file through VSCODE, and modify the CMakeLists.txt file in the corresponding directory to add the newly added source file name, clean the project and recompile (otherwise an exception will be prompted).

Guess you like

Origin blog.csdn.net/tsliuch/article/details/125295568