Skip to content

Commit

Permalink
Merge pull request #104 from Jason2866/Arduino/IDF5
Browse files Browse the repository at this point in the history
Platform 2023.12.11
  • Loading branch information
Jason2866 authored Dec 22, 2023
2 parents 5426a6e + 2d80dc4 commit eef3566
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 125 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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:

### Development build Arduino 3.0.0-alpha3 and IDF 5.1.2
Support for the ESP32/ESP32solo1, ESP32C2, ESP32C3, ESP32S2, ESP32S3 and ESP32-H2
Support for the ESP32/ESP32solo1, ESP32C2, ESP32C3, ESP32C6, ESP32S2, ESP32S3 and ESP32-H2
```
[platformio]
platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.12.10/platform-espressif32.zip
Expand Down
3 changes: 2 additions & 1 deletion boards/lolin_s2_mini.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"extra_flags": [
"-DARDUINO_LOLIN_S2_MINI",
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1"
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_USB_MODE=0"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
10 changes: 5 additions & 5 deletions boards/lolin_s3.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
},
"core": "esp32",
"extra_flags": [
"-DBOARD_HAS_PSRAM",
"-DARDUINO_LOLIN_S3",
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=1"
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down Expand Up @@ -39,9 +41,7 @@
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 327680,
"maximum_size": 16777216,
"use_1200bps_touch": true,
"wait_for_upload_port": true,
"maximum_size": 16777216,
"require_upload_port": true,
"speed": 460800
},
Expand Down
2 changes: 1 addition & 1 deletion builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ def _get_installed_pip_packages(python_exe_path):
"future": ">=0.18.3",
"pyparsing": "~=3.0.9" if IDF5 else ">=2.0.3,<2.4.0",
"kconfiglib": "~=14.1.0" if IDF5 else "~=13.7.1",
"idf-component-manager": "~=1.2.3" if IDF5 else "~=1.0",
"idf-component-manager": "~=1.4.1" if IDF5 else "~=1.0",
"esp-idf-kconfig": "~=1.2.0"
}

Expand Down
1 change: 0 additions & 1 deletion examples/espidf-arduino-blink/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
list(APPEND EXTRA_COMPONENT_DIRS managed_components)
project(espidf-arduino-blink)
1 change: 0 additions & 1 deletion examples/espidf-arduino-blink/managed_components/.keep.me

This file was deleted.

50 changes: 0 additions & 50 deletions examples/espidf-arduino-blink/src/idf_component.yml

This file was deleted.

3 changes: 1 addition & 2 deletions examples/espidf-arduino-littlefs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
list(APPEND EXTRA_COMPONENT_DIRS managed_components)
project(espidf-arduino-littlefs)
project(espidf-arduino-littlefs)
Empty file.
50 changes: 0 additions & 50 deletions examples/espidf-arduino-littlefs/src/idf_component.yml

This file was deleted.

13 changes: 7 additions & 6 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": "git",
"url": "https://github.com/tasmota/platform-espressif32.git"
},
"version": "2023.12.10",
"version": "2023.12.11",
"frameworks": {
"arduino": {
"script": "builder/frameworks/arduino.py"
Expand All @@ -33,25 +33,25 @@
"type": "framework",
"optional": true,
"owner": "tasmota",
"version": "https://github.com/tasmota/arduino-esp32/releases/download/3.0.0.231205/framework-arduinoespressif32.zip"
"version": "https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1879/framework-arduinoespressif32-release_v5.1-72811e9.zip"
},
"framework-arduino-solo1": {
"type": "framework",
"optional": true,
"owner": "tasmota",
"version": "https://github.com/tasmota/arduino-esp32/releases/download/3.0.0.231205/framework-arduinoespressif32-solo1.zip"
"version": "https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1856/framework-arduinoespressif32-solo1-release_v5.1-7f2f56a.zip"
},
"framework-arduino-ITEAD": {
"type": "framework",
"optional": true,
"owner": "tasmota",
"version": "https://github.com/tasmota/arduino-esp32/releases/download/3.0.0.231205/framework-arduinoespressif32-ITEAD.zip"
"version": "https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1855/framework-arduinoespressif32-ITEAD-release_v5.1-7f2f56a.zip"
},
"framework-espidf": {
"type": "framework",
"optional": true,
"owner": "platformio",
"version": "https://github.com/tasmota/esp-idf/releases/download/v5.1.2.231118/esp-idf-v5.1.2.zip"
"version": "https://github.com/tasmota/esp-idf/releases/download/v5.1.2.231214/esp-idf-v5.1.2.zip"
},
"toolchain-xtensa-esp32": {
"type": "toolchain",
Expand Down Expand Up @@ -98,7 +98,7 @@
"tool-esptoolpy": {
"type": "uploader",
"owner": "tasmota",
"version": "https://github.com/Jason2866/esptool/releases/download/v4.7.0-dev4/esptool-4.7.0.zip"
"version": "https://github.com/tasmota/esptool/releases/download/v4.7.0/esptool-4.7.0.zip"
},
"tool-dfuutil-arduino": {
"type": "uploader",
Expand All @@ -114,6 +114,7 @@
},
"tool-mkspiffs": {
"type": "uploader",
"optional": true,
"owner": "platformio",
"version": "~2.230.0"
},
Expand Down
27 changes: 20 additions & 7 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def configure_default_packages(self, variables, targets):
self.packages["framework-arduinoespressif32"]["optional"] = False

if "buildfs" in targets:
filesystem = variables.get("board_build.filesystem", "spiffs")
filesystem = variables.get("board_build.filesystem", "littlefs")
if filesystem == "littlefs":
self.packages["tool-mklittlefs"]["optional"] = False
elif filesystem == "fatfs":
Expand All @@ -58,6 +58,18 @@ def configure_default_packages(self, variables, targets):
if os.path.isdir("ulp"):
self.packages["toolchain-esp32ulp"]["optional"] = False

if "downloadfs" in targets:
filesystem = variables.get("board_build.filesystem", "littlefs")
if filesystem == "littlefs":
# Use Tasmota mklittlefs v4.0.0 to unpack, older version is incompatible
self.packages["tool-mklittlefs"]["version"] = "~4.0.0"

# Currently only Arduino Nano ESP32 uses the dfuutil tool as uploader
if variables.get("board") == "arduino_nano_esp32":
self.packages["tool-dfuutil-arduino"]["optional"] = False
else:
del self.packages["tool-dfuutil-arduino"]

# Starting from v12, Espressif's toolchains are shipped without
# bundled GDB. Instead, it's distributed as separate packages for Xtensa
# and RISC-V targets.
Expand All @@ -69,12 +81,13 @@ def configure_default_packages(self, variables, targets):
self.packages[gdb_package]["version"] = "~11.2.0"

# Common packages for IDF and mixed Arduino+IDF projects
self.packages["toolchain-esp32ulp"]["optional"] = False
for p in self.packages:
if p in ("tool-cmake", "tool-ninja"):
self.packages[p]["optional"] = False
elif p in ("tool-mconf", "tool-idf") and IS_WINDOWS:
self.packages[p]["optional"] = False
if "espidf" in frameworks:
self.packages["toolchain-esp32ulp"]["optional"] = False
for p in self.packages:
if p in ("tool-cmake", "tool-ninja"):
self.packages[p]["optional"] = False
elif p in ("tool-mconf", "tool-idf") and IS_WINDOWS:
self.packages[p]["optional"] = False

for available_mcu in ("esp32", "esp32s2", "esp32s3"):
if available_mcu == mcu:
Expand Down

0 comments on commit eef3566

Please sign in to comment.