From ba61428c36576399571598c097b413e93369db45 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 7 May 2023 20:46:44 +0200 Subject: [PATCH] 2023.05.00 Core 2.0.9 * Process internal Arduino libraries in mixed Arduino/IDF projects * 2023.05.00 Core 2.0.9 --- README.md | 4 ++-- builder/frameworks/espidf.py | 6 +++++- platform.json | 13 +++++-------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 05858d32c..9782ea05d 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ Espressif Systems is a privately held fabless semiconductor company. They provid 2. Create PlatformIO project and configure a platform option in [platformio.ini](http://docs.platformio.org/page/projectconf.html) file: ### Stable Release supporting Arduino and IDF 4.4.4 -based on Arduino Core 2.0.8 and can be used with Platformio for the ESP32/ESP32solo1, ESP32C3, ESP32S2 and ESP32S3 +based on Arduino Core 2.0.9 and can be used with Platformio for the ESP32/ESP32solo1, ESP32C3, ESP32S2 and ESP32S3 ``` [platformio] -platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.04.00/platform-espressif32.zip +platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.05.00/platform-espressif32.zip framework = arduino ``` to use the ESP32 Solo1 Arduino framework add in your env diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index 39876573f..e7d92a649 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -84,7 +84,7 @@ PROJECT_DIR = env.subst("$PROJECT_DIR") PROJECT_SRC_DIR = env.subst("$PROJECT_SRC_DIR") CMAKE_API_REPLY_PATH = os.path.join(".cmake", "api", "v1", "reply") -SDKCONFIG_PATH = os.path.expandvars(board.get( +SDKCONFIG_PATH = os.path.expandvars(board.get( "build.esp-idf.sdkconfig_path", os.path.join(PROJECT_DIR, "sdkconfig.%s" % env.subst("$PIOENV")), )) @@ -1277,6 +1277,10 @@ def _create_venv(venv_dir): "the `variant` field! The default `esp32` variant will be used." ) extra_components.append(ARDUINO_FRAMEWORK_DIR) + # Add path to internal Arduino libraries so that the LDF will be able to find them + env.Append( + LIBSOURCE_DIRS=[os.path.join(ARDUINO_FRAMEWORK_DIR, "libraries")] + ) print("Reading CMake configuration...") project_codemodel = get_cmake_code_model( diff --git a/platform.json b/platform.json index 3855b6c1f..a5fa78add 100644 --- a/platform.json +++ b/platform.json @@ -18,17 +18,14 @@ "type": "git", "url": "https://github.com/tasmota/platform-espressif32.git" }, - "version": "2023.04.02", + "version": "2023.05.00", "frameworks": { "arduino": { "script": "builder/frameworks/arduino.py" }, "espidf": { "package": "framework-espidf", - "script": "builder/frameworks/espidf.py", - "description": "ESP-IDF is the official development framework for the ESP32 and ESP32-S Series SoCs.", - "homepage": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32/", - "title": "Espressif IoT Development Framework" + "script": "builder/frameworks/espidf.py" } }, "packages": { @@ -36,19 +33,19 @@ "type": "framework", "optional": true, "owner": "tasmota", - "version": "https://github.com/tasmota/arduino-esp32/releases/download/2.0.8/framework-arduinoespressif32.zip" + "version": "https://github.com/tasmota/arduino-esp32/releases/download/2.0.9/framework-arduinoespressif32.zip" }, "framework-arduino-solo1": { "type": "framework", "optional": true, "owner": "tasmota", - "version": "https://github.com/tasmota/arduino-esp32/releases/download/2.0.8/framework-arduinoespressif32-solo1.zip" + "version": "https://github.com/tasmota/arduino-esp32/releases/download/2.0.9/framework-arduinoespressif32-solo1.zip" }, "framework-arduino-ITEAD": { "type": "framework", "optional": true, "owner": "tasmota", - "version": "https://github.com/tasmota/arduino-esp32/releases/download/2.0.8/framework-arduinoespressif32-ITEAD.zip" + "version": "https://github.com/tasmota/arduino-esp32/releases/download/2.0.9/framework-arduinoespressif32-ITEAD.zip" }, "framework-espidf": { "type": "framework",