Simple OTA - does not work in the project

Stipa88
Posts: 20
Joined: Mon May 09, 2022 12:26 pm

Simple OTA - does not work in the project

Postby Stipa88 » 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) Image

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
Attachments
Screenshot 2024-08-05 212026.png
Screenshot 2024-08-05 212026.png (28.76 KiB) Viewed 552 times

Who is online

Users browsing this forum: No registered users and 88 guests