Espressif IDE and .h files
Posted: 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
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