How do I change the path for the files that my Espressif-IDF project is using in Eclipse?

numbMr
Posts: 3
Joined: Mon Aug 17, 2020 3:37 pm

How do I change the path for the files that my Espressif-IDF project is using in Eclipse?

Postby numbMr » Wed Aug 19, 2020 8:46 pm

Upon creating an Espressif-IDF project in Eclipse, I see the following files are already imported, but they're referencing to a different project's path and not the current one. I initially cloned the seemingly older version from the git repo and now want to use the latest one which I recently cloned, but looks like the Eclipse project still refers to the older path.
```
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
```

How does one go about changing the path such that when I compile, it takes the files from the specified path and not where it's taking from. Does it have to do with `IDF_PATH` and `IDF_TOOLS_PATH`? (can't set them in Eclipse as I don't see C/C++ build section for some reason)

Following is the path the project is using (which is old) that I need to change...

```
-- Adding linker script /Users/eclipse-workspace/Project/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script /Users/STM32CubeIDE/workspace_1.0.2/UdpSender/esp32/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script /Users/STM32CubeIDE/workspace_1.0.2/UdpSender/esp32/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script /Users/STM32CubeIDE/workspace_1.0.2/UdpSender/esp32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /Users/STM32CubeIDE/workspace_1.0.2/UdpSender/esp32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
```

Who is online

Users browsing this forum: No registered users and 81 guests