Skip to content

Commit 7f52c79

Browse files
authored
Tasmota Arduino Core 3.1.3.250411
1 parent d975a1d commit 7f52c79

File tree

7 files changed

+179
-17
lines changed

7 files changed

+179
-17
lines changed

.github/workflows/examples.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
os: [ubuntu-22.04, windows-2022, macos-14]
15+
os: [ubuntu-latest, windows-latest, macos-15]
1616
example:
1717
- "examples/arduino-blink"
1818
- "examples/arduino-rmt-blink"
@@ -39,19 +39,19 @@ jobs:
3939
- name: Set up Python
4040
uses: actions/setup-python@v5
4141
with:
42-
python-version: "3.11"
42+
python-version: "3.13"
4343
- name: Install dependencies
4444
run: |
4545
python -m pip install --upgrade pip
4646
pip install wheel
47-
pip install -U https://github.com/Jason2866/platformio-core/archive/refs/tags/v6.1.16.tar.gz
47+
pip install -U https://github.com/Jason2866/platformio-core/archive/refs/tags/v6.1.18.zip
4848
pio pkg install --global --platform file://.
4949
- name: git clone Tasmota and add to examples
50-
if: "matrix.example == 'examples/tasmota' && matrix.os != 'windows-2022'"
50+
if: "matrix.example == 'examples/tasmota' && matrix.os != 'windows-latest'"
5151
run: |
52-
git clone -b development --recursive --depth 1 --shallow-submodule https://github.com/arendst/Tasmota.git examples/tasmota
52+
git clone -b development --depth 1 https://github.com/arendst/Tasmota.git examples/tasmota
5353
cp examples/tasmota_platformio_override.ini examples/tasmota/platformio_override.ini
5454
- name: Build examples
55-
if: "matrix.example != 'examples/tasmota' || matrix.os != 'windows-2022'"
55+
if: "matrix.example != 'examples/tasmota' || matrix.os != 'windows-latest'"
5656
run: |
5757
pio run -d ${{ matrix.example }}

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ Espressif Systems is a privately held fabless semiconductor company. They provid
1515
1. [Install PlatformIO](http://platformio.org)
1616
2. Create PlatformIO project and configure a platform option in [platformio.ini](http://docs.platformio.org/page/projectconf.html) file:
1717

18-
# Usage
19-
20-
## Tasmota release Arduino 3.1.3.250302 and IDF 5.3.2.250228
18+
## Tasmota release Arduino 3.1.3.250411 and IDF 5.3.2.250403
2119
Support for the ESP32/ESP32solo1, ESP32C2, ESP32C3, ESP32C6, ESP32S2, ESP32S3, ESP32-H2 and ESP32-P4
2220
```
2321
[platformio]
24-
platform = https://github.com/tasmota/platform-espressif32/releases/download/2025.03.30/platform-espressif32.zip
22+
platform = https://github.com/tasmota/platform-espressif32/releases/download/2025.04.30/platform-espressif32.zip
2523
framework = arduino
2624
```
2725
## Hybrid compile: Build customized Arduino IDF libraries

boards/huidu_hd_wf1.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"build": {
3+
"core": "esp32",
4+
"extra_flags": [
5+
"-DARDUINO_HUIDU_HD_WF1",
6+
"-DARDUINO_USB_MODE=1",
7+
"-DARDUINO_RUNNING_CORE=1",
8+
"-DARDUINO_EVENT_RUNNING_CORE=1",
9+
"-DARDUINO_USB_CDC_ON_BOOT=1"
10+
],
11+
"f_cpu": "240000000L",
12+
"f_flash": "80000000L",
13+
"flash_mode": "dio",
14+
"mcu": "esp32s2",
15+
"variant": "esp32s2"
16+
},
17+
"connectivity": [
18+
"wifi"
19+
],
20+
"debug": {
21+
"openocd_target": "esp32s2.cfg"
22+
},
23+
"frameworks": [
24+
"arduino",
25+
"espidf"
26+
],
27+
"name": "Huidu HD-WF1",
28+
"upload": {
29+
"flash_size": "4MB",
30+
"maximum_ram_size": 327680,
31+
"maximum_size": 4194304,
32+
"require_upload_port": true,
33+
"speed": 460800
34+
},
35+
"url": "https://www.hdwell.com/Product/index46.html",
36+
"vendor": "Huidu Tech",
37+
"information_urls": [
38+
"https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/discussions/667"
39+
]
40+
}

boards/huidu_hd_wf2.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"partitions": "default_8MB.csv"
5+
},
6+
"core": "esp32",
7+
"extra_flags": [
8+
"-DARDUINO_HUIDU_HD_WF2",
9+
"-DARDUINO_USB_MODE=1",
10+
"-DARDUINO_RUNNING_CORE=1",
11+
"-DARDUINO_EVENT_RUNNING_CORE=1",
12+
"-DARDUINO_USB_CDC_ON_BOOT=1"
13+
],
14+
"f_cpu": "240000000L",
15+
"f_flash": "80000000L",
16+
"flash_mode": "dio",
17+
"hwids": [
18+
[
19+
"0x303A",
20+
"0x1001"
21+
]
22+
],
23+
"mcu": "esp32s3",
24+
"variant": "huidu_hd_wf2"
25+
},
26+
"connectivity": [
27+
"bluetooth",
28+
"wifi"
29+
],
30+
"debug": {
31+
"default_tool": "esp-builtin",
32+
"onboard_tools": [
33+
"esp-builtin"
34+
],
35+
"openocd_target": "esp32s3.cfg"
36+
},
37+
"frameworks": [
38+
"arduino",
39+
"espidf"
40+
],
41+
"name": "Huidu HD-WF2",
42+
"upload": {
43+
"flash_size": "8MB",
44+
"maximum_ram_size": 327680,
45+
"maximum_size": 8388608,
46+
"require_upload_port": true,
47+
"speed": 460800
48+
},
49+
"url": "https://www.hdwell.com/Product/index46.html",
50+
"vendor": "Huidu Tech",
51+
"information_urls": [
52+
"https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/discussions/667"
53+
]
54+
}

