Simple OTA - does not work in the project
Posted: Mon Aug 05, 2024 7:24 pm
Hello everyone.
Official example "simple_ota_example" (\Espressif\frameworks\esp-idf-v5.0\examples\system\ota) it compiles and runs without error.
I use Espressif-IDE Version: 3.0.0, and ESP-IDF v5.0.
When I copy the c file "simple_ota_example.c" into my own project that is being compiled, errors occur inside the file "simple_ota_example.c".
First error: fatal error: esp_ota_ops.h: No such file or directory
Header can be opened from Espressif-IDE (see picture)
In "CMakeLists.txt" of the project was added "set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)"
I don't know why it is not possible to compile? I'm asking for help.
Thank you
Official example "simple_ota_example" (\Espressif\frameworks\esp-idf-v5.0\examples\system\ota) it compiles and runs without error.
I use Espressif-IDE Version: 3.0.0, and ESP-IDF v5.0.
When I copy the c file "simple_ota_example.c" into my own project that is being compiled, errors occur inside the file "simple_ota_example.c".
First error: fatal error: esp_ota_ops.h: No such file or directory
Header can be opened from Espressif-IDE (see picture)
In "CMakeLists.txt" of the project was added "set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)"
I don't know why it is not possible to compile? I'm asking for help.
Thank you