Idf.py should be run in an ESP-IDF “project” directory, ie one containing a CMakeLists.txt file. The getting started guide contains a brief introduction to how to set up idf.py to configure, build, and flash projects. It manages the following tools:ĬMake, which configures the project to be builtĪ command line build tool (either Ninja build or GNU Make) The idf.py command line tool provides a front-end for easily managing your project builds. The toolchain should be installed in the system command line PATH. The toolchain for compilation is not part of the project. This allows the IDF framework to be decoupled from your project. Instead it is standalone, and linked to the project via the IDF_PATH environment variable which holds the path of the esp-idf directory. At the moment, ESP-IDF supports only one target, esp32. “Target” is the hardware for which an application is built. Some are provided by ESP-IDF itself, others may be sourced from other places. “components” are modular pieces of standalone code which are compiled into static libraries (.a files) and linked into an app. A single project will usually build two apps - a “project app” (the main executable, ie your custom firmware) and a “bootloader app” (the initial bootloader program which launches the project app). A single project contains exactly one project configuration.Īn “app” is an executable which is built by ESP-IDF. This configuration file is modified via idf.py menuconfig to customise the configuration of the project. “Project configuration” is held in a single file called sdkconfig in the root directory of the project. Using Third-Party CMake Projects with ComponentsĪ “project” is a directory that contains all the files and configuration to build a single “app” (executable), as well as additional supporting elements such as a partition table, data/filesystem partitions, and a bootloader.Fully Overriding The Component Build Process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |