Skip to content

Commit eefe511

Browse files
authored
Merge branch 'espressif:master' into pioarduino
2 parents c8c83ba + 8f1c206 commit eefe511

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1151
-5083
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ host_tests:
9393
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_merge_bin.py
9494
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_image_info.py
9595
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_modules.py
96+
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_logger.py
9697
# some .coverage files in sub-directories are not collected on some runners, move them firs
9798
- find . -mindepth 2 -type f -name ".coverage*" -print -exec mv --backup=numbered {} . \;
9899

@@ -109,15 +110,12 @@ host_tests_espefuse:
109110
- esp32c2
110111
- esp32c3
111112
- esp32c5
112-
- esp32c5beta3
113113
- esp32c6
114114
- esp32c61
115115
- esp32h2
116-
- esp32h2beta1
117116
- esp32p4
118117
- esp32s2
119118
- esp32s3
120-
- esp32s3beta2
121119
- esp32h21
122120
script:
123121
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_espefuse.py --chip ${TARGET}
@@ -135,6 +133,7 @@ host_tests_latest_python:
135133
- pytest ${CI_PROJECT_DIR}/test/test_merge_bin.py
136134
- pytest ${CI_PROJECT_DIR}/test/test_image_info.py
137135
- pytest ${CI_PROJECT_DIR}/test/test_modules.py
136+
- pytest ${CI_PROJECT_DIR}/test/test_logger.py
138137
- pytest ${CI_PROJECT_DIR}/test/test_espefuse.py --chip esp32
139138

140139
# A new job "host_test_hsm" is created for the test "test_espsecure_hsm.py" which runs an ubuntu image,
@@ -471,6 +470,7 @@ host_tests_windows:
471470
- python -m coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_image_info.py
472471
- python -m coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_modules.py
473472
- python -m coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_merge_bin.py
473+
- python -m coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_logger.py
474474

475475
target_tests_windows:
476476
extends: .windows_test

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ repos:
2525
additional_dependencies:
2626
- tomli
2727
- repo: https://github.com/espressif/conventional-precommit-linter
28-
rev: v1.9.0
28+
rev: v1.10.0
2929
hooks:
3030
- id: conventional-precommit-linter
3131
stages: [commit-msg]
32+
args:
33+
- --allow-breaking
3234
default_stages: [commit]
3335
default_install_hook_types: [pre-commit, commit-msg]

ci/download_flasher_stubs.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
#
3-
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3+
# SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
44
# SPDX-License-Identifier: GPL-2.0-or-later
55

66
import glob
@@ -18,17 +18,12 @@
1818
"esp32c2",
1919
"esp32c3",
2020
"esp32c5",
21-
"esp32c5beta3",
2221
"esp32c6",
2322
"esp32c61",
24-
"esp32c6beta",
2523
"esp32h2",
26-
"esp32h2beta1",
27-
"esp32h2beta2",
2824
"esp32p4",
2925
"esp32s2",
3026
"esp32s3",
31-
"esp32s3beta2",
3227
"esp8266",
3328
),
3429
"LICENSE": "released as Free Software under GNU General Public License Version 2 or later",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ This guide explains how to select the boot mode correctly and describes the boot
5353

5454
The {IDF_TARGET_NAME} has a 45k ohm internal pull-up/pull-down resistor at {IDF_TARGET_STRAP_BOOT_GPIO} (and other pins). If you want to connect a switch button to enter the boot mode, this has to be a strong pull-down. For example a 10k resistor to GND.
5555

56-
Information about {IDF_TARGET_NAME} strapping pins can also be found in the `{IDF_TARGET_NAME} Datasheet <https://www.espressif.com/en/support/documents/technical-documents?keys={IDF_TARGET_NAME}+datasheet>`__, section "Strapping Pins".
56+
Information about {IDF_TARGET_NAME} strapping pins can also be found in the `{IDF_TARGET_NAME} Datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`__, section "Strapping Pins".
5757

5858
On many development boards with built-in USB/Serial, ``esptool.py`` can automatically reset the board into bootloader mode. For other configurations or custom hardware, you will need to check the orientation of some "strapping pins" to get the correct boot mode:
5959

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

100100
.. only:: not esp32
101101

102-
As well as the above mentioned pins, other ones influence the serial bootloader, please consult the `{IDF_TARGET_NAME} Datasheet <https://www.espressif.com/en/support/documents/technical-documents?keys={IDF_TARGET_NAME}+datasheet>`__, section "Strapping Pins".
102+
As well as the above mentioned pins, other ones influence the serial bootloader, please consult the `{IDF_TARGET_NAME} Datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`__, section "Strapping Pins".
103103

104104
.. only:: esp32
105105

@@ -113,7 +113,7 @@ This guide explains how to select the boot mode correctly and describes the boot
113113
| 15 (MTDO) | If driven Low, silences boot messages printed by the ROM bootloader. Has an internal pull-up, so unconnected = High = normal output. |
114114
+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
115115

116-
For more information, consult the `{IDF_TARGET_NAME} Datasheet <https://www.espressif.com/en/support/documents/technical-documents?keys={IDF_TARGET_NAME}+datasheet>`__, section "Strapping Pins".
116+
For more information, consult the `{IDF_TARGET_NAME} Datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`__, section "Strapping Pins".
117117

118118
.. _automatic-bootloader:
119119

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,4 @@ The file is padded with zeros until its size is one byte less than a multiple of
189189
Analyzing a Binary Image
190190
------------------------
191191

