Skip to content

Commit b756cb6

Browse files
authored
Merge pull request #4 from pioarduino/merge
Updates upstream
2 parents 61d78ac + c8afead commit b756cb6

15 files changed

+436
-24
lines changed

.gitlab-ci.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ host_tests_espefuse:
125125

126126
host_tests_latest_python:
127127
<<: *host_tests_template
128-
image: python:3.12-bullseye
128+
image: python:3.13-bullseye
129129
variables:
130130
PYTEST_ADDOPTS: "-sv --junitxml=test/report.xml --color=yes"
131131
script:
@@ -419,6 +419,22 @@ target_esp32p4:
419419
script:
420420
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_esptool.py --port /dev/serial_ports/ESP32P4 --chip esp32p4 --baud 115200
421421

422+
# ESP32C5
423+
target_esp32c5:
424+
extends: .target_esptool_test
425+
tags:
426+
- esptool_esp32c5_target
427+
script:
428+
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_esptool.py --port /dev/serial_ports/ESP32C5 --chip esp32c5 --baud 115200
429+
430+
# ESP32C61
431+
target_esp32c61:
432+
extends: .target_esptool_test
433+
tags:
434+
- esptool_esp32c61_target
435+
script:
436+
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_esptool.py --port /dev/serial_ports/ESP32C61 --chip esp32c61 --baud 115200
437+
422438
.windows_test:
423439
stage: test
424440
variables:
@@ -507,7 +523,7 @@ build_docs:
507523
script:
508524
- cd docs
509525
- pip install -r requirements.txt --prefer-binary
510-
- build-docs -l en -t {esp8266,esp32,esp32s2,esp32c3,esp32s3,esp32c2,esp32c6,esp32h2,esp32p4}
526+
- build-docs -l en -t {esp8266,esp32,esp32s2,esp32c3,esp32s3,esp32c2,esp32c6,esp32h2,esp32p4,esp32c5,esp32c61}
511527

512528
.deploy_docs_template:
513529
stage: deploy_docs
@@ -535,11 +551,11 @@ deploy_docs_preview:
535551
variables:
536552
TYPE: "preview"
537553
DOCS_BUILD_DIR: "${CI_PROJECT_DIR}/docs/_build/"
538-
DOCS_DEPLOY_PRIVATEKEY: "$DOCS_DEPLOY_KEY"
539-
DOCS_DEPLOY_SERVER: "$DOCS_SERVER"
540-
DOCS_DEPLOY_SERVER_USER: "$DOCS_SERVER_USER"
541-
DOCS_DEPLOY_PATH: "$DOCS_PATH"
542-
DOCS_DEPLOY_URL_BASE: "https://$DOCS_PREVIEW_SERVER_URL/docs/esptool"
554+
DOCS_DEPLOY_PRIVATEKEY: "$DOCS_PREVIEW_DEPLOY_KEY"
555+
DOCS_DEPLOY_SERVER: "$DOCS_PREVIEW_SERVER"
556+
DOCS_DEPLOY_SERVER_USER: "$DOCS_PREVIEW_SERVER_USER"
557+
DOCS_DEPLOY_PATH: "$DOCS_PREVIEW_PATH"
558+
DOCS_DEPLOY_URL_BASE: "$DOCS_PREVIEW_URL_BASE"
543559

544560
deploy_docs_production:
545561
extends:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v4.8.1 (2024-09-25)
2+
3+
### Bug Fixes
4+
5+
- **esp32c2**: Add esp32c2 eco4 rom magic value
6+
- **packaging**: Correctly exclude the unwanted sub/modules
7+
18
## v4.8.0 (2024-09-18)
29

310
### New Features

docs/_static/esptool_versions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ var DOCUMENTATION_VERSIONS = {
1313
{ text: "ESP32-C6", value: "esp32c6" },
1414
{ text: "ESP32-H2", value: "esp32h2" },
1515
{ text: "ESP32-P4", value: "esp32p4" },
16+
{ text: "ESP32-C5", value: "esp32c5" },
17+
{ text: "ESP32-C61", value: "esp32c61" },
1618
]
1719
};

docs/conf_common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"esp32c6",
1212
"esp32h2",
1313
"esp32p4",
14+
"esp32c5",
15+
"esp32c61",
1416
]
1517

