Skip to content

Commit 50ec2d9

Browse files
authored
Merge branch 'develop_33' into devel33_refac
2 parents be1837b + 74fe91d commit 50ec2d9

File tree

9 files changed

+61
-19
lines changed

9 files changed

+61
-19
lines changed

boards/esp32-c5-devkitc-1.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"build": {
3+
"core": "esp32",
4+
"f_cpu": "240000000L",
5+
"f_flash": "80000000L",
6+
"flash_mode": "qio",
7+
"mcu": "esp32c5",
8+
"variant": "esp32c5"
9+
},
10+
"connectivity": [
11+
"bluetooth",
12+
"wifi"
13+
],
14+
"debug": {
15+
"openocd_target": "esp32c5.cfg"
16+
},
17+
"frameworks": [
18+
"arduino",
19+
"espidf"
20+
],
21+
"name": "Espressif ESP32-C5-DevKitC-1 4MB no PSRAM",
22+
"upload": {
23+
"flash_size": "4MB",
24+
"maximum_ram_size": 327680,
25+
"maximum_size": 4194304,
26+
"require_upload_port": true,
27+
"speed": 460800
28+
},
29+
"url": "https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32c5/esp32-c5-devkitc-1/user_guide.html",
30+
"vendor": "Espressif"
31+
}