boards/huidu_hd_wf4.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"build": {
3+
"arduino": {
4+
"partitions": "default_8MB.csv"
5+
},
6+
"core": "esp32",
7+
"extra_flags": [
8+
"-DARDUINO_HUIDU_HD_WF4",
9+
"-DARDUINO_USB_MODE=1",
10+
"-DARDUINO_RUNNING_CORE=1",
11+
"-DARDUINO_EVENT_RUNNING_CORE=1",
12+
"-DARDUINO_USB_CDC_ON_BOOT=1"
13+
],
14+
"f_cpu": "240000000L",
15+
"f_flash": "80000000L",
16+
"flash_mode": "dio",
17+
"hwids": [
18+
[
19+
"0x303A",
20+
"0x1001"
21+
]
22+
],
23+
"mcu": "esp32s3",
24+
"variant": "huidu_hd_wf4"
25+
},
26+
"connectivity": [
27+
"bluetooth",
28+
"wifi"
29+
],
30+
"debug": {
31+
"default_tool": "esp-builtin",
32+
"onboard_tools": [
33+
"esp-builtin"
34+
],
35+
"openocd_target": "esp32s3.cfg"
36+
},
37+
"frameworks": [
38+
"arduino",
39+
"espidf"
40+
],
41+
"name": "Huidu HD-WF4",
42+
"upload": {
43+
"flash_size": "8MB",
44+
"maximum_ram_size": 327680,
45+
"maximum_size": 8388608,
46+
"require_upload_port": true,
47+
"speed": 460800
48+
},
49+
"url": "https://www.hdwell.com/Product/index46.html",
50+
"vendor": "Huidu Tech",
51+
"information_urls": [
52+
"https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/discussions/667"
53+
]
54+
}

