espressif / arduino-esp32

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

Arduino version not compatible with ESP-IDF latest #9479

Open 0x5b62656e5d opened 4 months ago

0x5b62656e5d commented 4 months ago

Board

ESP32 Devkit DOIT v1

Device Description

N/A, only connected to laptop via MicroUSB to USB cable

Hardware Configuration

N/A

Version

latest master (checkout manually)

IDE Name

VSCode

Operating System

macOS 14.4.1

Flash frequency

40 Mhz

PSRAM enabled

yes

Upload speed

115200

Description

I can't build or access the configmenu. Trying to do that always give me the same error msg saying the Arduino components can be used between 5.1.0 and 5.1.99 IDF versions, but I'm on ESP-iDF 5.3.0.

Sketch

#include "Arduino.h"

// Also have arduino components included in program

Debug Message

CMake Error at
  /Users/benjamink/esp/esp-idf/components/arduino/CMakeLists.txt:19
  (message):

    Arduino-esp32 can be used with ESP-IDF versions between 5.1.0 and 5.1.99,
    but a newer version is detected: 5.3.0.

Other Steps to Reproduce

No response

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

Jason2866 commented 4 months ago

Yes, as expected. Arduino 3.0.0 use as base IDF 5.1.x

0x5b62656e5d commented 4 months ago

Do I install an older IDF version in vscode then?

lbernstone commented 4 months ago

From current master: ESP-IDF Version : v5.1.2-185-g3662303f31-dirty

0x5b62656e5d commented 4 months ago

I tried installing the 5.1 version and running install.sh I then went into VSCode and added the 5.1 toolchain via ESP-IDF Configure Extension (not the configmenu one) However, when I run build, same message still appears.

SuGlider commented 4 months ago

you must run both, install.sh and export.sh in order to export the correct IDF version.