1618
# link roles config
@@ -42,6 +44,8 @@
4244
"esp32c6": ESP32_DOCS,
4345
"esp32h2": ESP32_DOCS,
4446
"esp32p4": ESP32_DOCS,
47+
"esp32c5": ESP32_DOCS,
48+
"esp32c61": ESP32_DOCS,
4549
}
4650

4751
# Extra options required by sphinx_idf_theme

docs/en/advanced-topics/boot-mode-selection.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{IDF_TARGET_STRAP_BOOT_GPIO:default="GPIO9", esp32="GPIO0", esp32s2="GPIO0", esp32s3="GPIO0", esp32p4="GPIO35"}
1+
{IDF_TARGET_STRAP_BOOT_GPIO:default="GPIO9", esp32="GPIO0", esp32s2="GPIO0", esp32s3="GPIO0", esp32p4="GPIO35", esp32c5="GPIO28"}
22

3-
{IDF_TARGET_STRAP_BOOT_2_GPIO:default="GPIO8", esp32="GPIO2", esp32s2="GPIO46", esp32s3="GPIO46", esp32p4="GPIO36"}
3+
{IDF_TARGET_STRAP_BOOT_2_GPIO:default="GPIO8", esp32="GPIO2", esp32s2="GPIO46", esp32s3="GPIO46", esp32p4="GPIO36", esp32c5="GPIO27"}
44

55
{IDF_TARGET_BOOTLOADER_OFFSET:default="0", esp32="1000", esp32s2="1000", esp32p4="2000"}
66

@@ -87,7 +87,7 @@ This guide explains how to select the boot mode correctly and describes the boot
8787

8888
{IDF_TARGET_STRAP_BOOT_2_GPIO} must also be either left unconnected/floating, or driven Low, in order to enter the serial bootloader.
8989

90-
.. only:: esp32c3 or esp32c2 or esp32h2 or esp32c6 or esp32p4
90+
.. only:: esp32c3 or esp32c2 or esp32h2 or esp32c6 or esp32p4 or esp32c5 or esp32c61
9191

9292
{IDF_TARGET_STRAP_BOOT_2_GPIO} must also be driven High, in order to enter the serial bootloader reliably. The strapping combination of {IDF_TARGET_STRAP_BOOT_2_GPIO} = 0 and {IDF_TARGET_STRAP_BOOT_GPIO} = 0 is invalid and will trigger unexpected behavior.
9393

docs/en/advanced-topics/firmware-image-format.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,25 @@ The image header is 8 bytes long:
9191
Flash frequency with value ``0`` can mean either 80MHz or 40MHz based on MSPI clock source mode.
9292

9393

94-
.. only:: not (esp8266 or esp32c6 or esp32s3 or esp32s2 or esp32p4)
94+
.. only:: esp32c5 or esp32c61
95+
96+
+--------+------------------------------------------------------------------------------------------------+
97+
| Byte | Description |
98+
+========+================================================================================================+
99+
| 0 | Magic number (always ``0xE9``) |
100+
+--------+------------------------------------------------------------------------------------------------+
101+
| 1 | Number of segments |
102+
+--------+------------------------------------------------------------------------------------------------+
103+
| 2 | SPI Flash Mode (``0`` = QIO, ``1`` = QOUT, ``2`` = DIO, ``3`` = DOUT) |
104+
+--------+------------------------------------------------------------------------------------------------+
105+
| 3 | High four bits - Flash size (``0`` = 1MB, ``1`` = 2MB, ``2`` = 4MB, ``3`` = 8MB, ``4`` = 16MB) |
106+
| | |
107+
| | Low four bits - Flash frequency (``0xf`` = {IDF_TARGET_FLASH_FREQ_F}MHz, ``0`` = {IDF_TARGET_FLASH_FREQ_0}MHz, ``2`` = {IDF_TARGET_FLASH_FREQ_2}MHz) |
108+
+--------+------------------------------------------------------------------------------------------------+
109+
| 4-7 | Entry point address |
110+
+--------+------------------------------------------------------------------------------------------------+
111+
112+
.. only:: not (esp8266 or esp32c6 or esp32s3 or esp32s2 or esp32p4 or esp32c5 or esp32c61)
95113

96114
+--------+------------------------------------------------------------------------------------------------+
97115
| Byte | Description |

0 commit comments

Comments
 (0)