Skip to content

Commit

Permalink
Merge pull request #4 from pioarduino/merge
Browse files Browse the repository at this point in the history
Updates upstream
  • Loading branch information
Jason2866 authored Oct 19, 2024
2 parents 61d78ac + c8afead commit b756cb6
Show file tree
Hide file tree
Showing 15 changed files with 436 additions and 24 deletions.
30 changes: 23 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ host_tests_espefuse:

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

# ESP32C5
target_esp32c5:
extends: .target_esptool_test
tags:
- esptool_esp32c5_target
script:
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_esptool.py --port /dev/serial_ports/ESP32C5 --chip esp32c5 --baud 115200

# ESP32C61
target_esp32c61:
extends: .target_esptool_test
tags:
- esptool_esp32c61_target
script:
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_esptool.py --port /dev/serial_ports/ESP32C61 --chip esp32c61 --baud 115200

.windows_test:
stage: test
variables:
Expand Down Expand Up @@ -507,7 +523,7 @@ build_docs:
script:
- cd docs
- pip install -r requirements.txt --prefer-binary
- build-docs -l en -t {esp8266,esp32,esp32s2,esp32c3,esp32s3,esp32c2,esp32c6,esp32h2,esp32p4}
- build-docs -l en -t {esp8266,esp32,esp32s2,esp32c3,esp32s3,esp32c2,esp32c6,esp32h2,esp32p4,esp32c5,esp32c61}

.deploy_docs_template:
stage: deploy_docs
Expand Down Expand Up @@ -535,11 +551,11 @@ deploy_docs_preview:
variables:
TYPE: "preview"
DOCS_BUILD_DIR: "${CI_PROJECT_DIR}/docs/_build/"
DOCS_DEPLOY_PRIVATEKEY: "$DOCS_DEPLOY_KEY"
DOCS_DEPLOY_SERVER: "$DOCS_SERVER"
DOCS_DEPLOY_SERVER_USER: "$DOCS_SERVER_USER"
DOCS_DEPLOY_PATH: "$DOCS_PATH"
DOCS_DEPLOY_URL_BASE: "https://$DOCS_PREVIEW_SERVER_URL/docs/esptool"
DOCS_DEPLOY_PRIVATEKEY: "$DOCS_PREVIEW_DEPLOY_KEY"
DOCS_DEPLOY_SERVER: "$DOCS_PREVIEW_SERVER"
DOCS_DEPLOY_SERVER_USER: "$DOCS_PREVIEW_SERVER_USER"
DOCS_DEPLOY_PATH: "$DOCS_PREVIEW_PATH"
DOCS_DEPLOY_URL_BASE: "$DOCS_PREVIEW_URL_BASE"

deploy_docs_production:
extends:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v4.8.1 (2024-09-25)

### Bug Fixes

- **esp32c2**: Add esp32c2 eco4 rom magic value
- **packaging**: Correctly exclude the unwanted sub/modules

## v4.8.0 (2024-09-18)

### New Features
Expand Down
2 changes: 2 additions & 0 deletions docs/_static/esptool_versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ var DOCUMENTATION_VERSIONS = {
{ text: "ESP32-C6", value: "esp32c6" },
{ text: "ESP32-H2", value: "esp32h2" },
{ text: "ESP32-P4", value: "esp32p4" },
{ text: "ESP32-C5", value: "esp32c5" },
{ text: "ESP32-C61", value: "esp32c61" },
]
};
4 changes: 4 additions & 0 deletions docs/conf_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"esp32c6",
"esp32h2",
"esp32p4",
"esp32c5",
"esp32c61",
]

# link roles config
Expand Down Expand Up @@ -42,6 +44,8 @@
"esp32c6": ESP32_DOCS,
"esp32h2": ESP32_DOCS,
"esp32p4": ESP32_DOCS,
"esp32c5": ESP32_DOCS,
"esp32c61": ESP32_DOCS,
}

# Extra options required by sphinx_idf_theme
Expand Down
6 changes: 3 additions & 3 deletions docs/en/advanced-topics/boot-mode-selection.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{IDF_TARGET_STRAP_BOOT_GPIO:default="GPIO9", esp32="GPIO0", esp32s2="GPIO0", esp32s3="GPIO0", esp32p4="GPIO35"}
{IDF_TARGET_STRAP_BOOT_GPIO:default="GPIO9", esp32="GPIO0", esp32s2="GPIO0", esp32s3="GPIO0", esp32p4="GPIO35", esp32c5="GPIO28"}

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

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

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

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

.. only:: esp32c3 or esp32c2 or esp32h2 or esp32c6 or esp32p4
.. only:: esp32c3 or esp32c2 or esp32h2 or esp32c6 or esp32p4 or esp32c5 or esp32c61

{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.

Expand Down
20 changes: 19 additions & 1 deletion docs/en/advanced-topics/firmware-image-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,25 @@ The image header is 8 bytes long:
Flash frequency with value ``0`` can mean either 80MHz or 40MHz based on MSPI clock source mode.


.. only:: not (esp8266 or esp32c6 or esp32s3 or esp32s2 or esp32p4)
.. only:: esp32c5 or esp32c61

+--------+------------------------------------------------------------------------------------------------+
| Byte | Description |
+========+================================================================================================+
| 0 | Magic number (always ``0xE9``) |
+--------+------------------------------------------------------------------------------------------------+
| 1 | Number of segments |
+--------+------------------------------------------------------------------------------------------------+
| 2 | SPI Flash Mode (``0`` = QIO, ``1`` = QOUT, ``2`` = DIO, ``3`` = DOUT) |
+--------+------------------------------------------------------------------------------------------------+
| 3 | High four bits - Flash size (``0`` = 1MB, ``1`` = 2MB, ``2`` = 4MB, ``3`` = 8MB, ``4`` = 16MB) |
| | |
| | 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) |
+--------+------------------------------------------------------------------------------------------------+
| 4-7 | Entry point address |
+--------+------------------------------------------------------------------------------------------------+

.. only:: not (esp8266 or esp32c6 or esp32s3 or esp32s2 or esp32p4 or esp32c5 or esp32c61)

+--------+------------------------------------------------------------------------------------------------+
| Byte | Description |
Expand Down
Loading

0 comments on commit b756cb6

Please sign in to comment.