Espressif IDE and .h files

jpitz31
Posts: 7
Joined: Tue Feb 06, 2024 7:53 pm

Espressif IDE and .h files

Postby jpitz31 » Thu Feb 15, 2024 5:45 am

Hello All, just setup Espressif IDE and to test I built the Hello World app.

When building I get some errors with the #define not being resolved:

chip_info.features & CHIP_FEATURE_WIFI_BGN) ? "WiFi/" : "",
(chip_info.features & CHIP_FEATURE_BT) ? "BT" : "",
(chip_info.features & CHIP_FEATURE_BLE) ? "BLE" : "",
(chip_info.features & CHIP_FEATURE_IEEE802154) ? ", 802.15.4 (Zigbee/Thread)" : "");

In looking at the #include statements I can tell that these #define's are located in the
#include "esp_chip_info.h" header file.
The path for this header file is located in the esp_idf folders

The question is, in Espressif IDE how to you reference the location of these header files?

Do I have to add them to the CmakeLists.txt file with an add statement or is there an include path that has to be set?

I had to switch from Visual Studio Code as I could not get projects to build, way too many issues. So I switched to Espressif IDE, which I am not familiar with.


Thanks

Joe

Nespressif
Posts: 76
Joined: Tue Sep 12, 2017 11:25 am

Re: Espressif IDE and .h files

Postby Nespressif » Thu Feb 15, 2024 11:38 am

Hi, I compile directly from the command line and all that is needed is to set the environment variables.
https://docs.espressif.com/projects/esp ... -variables
Best regards

jpitz31
Posts: 7
Joined: Tue Feb 06, 2024 7:53 pm

Re: Espressif IDE and .h files

Postby jpitz31 » Thu Feb 15, 2024 4:17 pm

Thanks @Nespressif, I will try that.

Joe

Who is online

Users browsing this forum: No registered users and 224 guests