Skip to content

Commit 07879eb

Browse files
committed
fix(logging): Unify output messages, notes, and warning formatting
1 parent f3cf107 commit 07879eb

23 files changed

+256
-215
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# esptool.py
22

3-
A Python-based, open-source, platform-independent utility to communicate with the ROM bootloader in Espressif chips.
3+
A Python-based, open-source, platform-independent serial utility for flashing, provisioning, and interacting with Espressif SoCs.
44

55
[![Test esptool](https://github.com/espressif/esptool/actions/workflows/test_esptool.yml/badge.svg?branch=master)](https://github.com/espressif/esptool/actions/workflows/test_esptool.yml) [![Build esptool](https://github.com/espressif/esptool/actions/workflows/build_esptool.yml/badge.svg?branch=master)](https://github.com/espressif/esptool/actions/workflows/build_esptool.yml)
66

docs/en/esptool/flashing-firmware.rst

+18-15
Original file line numberDiff line numberDiff line change
@@ -79,33 +79,36 @@ Change ``PORT`` to the name of :ref:`actually used serial port <serial-port>` an
7979

8080
$ python -m esptool -p /dev/tty.usbserial-0001 -b 460800 --before default_reset --after hard_reset --chip {IDF_TARGET_PATH_NAME} write-flash --flash-mode dio --flash-size detect --flash-freq 40m {IDF_TARGET_BOOTLOADER_OFFSET} build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/hello_world.bin
8181
esptool.py v4.8.1
82-
Serial port /dev/tty.usbserial-0001
82+
Serial port /dev/tty.usbserial-0001:
8383
Connecting.........
84-
Chip is ESP32-D0WD (revision 1)
85-
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
86-
Crystal is 40MHz
87-
MAC: de:ad:be:ef:1d:ea
88-
Uploading stub...
89-
Running stub...
90-
Stub running...
91-
Changing baud rate to 460800
84+
Connected to ESP32 on /dev/tty.usbserial-0001:
85+
Chip type: ESP32-D0WD (revision 1)
86+
Features: WiFi, BT, Dual Core, 240MHz, Vref calibration in eFuse, Coding Scheme None
87+
Crystal frequency: 40MHz
88+
MAC: de:ad:be:ef:1d:ea
89+
90+
Uploading stub flasher...
91+
Running stub flasher...
92+
Stub flasher running.
93+
Changing baud rate to 460800...
9294
Changed.
9395
Configuring flash size...
94-
Auto-detected Flash size: 16MB
96+
Auto-detected flash size: 4MB
9597
Flash will be erased from 0x00001000 to 0x00007fff...
9698
Flash will be erased from 0x00008000 to 0x00008fff...
9799
Flash will be erased from 0x00010000 to 0x00039fff...
98-
Flash params set to 0x0240
99-
SHA digest in image updated
100+
Flash parameters set to 0x0240.
101+
SHA digest in image updated.
100102
Compressed 25536 bytes to 15935...
101-
Wrote 25536 bytes (15935 compressed) at 0x00001000 in 0.7 seconds (effective 275.5 kbit/s)...
103+
Wrote 25536 bytes (15935 compressed) at 0x00001000 in 0.7 seconds (effective 275.5 kbit/s).
102104
Hash of data verified.
103105
Compressed 3072 bytes to 103...
104-
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 334.1 kbit/s)...
106+
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 334.1 kbit/s).
105107
Hash of data verified.
106108
Compressed 169232 bytes to 89490...
107-
Wrote 169232 bytes (89490 compressed) at 0x00010000 in 2.6 seconds (effective 513.0 kbit/s)...
109+
Wrote 169232 bytes (89490 compressed) at 0x00010000 in 2.6 seconds (effective 513.0 kbit/s).
108110
Hash of data verified.
111+
109112
Hard resetting via RTS pin...
110113

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

docs/en/index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Esptool.py Documentation
22
========================
33

4-
This is the documentation for ``esptool.py`` - a Python-based, open source, platform independent serial communication tool. Esptool communicates with the ROM bootloader (or flasher stub) in `Espressif SoCs <https://www.espressif.com/en/products/hardware/socs>`_.
4+
This is the documentation for ``esptool.py`` - a Python-based, open-source, platform-independent utility for flashing, provisioning, and interacting with Espressif SoCs. Esptool communicates with the ROM bootloader (or the flasher stub) in `Espressif SoCs <https://www.espressif.com/en/products/hardware/socs>`_.
5+
56
The flasher stub is a small program included with esptool that replaces the original ROM bootloader in the chip to fix some of its limitations and bugs. See :ref:`stub` for more details.
67

78
``esptool.py``, ``espefuse.py`` and ``espsecure.py`` are a complete toolset for working with Espressif chips. They can do a number of things, for example:

docs/en/migration-guide.rst

+9
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,12 @@ This change affects most of the commands and the following options: ``--flash_si
202202
**Migration Steps:**
203203

204204
1. Replace all underscores in command and option names with ``-`` in your scripts and CI pipelines.
205+
206+
Log Format Changes
207+
******************
208+
209+
A significant amount of changes have been made to the log styling and formatting in ``v5``. Some of the messages, warnings, and errors are now formatted differently or reworded to provide more context and improve readability. Exhaustive list of changed messages won't be provided.
210+
211+
**Migration Steps:**
212+
213+
1. Make sure to adjust any of your scripts, asserts, CI workflows, or others to accommodate the new/changed format of messages. If you are parsing the log output (not recommended), consider importing esptool as a module and using the public API (see :ref:`here <scripting>`) to get the information you need.

0 commit comments

Comments
 (0)