Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
88cda9f
feat(idf): Add initial support for IDF v5.5 and ESP32-C5
me-no-dev Jan 21, 2025
bf90cbd
fix(examples): Add changes required to some examples
me-no-dev Jan 21, 2025
af5abd5
fix(c5): Update bootloader location
me-no-dev Jan 22, 2025
0894d7d
fix(report): Add missing chip names
me-no-dev Jan 22, 2025
100ed8e
fix(c5): Update debug log in setCpuFrequencyMhz
P-R-O-C-H-Y Jan 22, 2025
d9d3bf4
add c5 bootloader location to pioarduino script (#10889)
Jason2866 Jan 22, 2025
8af81cd
fix(ci): Fix/stop some examples for C5
me-no-dev Jan 22, 2025
9fbcb34
fix(c5): Update PIN_RGB_LED in pins_arduino.h
P-R-O-C-H-Y Jan 22, 2025
f45cd7b
fix(psram): Add support for ESP32-C5 PSRAM
me-no-dev Jan 27, 2025
75de09e
fix(board): Update ESP32-C5 Dev Kit Pinout
me-no-dev Feb 3, 2025
6283c15
IDF master (#10887)
me-no-dev Feb 18, 2025
042015e
IDF master (#10981)
me-no-dev Feb 18, 2025
e30e3c3
IDF master (#10999)
me-no-dev Feb 25, 2025
3fe2fe5
IDF master 0461e2ff (#11018)
me-no-dev Feb 26, 2025
d66eeb7
c5 flash base address is 0x2000 (#11037)
Jason2866 Mar 5, 2025
7c1ac1a
feat(wifi): Add support for 2.4GHz and 5GHz band switching (#11045)
me-no-dev Mar 10, 2025
d81c195
Merge branch 'master' into release/v3.3.x
me-no-dev Mar 27, 2025
dac2dd9
Merge branch 'master' into release/v3.3.x
me-no-dev Mar 28, 2025
a61961d
IDF master (#11150)
me-no-dev Mar 28, 2025
998bf80
Merge branch 'master' into release/v3.3.x
me-no-dev Mar 29, 2025
ae2ae8d
Merge branch 'master' into release/v3.3.x
lucasssvaz Apr 14, 2025
42ae242
fix C5 compile (#11255)
Jason2866 Apr 21, 2025
5d0c4b3
Merge branch 'master' into release/v3.3.x
me-no-dev Apr 22, 2025
03e9c45
IDF master (#11204)
me-no-dev Apr 23, 2025
23f3600
Merge branch 'master' into release/v3.3.x
me-no-dev Apr 23, 2025
c9efce6
Merge branch 'master' into release/v3.3.x
me-no-dev Apr 29, 2025
b115ace
IDF master (#11289)
me-no-dev Apr 30, 2025
602f1f6
IDF master (#11342)
me-no-dev May 7, 2025
a83bb93
Merge branch 'master' into release/v3.3.x
me-no-dev May 13, 2025
bc08c49
Update version for wifi remote (#11344)
Jason2866 May 13, 2025
69cd5a0
IDF master 7cf5dacd (#11358)
me-no-dev May 15, 2025
d69ad5e
Merge branch 'master' into release/v3.3.x
me-no-dev May 15, 2025
5540afa
feat(ci): Run push CI against IDF v5.5
me-no-dev May 15, 2025
3f63a49
fix(build): Add dependency on esp_http_client
me-no-dev May 19, 2025
15038e6
Merge branch 'master' into release/v3.3.x
me-no-dev May 27, 2025
b769846
Merge branch 'master' into release/v3.3.x
me-no-dev May 30, 2025
6ce7e25
IDF release/v5.5 (#11369)
me-no-dev May 30, 2025
a6bba43
fix(c5): Enable components for ESP32-C5
me-no-dev May 30, 2025
0ab9a0f
feat(zigbee): Update to esp-zigbee-sdk 1.6.5 and fix ci.json files (#…
P-R-O-C-H-Y Jun 4, 2025
e9813c6
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 4, 2025
89ff465
feat(esptool): Upgrade to esptool v5 (#11433)
lucasssvaz Jun 10, 2025
aaeabb5
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 10, 2025
0f72681
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 10, 2025
05fbda2
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 20, 2025
bf55924
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 21, 2025
29035dc
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 22, 2025
febca6b
fix(p4): Update hosted and wifi_remote components
me-no-dev Jun 23, 2025
1c79eb8
feat(NimBLE): Add support for NimBLE (#11424)
lucasssvaz Jun 23, 2025
18c909a
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 23, 2025
36d0496
IDF release/v5.5 (#11504)
me-no-dev Jun 24, 2025
5871a80
Merge branch 'master' into release/v3.3.x
me-no-dev Jun 24, 2025
ff3cc81
Merge branch 'master' into release/v3.3.x
lucasssvaz Jun 26, 2025
70696df
Merge branch 'master' into release/v3.3.x
me-no-dev Jul 3, 2025
d4e5c5f
IDF release/v5.5 adb3f2a5 (#11543)
me-no-dev Jul 3, 2025
c2d2325
feat(matter): enables BLE Matter commissioning with NimBLE (#11537)
SuGlider Jul 3, 2025
f84fab5
Merge branch 'master' into release/v3.3.x
me-no-dev Jul 4, 2025
1426927
fix(matter): Fix MatterSmartButon.ino when CHIPOBLE is on
me-no-dev Jul 4, 2025
ccc0a69
change(esptool): Upgrade esptool to release v5.0.0 (#11563)
lucasssvaz Jul 8, 2025
df3db3c
Merge branch 'master' into release/v3.3.x
me-no-dev Jul 8, 2025
fbf3c11
Merge branch 'master' into release/v3.3.x
me-no-dev Jul 9, 2025
c6a3bcb
feat(matter): removing wifi requirement for H2 and C5 (#11581)
SuGlider Jul 12, 2025
ce7ef9c
IDF release/v5.5 cf8dad07 (#11601)
me-no-dev Jul 16, 2025
3f32903
Merge branch 'master' into release/v3.3.x
SuGlider Jul 16, 2025
ac05f18
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] Jul 16, 2025
5ccd952
Merge branch 'master' into release/v3.3.x
me-no-dev Jul 16, 2025
a69c71f
feat(core): Update core version to 3.3.0
me-no-dev Jul 16, 2025
98d309f
feat(ci): Enable builds on IDF 5.3, 5.4 and 5.5
me-no-dev Jul 18, 2025
6cb5184
fix(build): Fix build for IDF 5.3.3+ and older releases
me-no-dev Jul 18, 2025
346e7f4
fix(build): Enable I2C FIFO mode only on IDF 5.5+
me-no-dev Jul 18, 2025
530c1a4
fix(build): Enable I2C FIFO mode only on IDF 5.4.2+
me-no-dev Jul 18, 2025
000336b
fix(build): Enable I2C FIFO mode only on IDF 5.4.2+
me-no-dev Jul 18, 2025
211a0ce
fix(ci): Fix artifact names
lucasssvaz Jul 18, 2025
3ad17de
fix(build): make core compatible with IDF 5.3 (#11607)
SuGlider Jul 18, 2025
4a3c6d7
feat(netif): Allow setting interface's routing priority (#11617)
me-no-dev Jul 21, 2025
4c51968
Merge branch 'master' into release/v3.3.x
me-no-dev Jul 21, 2025
554de56
IDF release/v5.5 25c7c119 (#11623)
me-no-dev Jul 22, 2025
69d8914
IDF release/v5.5 b66b5448 (#11626)
me-no-dev Jul 22, 2025
2b3b4f0
Merge branch 'master' into release/v3.3.x
me-no-dev Jul 22, 2025
6fdfccf
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] Jul 22, 2025
3da3ad2
feat(board): Add onboard LED support for Waveshare ESP32-S3 Zero (#11…
eMUQI Jul 23, 2025
dbaf6a3
Merge pull request #10884 from espressif/release/v3.3.x
me-no-dev Jul 23, 2025
c7520cc
fix(report): Update Issue-report.yml for version 3.3.0
me-no-dev Jul 23, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/Issue-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ body:
- latest stable Release (if not listed below)
- latest development Release Candidate (RC-X)
- latest master (checkout manually)
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.3
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/on-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ if [ "$BUILD_LOG" -eq 1 ]; then
fi

#build sketches for different targets
build "esp32c5" "$CHUNK_INDEX" "$CHUNKS_CNT" "$BUILD_LOG" "$LOG_LEVEL" "$SKETCHES_FILE" "${SKETCHES_ESP32[@]}"
build "esp32p4" "$CHUNK_INDEX" "$CHUNKS_CNT" "$BUILD_LOG" "$LOG_LEVEL" "$SKETCHES_FILE" "${SKETCHES_ESP32[@]}"
build "esp32s3" "$CHUNK_INDEX" "$CHUNKS_CNT" "$BUILD_LOG" "$LOG_LEVEL" "$SKETCHES_FILE" "${SKETCHES_ESP32[@]}"
build "esp32s2" "$CHUNK_INDEX" "$CHUNKS_CNT" "$BUILD_LOG" "$LOG_LEVEL" "$SKETCHES_FILE" "${SKETCHES_ESP32[@]}"
Expand Down
5 changes: 5 additions & 0 deletions .github/scripts/sketch_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function build_sketch { # build_sketch <ide_path> <user_path> <path-to-ino> [ext
esp32c6_opts=$(echo "$debug_level,$fqbn_append" | sed 's/^,*//;s/,*$//;s/,\{2,\}/,/g')
esp32h2_opts=$(echo "$debug_level,$fqbn_append" | sed 's/^,*//;s/,*$//;s/,\{2,\}/,/g')
esp32p4_opts=$(echo "PSRAM=enabled,USBMode=default,$debug_level,$fqbn_append" | sed 's/^,*//;s/,*$//;s/,\{2,\}/,/g')
esp32c5_opts=$(echo "$debug_level,$fqbn_append" | sed 's/^,*//;s/,*$//;s/,\{2,\}/,/g')

# Select the common part of the FQBN based on the target. The rest will be
# appended depending on the passed options.
Expand Down Expand Up @@ -191,6 +192,10 @@ function build_sketch { # build_sketch <ide_path> <user_path> <path-to-ino> [ext
[ -n "${options:-$esp32p4_opts}" ] && opt=":${options:-$esp32p4_opts}"
fqbn="espressif:esp32:esp32p4$opt"
;;
"esp32c5")
[ -n "${options:-$esp32c5_opts}" ] && opt=":${options:-$esp32c5_opts}"
fqbn="espressif:esp32:esp32c5$opt"
;;
*)
echo "ERROR: Invalid chip: $target"
exit 1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ on:
- "!.github/scripts/upload_*"
- "variants/esp32/**/*"
- "variants/esp32c3/**/*"
- "variants/esp32c5/**/*"
- "variants/esp32c6/**/*"
- "variants/esp32h2/**/*"
- "variants/esp32p4/**/*"
Expand Down Expand Up @@ -247,7 +248,7 @@ jobs:
# See https://hub.docker.com/r/espressif/idf/tags and
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
# for details.
idf_ver: ["release-v5.4"]
idf_ver: ["release-v5.3","release-v5.4","release-v5.5"]
idf_target:
[
"esp32",
Expand Down Expand Up @@ -282,7 +283,7 @@ jobs:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: sdkconfig-${{ matrix.idf_target }}
name: sdkconfig-${{ matrix.idf_ver }}-${{ matrix.idf_target }}
path: ./components/arduino-esp32/idf_component_examples/**/sdkconfig

# Save artifacts to gh-pages
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ stages:
- result

variables:
ESP_IDF_VERSION: "5.4"
ESP_ARDUINO_VERSION: "3.2.1"
ESP_IDF_VERSION: "5.5"
ESP_ARDUINO_VERSION: "3.3.0"

#############
# `default` #
Expand Down
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# idf.py build

set(min_supported_idf_version "5.3.0")
set(max_supported_idf_version "5.4.99")
set(max_supported_idf_version "5.5.99")
set(idf_version "${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}.${IDF_VERSION_PATCH}")

if ("${idf_version}" AND NOT "$ENV{ARDUINO_SKIP_IDF_VERSION_CHECK}")
Expand Down Expand Up @@ -184,7 +184,8 @@ set(ARDUINO_LIBRARY_Matter_SRCS
libraries/Matter/src/MatterEndpoints/MatterOccupancySensor.cpp
libraries/Matter/src/MatterEndpoints/MatterOnOffPlugin.cpp
libraries/Matter/src/MatterEndpoints/MatterThermostat.cpp
libraries/Matter/src/Matter.cpp)
libraries/Matter/src/Matter.cpp
libraries/Matter/src/MatterEndPoint.cpp)

set(ARDUINO_LIBRARY_PPP_SRCS
libraries/PPP/src/PPP.cpp
Expand Down Expand Up @@ -361,13 +362,13 @@ endforeach()
set(includedirs variants/${CONFIG_ARDUINO_VARIANT}/ cores/esp32/ ${ARDUINO_LIBRARIES_INCLUDEDIRS})
set(srcs ${CORE_SRCS} ${ARDUINO_LIBRARIES_SRCS})
set(priv_includes cores/esp32/libb64)
set(requires spi_flash esp_partition mbedtls wpa_supplicant esp_adc esp_eth http_parser esp_ringbuf esp_driver_gptimer esp_driver_usb_serial_jtag driver)
set(requires spi_flash esp_partition mbedtls wpa_supplicant esp_adc esp_eth http_parser esp_ringbuf esp_driver_gptimer esp_driver_usb_serial_jtag driver esp_http_client esp_https_ota)
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support bt esp_hid usb esp_psram ${ARDUINO_LIBRARIES_REQUIRES})

if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThread)
#if(CONFIG_SOC_IEEE802154_SUPPORTED) # Does not work!
#if(CONFIG_OPENTHREAD_ENABLED) # Does not work!
if(IDF_TARGET STREQUAL "esp32c6" OR IDF_TARGET STREQUAL "esp32h2") # Sadly only this works
if(IDF_TARGET STREQUAL "esp32c6" OR IDF_TARGET STREQUAL "esp32h2" OR IDF_TARGET STREQUAL "esp32c5") # Sadly only this works
list(APPEND requires openthread)
endif()
endif()
Expand Down
211 changes: 211 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,217 @@ esp32c2.menu.EraseFlash.all.upload.erase_cmd=-e

##############################################################

esp32c5.name=ESP32C5 Dev Module

esp32c5.bootloader.tool=esptool_py
esp32c5.bootloader.tool.default=esptool_py

esp32c5.upload.tool=esptool_py
esp32c5.upload.tool.default=esptool_py
esp32c5.upload.tool.network=esp_ota

esp32c5.upload.maximum_size=1310720
esp32c5.upload.maximum_data_size=327680
esp32c5.upload.flags=
esp32c5.upload.extra_flags=
esp32c5.upload.use_1200bps_touch=false
esp32c5.upload.wait_for_upload_port=false

esp32c5.serial.disableDTR=false
esp32c5.serial.disableRTS=false

esp32c5.build.tarch=riscv32
esp32c5.build.target=esp
esp32c5.build.mcu=esp32c5
esp32c5.build.core=esp32
esp32c5.build.variant=esp32c5
esp32c5.build.board=ESP32C5_DEV
esp32c5.build.bootloader_addr=0x2000

esp32c5.build.cdc_on_boot=0
esp32c5.build.f_cpu=240000000L
esp32c5.build.flash_size=4MB
esp32c5.build.flash_freq=80m
esp32c5.build.flash_mode=qio
esp32c5.build.boot=qio
esp32c5.build.partitions=default
esp32c5.build.defines=

## IDE 2.0 Seems to not update the value
esp32c5.menu.JTAGAdapter.default=Disabled
esp32c5.menu.JTAGAdapter.default.build.copy_jtag_files=0
esp32c5.menu.JTAGAdapter.builtin=Integrated USB JTAG
esp32c5.menu.JTAGAdapter.builtin.build.openocdscript=esp32c5-builtin.cfg
esp32c5.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
esp32c5.menu.JTAGAdapter.external=FTDI Adapter
esp32c5.menu.JTAGAdapter.external.build.openocdscript=esp32c5-ftdi.cfg
esp32c5.menu.JTAGAdapter.external.build.copy_jtag_files=1
esp32c5.menu.JTAGAdapter.bridge=ESP USB Bridge
esp32c5.menu.JTAGAdapter.bridge.build.openocdscript=esp32c5-bridge.cfg
esp32c5.menu.JTAGAdapter.bridge.build.copy_jtag_files=1

esp32c5.menu.PSRAM.disabled=Disabled
esp32c5.menu.PSRAM.disabled.build.defines=
esp32c5.menu.PSRAM.enabled=Enabled
esp32c5.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM

esp32c5.menu.CDCOnBoot.default=Disabled
esp32c5.menu.CDCOnBoot.default.build.cdc_on_boot=0
esp32c5.menu.CDCOnBoot.cdc=Enabled
esp32c5.menu.CDCOnBoot.cdc.build.cdc_on_boot=1

esp32c5.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
esp32c5.menu.PartitionScheme.default.build.partitions=default
esp32c5.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
esp32c5.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
esp32c5.menu.PartitionScheme.default_8MB=8M with spiffs (3MB APP/1.5MB SPIFFS)
esp32c5.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
esp32c5.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
esp32c5.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
esp32c5.menu.PartitionScheme.minimal.build.partitions=minimal
esp32c5.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2)
esp32c5.menu.PartitionScheme.no_fs.build.partitions=no_fs
esp32c5.menu.PartitionScheme.no_fs.upload.maximum_size=2031616
esp32c5.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
esp32c5.menu.PartitionScheme.no_ota.build.partitions=no_ota
esp32c5.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
esp32c5.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
esp32c5.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
esp32c5.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
esp32c5.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
esp32c5.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
esp32c5.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
esp32c5.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
esp32c5.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
esp32c5.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
esp32c5.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
esp32c5.menu.PartitionScheme.huge_app.build.partitions=huge_app
esp32c5.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
esp32c5.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
esp32c5.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
esp32c5.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
esp32c5.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FATFS)
esp32c5.menu.PartitionScheme.fatflash.build.partitions=ffat
esp32c5.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
esp32c5.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9.9MB FATFS)
esp32c5.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
esp32c5.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
esp32c5.menu.PartitionScheme.rainmaker=RainMaker 4MB
esp32c5.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
esp32c5.menu.PartitionScheme.rainmaker.upload.maximum_size=1966080
esp32c5.menu.PartitionScheme.rainmaker_4MB=RainMaker 4MB No OTA
esp32c5.menu.PartitionScheme.rainmaker_4MB.build.partitions=rainmaker_4MB_no_ota
esp32c5.menu.PartitionScheme.rainmaker_4MB.upload.maximum_size=4038656
esp32c5.menu.PartitionScheme.rainmaker_8MB=RainMaker 8MB
esp32c5.menu.PartitionScheme.rainmaker_8MB.build.partitions=rainmaker_8MB
esp32c5.menu.PartitionScheme.rainmaker_8MB.upload.maximum_size=4116480
esp32c5.menu.PartitionScheme.zigbee_2MB=Zigbee 2MB with spiffs
esp32c5.menu.PartitionScheme.zigbee_2MB.build.partitions=zigbee_2MB
esp32c5.menu.PartitionScheme.zigbee_2MB.upload.maximum_size=1310720
esp32c5.menu.PartitionScheme.zigbee=Zigbee 4MB with spiffs
esp32c5.menu.PartitionScheme.zigbee.build.partitions=zigbee
esp32c5.menu.PartitionScheme.zigbee.upload.maximum_size=1310720
esp32c5.menu.PartitionScheme.zigbee_8MB=Zigbee 8MB with spiffs
esp32c5.menu.PartitionScheme.zigbee_8MB.build.partitions=zigbee_8MB
esp32c5.menu.PartitionScheme.zigbee_8MB.upload.maximum_size=3407872
esp32c5.menu.PartitionScheme.zigbee_zczr_2MB=Zigbee ZCZR 2MB with spiffs
esp32c5.menu.PartitionScheme.zigbee_zczr_2MB.build.partitions=zigbee_zczr_2MB
esp32c5.menu.PartitionScheme.zigbee_zczr_2MB.upload.maximum_size=1310720
esp32c5.menu.PartitionScheme.zigbee_zczr=Zigbee ZCZR 4MB with spiffs
esp32c5.menu.PartitionScheme.zigbee_zczr.build.partitions=zigbee_zczr
esp32c5.menu.PartitionScheme.zigbee_zczr.upload.maximum_size=1310720
esp32c5.menu.PartitionScheme.zigbee_zczr_8MB=Zigbee ZCZR 8MB with spiffs
esp32c5.menu.PartitionScheme.zigbee_zczr_8MB.build.partitions=zigbee_zczr_8MB
esp32c5.menu.PartitionScheme.zigbee_zczr_8MB.upload.maximum_size=3407872
esp32c5.menu.PartitionScheme.custom=Custom
esp32c5.menu.PartitionScheme.custom.build.partitions=
esp32c5.menu.PartitionScheme.custom.upload.maximum_size=16777216

esp32c5.menu.CPUFreq.240=240MHz (WiFi)
esp32c5.menu.CPUFreq.240.build.f_cpu=240000000L
esp32c5.menu.CPUFreq.120=120MHz (WiFi)
esp32c5.menu.CPUFreq.120.build.f_cpu=120000000L
esp32c5.menu.CPUFreq.80=80MHz (WiFi)
esp32c5.menu.CPUFreq.80.build.f_cpu=80000000L
esp32c5.menu.CPUFreq.40=40MHz
esp32c5.menu.CPUFreq.40.build.f_cpu=40000000L
esp32c5.menu.CPUFreq.20=20MHz
esp32c5.menu.CPUFreq.20.build.f_cpu=20000000L
esp32c5.menu.CPUFreq.10=10MHz
esp32c5.menu.CPUFreq.10.build.f_cpu=10000000L

esp32c5.menu.FlashMode.qio=QIO
esp32c5.menu.FlashMode.qio.build.flash_mode=dio
esp32c5.menu.FlashMode.qio.build.boot=qio
esp32c5.menu.FlashMode.dio=DIO
esp32c5.menu.FlashMode.dio.build.flash_mode=dio
esp32c5.menu.FlashMode.dio.build.boot=dio

esp32c5.menu.FlashFreq.80=80MHz
esp32c5.menu.FlashFreq.80.build.flash_freq=80m
esp32c5.menu.FlashFreq.40=40MHz
esp32c5.menu.FlashFreq.40.build.flash_freq=40m

esp32c5.menu.FlashSize.4M=4MB (32Mb)
esp32c5.menu.FlashSize.4M.build.flash_size=4MB
esp32c5.menu.FlashSize.8M=8MB (64Mb)
esp32c5.menu.FlashSize.8M.build.flash_size=8MB
esp32c5.menu.FlashSize.2M=2MB (16Mb)
esp32c5.menu.FlashSize.2M.build.flash_size=2MB
esp32c5.menu.FlashSize.16M=16MB (128Mb)
esp32c5.menu.FlashSize.16M.build.flash_size=16MB

esp32c5.menu.UploadSpeed.921600=921600
esp32c5.menu.UploadSpeed.921600.upload.speed=921600
esp32c5.menu.UploadSpeed.115200=115200
esp32c5.menu.UploadSpeed.115200.upload.speed=115200
esp32c5.menu.UploadSpeed.256000.windows=256000
esp32c5.menu.UploadSpeed.256000.upload.speed=256000
esp32c5.menu.UploadSpeed.230400.windows.upload.speed=256000
esp32c5.menu.UploadSpeed.230400=230400
esp32c5.menu.UploadSpeed.230400.upload.speed=230400
esp32c5.menu.UploadSpeed.460800.linux=460800
esp32c5.menu.UploadSpeed.460800.macosx=460800
esp32c5.menu.UploadSpeed.460800.upload.speed=460800
esp32c5.menu.UploadSpeed.512000.windows=512000
esp32c5.menu.UploadSpeed.512000.upload.speed=512000

esp32c5.menu.DebugLevel.none=None
esp32c5.menu.DebugLevel.none.build.code_debug=0
esp32c5.menu.DebugLevel.error=Error
esp32c5.menu.DebugLevel.error.build.code_debug=1
esp32c5.menu.DebugLevel.warn=Warn
esp32c5.menu.DebugLevel.warn.build.code_debug=2
esp32c5.menu.DebugLevel.info=Info
esp32c5.menu.DebugLevel.info.build.code_debug=3
esp32c5.menu.DebugLevel.debug=Debug
esp32c5.menu.DebugLevel.debug.build.code_debug=4
esp32c5.menu.DebugLevel.verbose=Verbose
esp32c5.menu.DebugLevel.verbose.build.code_debug=5

esp32c5.menu.EraseFlash.none=Disabled
esp32c5.menu.EraseFlash.none.upload.erase_cmd=
esp32c5.menu.EraseFlash.all=Enabled
esp32c5.menu.EraseFlash.all.upload.erase_cmd=-e

esp32c5.menu.ZigbeeMode.default=Disabled
esp32c5.menu.ZigbeeMode.default.build.zigbee_mode=
esp32c5.menu.ZigbeeMode.default.build.zigbee_libs=
esp32c5.menu.ZigbeeMode.ed=Zigbee ED (end device)
esp32c5.menu.ZigbeeMode.ed.build.zigbee_mode=-DZIGBEE_MODE_ED
esp32c5.menu.ZigbeeMode.ed.build.zigbee_libs=-lesp_zb_api.ed -lzboss_stack.ed -lzboss_port.native
esp32c5.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator/router)
esp32c5.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
esp32c5.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api.zczr -lzboss_stack.zczr -lzboss_port.native
esp32c5.menu.ZigbeeMode.ed_debug=Zigbee ED (end device) - Debug
esp32c5.menu.ZigbeeMode.ed_debug.build.zigbee_mode=-DZIGBEE_MODE_ED
esp32c5.menu.ZigbeeMode.ed_debug.build.zigbee_libs=-lesp_zb_api.ed.debug -lzboss_stack.ed.debug -lzboss_port.native.debug
esp32c5.menu.ZigbeeMode.zczr_debug=Zigbee ZCZR (coordinator/router) - Debug
esp32c5.menu.ZigbeeMode.zczr_debug.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
esp32c5.menu.ZigbeeMode.zczr_debug.build.zigbee_libs=-lesp_zb_api.zczr.debug -lzboss_stack.zczr.debug -lzboss_port.native.debug

##############################################################

esp32p4.name=ESP32P4 Dev Module

esp32p4.bootloader.tool=esptool_py
Expand Down
11 changes: 10 additions & 1 deletion cores/esp32/Esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "Esp.h"
#include "esp_sleep.h"
#include "spi_flash_mmap.h"
#include "esp_idf_version.h"
#include <memory>
#include <soc/soc.h>
#include <esp_partition.h>
Expand Down Expand Up @@ -63,6 +64,9 @@ extern "C" {
#elif CONFIG_IDF_TARGET_ESP32P4
#include "esp32p4/rom/spi_flash.h"
#define ESP_FLASH_IMAGE_BASE 0x2000 // Esp32p4 is located at 0x2000
#elif CONFIG_IDF_TARGET_ESP32C5
#include "esp32c5/rom/spi_flash.h"
#define ESP_FLASH_IMAGE_BASE 0x2000 // Esp32c5 is located at 0x2000
#else
#error Target CONFIG_IDF_TARGET is not supported
#endif
Expand Down Expand Up @@ -301,7 +305,12 @@ const char *EspClass::getChipModel(void) {
case CHIP_ESP32C6: return "ESP32-C6";
case CHIP_ESP32H2: return "ESP32-H2";
case CHIP_ESP32P4: return "ESP32-P4";
default: return "UNKNOWN";
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
case CHIP_ESP32C5: return "ESP32-C5";
case CHIP_ESP32C61: return "ESP32-C61";
case CHIP_ESP32H21: return "ESP32-H21";
#endif
default: return "UNKNOWN";
}
#endif
}
Expand Down
8 changes: 8 additions & 0 deletions cores/esp32/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ typedef enum {
#define SOC_RX0 (gpio_num_t)23
#elif CONFIG_IDF_TARGET_ESP32P4
#define SOC_RX0 (gpio_num_t)38
#elif CONFIG_IDF_TARGET_ESP32C5
#define SOC_RX0 (gpio_num_t)12
#endif
#endif

Expand All @@ -180,6 +182,8 @@ typedef enum {
#define SOC_TX0 (gpio_num_t)24
#elif CONFIG_IDF_TARGET_ESP32P4
#define SOC_TX0 (gpio_num_t)37
#elif CONFIG_IDF_TARGET_ESP32C5
#define SOC_TX0 (gpio_num_t)11
#endif
#endif

Expand All @@ -203,6 +207,8 @@ typedef enum {
#define RX1 (gpio_num_t)0
#elif CONFIG_IDF_TARGET_ESP32P4
#define RX1 (gpio_num_t)11
#elif CONFIG_IDF_TARGET_ESP32C5
#define RX1 (gpio_num_t)4
#endif
#endif

Expand All @@ -223,6 +229,8 @@ typedef enum {
#define TX1 (gpio_num_t)1
#elif CONFIG_IDF_TARGET_ESP32P4
#define TX1 (gpio_num_t)10
#elif CONFIG_IDF_TARGET_ESP32C5
#define TX1 (gpio_num_t)5
#endif
#endif
#endif /* SOC_UART_HP_NUM > 1 */
Expand Down
Loading