192-
To analyze a binary image and get a complete summary of its headers and segments, use the :ref:`image_info <image-info>` command with the ``--version 2`` option.
192+
To analyze a binary image and get a complete summary of its headers and segments, use the :ref:`image_info <image-info>` command.

docs/en/espefuse/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ espefuse.py
99

1010
Because eFuse is one-time-programmable, it is possible to permanently damage or "brick" your {IDF_TARGET_NAME} using this tool. Use it with great care.
1111

12-
For more details about Espressif chips eFuse features, see the `Technical Reference Manual <https://www.espressif.com/en/support/documents/technical-documents>`__.
12+
For more details about Espressif chips eFuse features, see the `{IDF_TARGET_NAME} Technical Reference Manual <{IDF_TARGET_TRM_EN_URL}>`__.
1313

1414
``espefuse.py`` is installed alongside ``esptool.py``, so if ``esptool.py`` (v2.0 or newer) is available on the PATH then ``espefuse.py`` should be as well.
1515

@@ -169,7 +169,7 @@ For more details on the structure and usage of the CSV file, refer to the `eFuse
169169
Recommendations
170170
---------------
171171

172-
1. The `Technical Reference Manual <https://www.espressif.com/en/support/documents/technical-documents>`__ has a recommendation for reducing the number of burn operations as much as possible. The tool supports several ways to do this:
172+
1. The `{IDF_TARGET_NAME} Technical Reference Manual <{IDF_TARGET_TRM_EN_URL}>`__ has a recommendation for reducing the number of burn operations as much as possible. The tool supports several ways to do this:
173173

174174
- Combine multiple commands into one with this :ref:`perform-multiple-operations` feature.
175175
- Most commands support getting a list of arguments (eFuse names, keys).

docs/en/esptool/basic-commands.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Basic Commands
44
==============
55

6+
.. _write-flash:
7+
68
Write Binary Data to Flash: write_flash
79
----------------------------------------
810

@@ -225,15 +227,13 @@ By default, ``elf2image`` uses the sections in the ELF file to generate each seg
225227
Output .bin Image Details: image_info
226228
-------------------------------------
227229

228-
The ``image_info`` command outputs some information (load addresses, sizes, etc) about a ``.bin`` file created by ``elf2image``. Command also supports ``.hex`` file created by ``merge_bin`` command from supported ``.bin`` files.
229-
230-
To view more information about the image, such as set flash size, frequency and mode, or extended header information, use the ``--version 2`` option. This extended output will become the default in a future major release.
230+
The ``image_info`` command outputs some information (load addresses, segment sizes, set flash size, frequency, and mode, extended header information, etc) about a ``.bin`` file created by ``elf2image``. Command also supports ``.hex`` file created by ``merge_bin`` command from supported ``.bin`` files.
231231

232232
This information corresponds to the headers described in :ref:`image-format`.
233233

234234
::
235235

236-
esptool.py image_info --version 2 my_esp_app.bin
236+
esptool.py image_info my_esp_app.bin
237237

238238
.. only:: not esp8266
239239

docs/en/esptool/configuration-file.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ Sample configuration file:
7272
connect_attempts = 7
7373
write_block_attempts = 2
7474
reset_delay = 0.75
75-
# Overriding the default reset sequence to work in an abnormal environment
76-
custom_reset_sequence = D0|R1|W0.1|D1|R0|W0.5|D0
75+
# Overriding the default reset sequence to work in an abnormal environment (prolonged delay):
76+
custom_reset_sequence = D0|R1|W1.3|D1|R0|W0.5|D0
7777
7878
Options
7979
-------
@@ -142,7 +142,7 @@ A sequence is defined with a string in the following format:
142142
+------+-----------------------------------------------------------+-----------------+
143143

144144

145-
For example: ``D0|R1|W0.1|D1|R0|W0.5|D0`` represents the following classic reset sequence:
145+
For example: ``D0|R1|W0.1|D1|R0|W0.05|D0`` represents the following classic reset sequence:
146146

147147
.. code-block:: python
148148

docs/en/esptool/flash-modes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ These set Quad Flash I/O or Dual Flash I/O modes. Valid values are ``keep``, ``q
3636

3737
Most {IDF_TARGET_NAME} modules use ``qio``, but are also dual I/O.
3838

39-
In ``qio`` mode, two additional GPIOs are used for SPI flash communications. If flash mode is set to ``dio`` then these pins are available for other purposes. Search for ``SPIWP`` and ``SPIHD`` pins in the `{IDF_TARGET_NAME} Technical Reference Manual <https://www.espressif.com/en/support/documents/technical-documents?keys={IDF_TARGET_NAME}+Technical+Reference+Manual>`__ to learn more.
39+
In ``qio`` mode, two additional GPIOs are used for SPI flash communications. If flash mode is set to ``dio`` then these pins are available for other purposes. Search for ``SPIWP`` and ``SPIHD`` pins in the `{IDF_TARGET_NAME} Technical Reference Manual <{IDF_TARGET_TRM_EN_URL}>`__ to learn more.
4040

4141
For a full explanation of these modes, see the :ref:`SPI Flash Modes page <spi-flash-modes>`.
4242

docs/en/esptool/flashing-firmware.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ Change ``PORT`` to the name of :ref:`actually used serial port <serial-port>` an
100100
Compressed 169232 bytes to 89490...
101101
Wrote 169232 bytes (89490 compressed) at 0x00010000 in 2.6 seconds (effective 513.0 kbit/s)...
102102
Hash of data verified.
103-
104-
Leaving...
105103
Hard resetting via RTS pin...
106104

107105
It is now possible to unplug the flashed device and repeat the process by connecting another one and running the command again.

0 commit comments

Comments
 (0)