espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.31k stars 7.35k forks source link

Compilation error: 'system_event_t' has not been declared #9714

Closed reltkaine closed 3 months ago

reltkaine commented 3 months ago

Board

wemos lolin esp32 lite

Device Description

wemos lolin esp32 lite

Hardware Configuration

na

Version

v3.0.0

IDE Name

arduino ide 2

Operating System

win10

Flash frequency

40

PSRAM enabled

yes

Upload speed

11520

Description

Compilation error: 'system_event_t' has not been declared

Sketch

esp_err_t event_handler(void* ctx, system_event_t* event) {
  return ESP_OK;
}

Debug Message

na

Other Steps to Reproduce

v2.0.16 works!!!!

I have checked existing issues, online documentation and the Troubleshooting Guide

me-no-dev commented 3 months ago

this is way not enough to help you. Please post complete minimal sketch to see how and where you are using this.

reltkaine commented 3 months ago

cant compile this -->>>> https://github.com/G4lile0/ESP32-WiFi-Hash-Monster

me-no-dev commented 3 months ago

there is something wrong in the environment. Either this sketch or ESP32-Chimera-Core is missing an include to resolve ESP_IDF_VERSION_MAJOR and use the proper code. ESP_IDF_VERSION_MAJOR is 5 in this case and should not go through the system_event_t route