builder/frameworks/_embed_files.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ def transform_to_asm(target, source, env):
110110
" ".join(
111111
[
112112
"riscv32-esp-elf-objcopy"
113-
if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2","esp32p4")
113+
if mcu in ("esp32c2","esp32c3","esp32c5","esp32c6","esp32h2","esp32p4")
114114
else "xtensa-%s-elf-objcopy" % mcu,
115115
"--input-target",
116116
"binary",
117117
"--output-target",
118-
"elf32-littleriscv" if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2","esp32p4") else "elf32-xtensa-le",
118+
"elf32-littleriscv" if mcu in ("esp32c2","esp32c3","esp32c5","esp32c6","esp32h2","esp32p4") else "elf32-xtensa-le",
119119
"--binary-architecture",
120-
"riscv" if mcu in ("esp32c2","esp32c3","esp32c6","esp32h2","esp32p4") else "xtensa",
120+
"riscv" if mcu in ("esp32c2","esp32c3","esp32c5","esp32c6","esp32h2","esp32p4") else "xtensa",
121121
"--rename-section",
122122
".data=.rodata.embedded",
123123
"$SOURCE",

builder/frameworks/espidf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ def _skip_prj_source_files(node):
19781978
(
19791979
board.get(
19801980
"upload.bootloader_offset",
1981-
"0x1000" if mcu in ["esp32", "esp32s2"] else ("0x2000" if mcu in ["esp32p4"] else "0x0"),
1981+
"0x1000" if mcu in ["esp32", "esp32s2"] else ("0x2000" if mcu in ["esp32c5", "esp32p4"] else "0x0"),
19821982
),
19831983
os.path.join("$BUILD_DIR", "bootloader.bin"),
19841984
),

builder/frameworks/ulp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def prepare_ulp_env_vars(env):
3737

3838
toolchain_path = platform.get_package_dir(
3939
"toolchain-xtensa-esp-elf"
40-
if idf_variant not in ("esp32c6", "esp32p4")
40+
if idf_variant not in ("esp32c5","esp32c6", "esp32p4")
4141
else "toolchain-riscv32-esp"
4242
)
4343

builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def __fetch_fs_size(target, source, env):
235235
mcu = board.get("build.mcu", "esp32")
236236
toolchain_arch = "xtensa-%s" % mcu
237237
filesystem = board.get("build.filesystem", "spiffs")
238-
if mcu in ("esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4"):
238+
if mcu in ("esp32c2", "esp32c3", "esp32c5", "esp32c6", "esp32h2", "esp32p4"):
239239
toolchain_arch = "riscv32-esp"
240240

241241
if "INTEGRATION_EXTRA_DATA" not in env:
@@ -256,7 +256,7 @@ def __fetch_fs_size(target, source, env):
256256
GDB=join(
257257
platform.get_package_dir(
258258
"tool-riscv32-esp-elf-gdb"
259-
if mcu in ("esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4")
259+
if mcu in ("esp32c2", "esp32c3", "esp32c5", "esp32c6", "esp32h2", "esp32p4")
260260
else "tool-xtensa-esp-elf-gdb"
261261
)
262262
or "",

examples/arduino-blink/platformio.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ custom_component_remove = espressif/esp_hosted
4343
espressif/esp_diagnostics
4444
espressif/esp_rainmaker
4545
espressif/rmaker_common
46-
custom_component_add =
47-
espressif/cmake_utilities @ 0.*
46+
custom_component_add = espressif/cmake_utilities @ 0.*
4847

4948
[env:esp32-s3-arduino_nano_esp32]
5049
platform = espressif32

examples/arduino-rmt-blink/platformio.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ board = esp32-c3-devkitm-1
1919
build_flags = -DBUILTIN_RGBLED_PIN=8
2020
-DNR_OF_LEDS=1
2121

22+
[env:esp32-c5]
23+
platform = espressif32
24+
framework = arduino
25+
board = esp32-c5-devkitc-1
26+
build_flags = -DBUILTIN_RGBLED_PIN=27
27+
-DNR_OF_LEDS=1
28+
2229
[env:esp32-c6]
2330
platform = espressif32
2431
framework = arduino

platform.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "https://github.com/pioarduino/platform-espressif32.git"
2020
},
21-
"version": "54.03.20+develop",
21+
"version": "55.03.30+develop",
2222
"frameworks": {
2323
"arduino": {
2424
"script": "builder/frameworks/arduino.py"
@@ -33,7 +33,7 @@
3333
"type": "framework",
3434
"optional": true,
3535
"owner": "espressif",
36-
"version": "https://github.com/espressif/arduino-esp32/archive/master.zip"
36+
"version": "https://github.com/espressif/arduino-esp32/archive/release/v3.3.x.zip"
3737
},
3838
"framework-arduinoespressif32-libs": {
3939
"type": "framework",
@@ -45,13 +45,13 @@
4545
"type": "framework",
4646
"optional": true,
4747
"owner": "espressif",
48-
"version": "https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/c2_arduino_compile_skeleton.zip"
48+
"version": "https://github.com/pioarduino/platform-espressif32/releases/download/55.03.30-alpha1/c2_arduino_compile_skeleton.zip"
4949
},
5050
"framework-espidf": {
5151
"type": "framework",
5252
"optional": true,
5353
"owner": "pioarduino",
54-
"version": "https://github.com/pioarduino/esp-idf/releases/download/v5.4.1.250411/esp-idf-v5.4.1.zip"
54+
"version": "https://github.com/pioarduino/esp-idf/releases/download/v5.5.0.20250422/esp-idf-v5.5.0.zip"
5555
},
5656
"toolchain-xtensa-esp-elf": {
5757
"type": "toolchain",
@@ -71,7 +71,7 @@
7171
"owner": "pioarduino",
7272
"version": "https://github.com/pioarduino/registry/releases/download/0.0.1/esp32ulp-elf-2.38_20240113.zip"
7373
},
74-
"tool-xtensa-esp-elf-gdb": {
74+
"tool-xtensa-esp-elf-gdb": {
7575
"type": "debugger",
7676
"optional": true,
7777
"owner": "pioarduino",

platform.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import os
16+
import requests
1617
import subprocess
1718
import sys
1819
import shutil
@@ -96,12 +97,16 @@ def install_tool(TOOL):
9697
if "arduino" in frameworks:
9798
self.packages["framework-arduinoespressif32"]["optional"] = False
9899
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
100+
#try:
101+
#self.packages["framework-arduinoespressif32"]["version"] = "https://github.com/espressif/arduino-esp32/archive/refs/heads/idf-master.zip"
102+
#except:
103+
#pass
99104
# use matching espressif Arduino libs
100-
#URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
101-
#packjdata = requests.get(URL).json()
102-
#dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
105+
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/package/package_esp32_index.template.json"
106+
packjdata = requests.get(URL).json()
107+
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
103108
# use newer libs as linked in package_esp32_index.template.json is too old
104-
dyn_lib_url = "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.4/esp32-arduino-libs-idf-release_v5.4-3ad36321-v1.zip"
109+
#dyn_lib_url = "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-master/esp32-arduino-libs-idf-master-465b159c-v1.zip"
105110
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
106111

107112
if variables.get("custom_sdkconfig") is not None or len(str(board_sdkconfig)) > 3:
@@ -227,7 +232,7 @@ def _add_dynamic_options(self, board):
227232
# A special case for the Kaluga board that has a separate interface config
228233
if board.id == "esp32-s2-kaluga-1":
229234
supported_debug_tools.append("ftdi")
230-
if board.get("build.mcu", "") in ("esp32c3", "esp32c6", "esp32s3", "esp32h2"):
235+
if board.get("build.mcu", "") in ("esp32c3", "esp32c5", "esp32c6", "esp32s3", "esp32h2", "esp32p4"):
231236
supported_debug_tools.append("esp-builtin")
232237

233238
upload_protocol = board.manifest.get("upload", {}).get("protocol")

0 commit comments

Comments
 (0)