Re: Problems while compiling the project Hello_World
Posted: Thu Nov 23, 2023 10:44 am
I was able to fix this by adding the following lines after the #includes:
These macros are defined in esp_chip_info.h - no idea why they're not resolving.
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