mirror of
https://github.com/esphome/esphome.git
synced 2025-01-15 20:21:36 +01:00
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
b2a3161cf3
This enhances the `DebugComponent` by adding functionality to log detailed partition table information during the `dump_config()` process. The partition table details are displayed in a clean, aligned format, providing developers with clear insights into the device's flash memory layout. #### **Features:** 1. Logs the following attributes for each partition: - Name - Type - Subtype - Start Address - Size 2. Uses the `esp_partition` API for ESP32 devices running either Arduino or ESP-IDF. 3. Ensures alignment of columns for improved readability. #### **Example Log Output:** ``` [23:37:05][C][debug:033]: Partition table: [23:37:05][C][debug:034]: Name Type Subtype Address Size [23:37:05][C][debug:038]: nvs 1 2 0x00009000 0x00005000 [23:37:05][C][debug:038]: otadata 1 0 0x0000E000 0x00002000 [23:37:05][C][debug:038]: app0 0 16 0x00010000 0x003C0000 [23:37:05][C][debug:038]: app1 0 17 0x003D0000 0x003C0000 [23:37:05][C][debug:038]: eeprom 1 153 0x00790000 0x00001000 [23:37:05][C][debug:038]: spiffs 1 130 0x00791000 0x0000F000 ``` #### **Why This Change is Useful:** 1. **Improved Debugging:** Developers can verify partition configurations directly from logs, without requiring physical access or external tools. 2. **Diagnostic Aid:** Identifies potential issues related to insufficient partition sizes or incorrect layouts. 3. **Consistency:** Provides a clear and formatted output to improve log readability. #### **Implementation Details:** - **Platform-Specific:** The feature is implemented for ESP32 devices using the ESP-IDF framework. - **Formatted Output:** Ensures aligned columns using fixed-width formatting for better clarity. |
||
---|---|---|
.devcontainer | ||
.github | ||
.vscode | ||
docker | ||
esphome | ||
script | ||
tests | ||
.clang-format | ||
.clang-tidy | ||
.coveragerc | ||
.dockerignore | ||
.editorconfig | ||
.flake8 | ||
.gitattributes | ||
.gitignore | ||
.pre-commit-config.yaml | ||
.yamllint | ||
CODE_OF_CONDUCT.md | ||
CODEOWNERS | ||
CONTRIBUTING.md | ||
LICENSE | ||
MANIFEST.in | ||
platformio.ini | ||
pyproject.toml | ||
README.md | ||
requirements_dev.txt | ||
requirements_optional.txt | ||
requirements_test.txt | ||
requirements.txt | ||
sdkconfig.defaults |
ESPHome
Documentation: https://esphome.io/
For issues, please go to the issue tracker.
For feature requests, please see feature requests.