Problems while compiling the project Hello_World

pyropunx
Posts: 1
Joined: Thu Nov 23, 2023 10:40 am

Re: Problems while compiling the project Hello_World

Postby pyropunx » Thu Nov 23, 2023 10:44 am

I was able to fix this by adding the following lines after the #includes:
  1. #ifndef CHIP_FEATURE_EMB_FLASH
  2. /* Chip feature flags, used in esp_chip_info_t */
  3. #define CHIP_FEATURE_EMB_FLASH      BIT(0)      //!< Chip has embedded flash memory
  4. #define CHIP_FEATURE_WIFI_BGN       BIT(1)      //!< Chip has 2.4GHz WiFi
  5. #define CHIP_FEATURE_BLE            BIT(4)      //!< Chip has Bluetooth LE
  6. #define CHIP_FEATURE_BT             BIT(5)      //!< Chip has Bluetooth Classic
  7. #define CHIP_FEATURE_IEEE802154     BIT(6)      //!< Chip has IEEE 802.15.4
  8. #define CHIP_FEATURE_EMB_PSRAM      BIT(7)      //!< Chip has embedded psram
  9. #endif
These macros are defined in esp_chip_info.h - no idea why they're not resolving.

bfinkel02
Posts: 1
Joined: Sun Jan 21, 2024 4:22 pm

Re: Problems while compiling the project Hello_World

Postby bfinkel02 » Sun Jan 21, 2024 4:26 pm

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.

hoesolu
Posts: 2
Joined: Thu Apr 18, 2024 6:22 am

Re: Problems while compiling the project Hello_World

Postby hoesolu » Thu Apr 18, 2024 6:32 am

Project
Properties
-> C/C++ General
Indexer: Configure Workspace Settings ...

Index source and header files opened in editor

AstonChaplin
Posts: 2
Joined: Fri May 10, 2024 6:33 am

Re: Problems while compiling the project Hello_World

Postby AstonChaplin » Fri May 10, 2024 6:34 am

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

Index source and header files opened in editor

THANKS

Who is online

Users browsing this forum: Bing [Bot] and 228 guests