builder/main.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,21 @@ def __fetch_fs_size(target, source, env):
305305
PROGSUFFIX=".elf"
306306
)
307307

308+
# Check if lib_archive is set in platformio.ini and set it to False
309+
# if not found. This makes weak defs in framework and libs possible.
310+
def check_lib_archive_exists():
311+
for section in config.sections():
312+
if "lib_archive" in config.options(section):
313+
#print(f"lib_archive in [{section}] found with value: {config.get(section, 'lib_archive')}")
314+
return True
315+
#print("lib_archive was not found in platformio.ini")
316+
return False
317+
318+
if not check_lib_archive_exists():
319+
env_section = "env:" + env["PIOENV"]
320+
config.set(env_section, "lib_archive", "False")
321+
#print(f"lib_archive is set to False in [{env_section}]")
322+
308323
# Allow user to override via pre:script
309324
if env.get("PROGNAME", "program") == "program":
310325
env.Replace(PROGNAME="firmware")

platform.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"homepage": "https://espressif.com/",
66
"license": "Apache-2.0",
77
"keywords": [
8+
"Tasmota",
89
"dev-platform",
9-
"Wi-Fi",
10+
"WiFi",
1011
"Bluetooth",
1112
"Xtensa",
1213
"RISC-V"
@@ -18,7 +19,7 @@
1819
"type": "git",
1920
"url": "https://github.com/tasmota/platform-espressif32.git"
2021
},
21-
"version": "2025.03.30",
22+
"version": "2025.04.30",
2223
"frameworks": {
2324
"arduino": {
2425
"script": "builder/frameworks/arduino.py"
@@ -33,25 +34,25 @@
3334
"type": "framework",
3435
"optional": true,
3536
"owner": "tasmota",
36-
"version": "https://github.com/tasmota/arduino-esp32/releases/download/v3.1.3.250302/framework-arduinoespressif32.zip"
37+
"version": "https://github.com/tasmota/arduino-esp32/releases/download/v3.1.3.250411/framework-arduinoespressif32.zip"
3738
},
3839
"framework-arduino-solo1": {
3940
"type": "framework",
4041
"optional": true,
4142
"owner": "tasmota",
42-
"version": "https://github.com/tasmota/arduino-esp32/releases/download/v3.1.3.250302/framework-arduinoespressif32-solo1.zip"
43+
"version": "https://github.com/tasmota/arduino-esp32/releases/download/v3.1.3.250411/framework-arduinoespressif32-solo1.zip"
4344
},
4445
"framework-arduino-ITEAD": {
4546
"type": "framework",
4647
"optional": true,
4748
"owner": "tasmota",
48-
"version": "https://github.com/tasmota/arduino-esp32/releases/download/v3.1.3.250302/framework-arduinoespressif32-ITEAD.zip"
49+
"version": "https://github.com/tasmota/arduino-esp32/releases/download/v3.1.3.250411/framework-arduinoespressif32-ITEAD.zip"
4950
},
5051
"framework-espidf": {
5152
"type": "framework",
5253
"optional": true,
5354
"owner": "Jason2866",
54-
"version": "https://github.com/tasmota/esp-idf/releases/download/v5.3.2.250228/esp-idf-v5.3.2.zip"
55+
"version": "https://github.com/tasmota/esp-idf/releases/download/v5.3.2.250403/esp-idf-v5.3.2.zip"
5556
},
5657
"toolchain-xtensa-esp-elf": {
5758
"type": "toolchain",
@@ -86,7 +87,7 @@
8687
"tool-esptoolpy": {
8788
"type": "uploader",
8889
"owner": "tasmota",
89-
"version": "https://github.com/tasmota/esptool/releases/download/v4.8.8/esptool.zip"
90+
"version": "https://github.com/tasmota/esptool/releases/download/v4.8.9/esptool.zip"
9091
},
9192
"tool-dfuutil-arduino": {
9293
"type": "uploader",

0 commit comments

Comments
 (0)