Page 4 of 4

Re: Problems while compiling the project Hello_World

Posted: Thu Nov 23, 2023 10:44 am
by pyropunx
I was able to fix this by adding the following lines after the #includes:

Code: Untitled.c Select all

#ifndef CHIP_FEATURE_EMB_FLASH
/* Chip feature flags, used in esp_chip_info_t */
#define CHIP_FEATURE_EMB_FLASH BIT(0) //!< Chip has embedded flash memory
#define CHIP_FEATURE_WIFI_BGN BIT(1) //!< Chip has 2.4GHz WiFi
#define CHIP_FEATURE_BLE BIT(4) //!< Chip has Bluetooth LE
#define CHIP_FEATURE_BT BIT(5) //!< Chip has Bluetooth Classic
#define CHIP_FEATURE_IEEE802154 BIT(6) //!< Chip has IEEE 802.15.4
#define CHIP_FEATURE_EMB_PSRAM BIT(7) //!< Chip has embedded psram
#endif
These macros are defined in esp_chip_info.h - no idea why they're not resolving.

Re: Problems while compiling the project Hello_World

Posted: Sun Jan 21, 2024 4:26 pm
by bfinkel02
I had the same issue when I created a new project from the HelloWorld example. I moved the line "#include "esp_chip_info.h" above the line "#include "freertos/FreeRTOS.h" and this resolved the undefined issue.

Re: Problems while compiling the project Hello_World

Posted: Thu Apr 18, 2024 6:32 am
by hoesolu
Project
Properties
-> C/C++ General
Indexer: Configure Workspace Settings ...

Index source and header files opened in editor

Re: Problems while compiling the project Hello_World

Posted: Fri May 10, 2024 6:34 am
by AstonChaplin
Project
Properties
-> C/C++ General
Indexer: Configure Workspace Settings ...

Index source and header files opened in editor

THANKS