Expand description
§Bootloader Support Library supplementing esp-hal
§Overview
This crate contains functionality related to the ESP-IDF 2nd stage bootloader.
- populating the application-descriptor
- read the partition table
- conveniently use a partition to read and write flash contents
§Additional configuration
We’ve exposed some configuration options that don’t fit into cargo
features. These can be set via environment variables, or via cargo’s [env]
section inside .cargo/config.toml. Below is a table of tunable parameters
for this crate:
| Name | Description | Default value | Allowed value |
|---|---|---|---|
ESP_BOOTLOADER_ESP_IDF_CONFIG_MMU_PAGE_SIZE ⚠️ Unstable | ESP32-C2, ESP32-C6 and ESP32-H2 support configurable page sizes. This is currently only used to populate the app descriptor. |
| |
ESP_BOOTLOADER_ESP_IDF_CONFIG_ESP_IDF_VERSION ⚠️ Unstable | ESP-IDF version used in the application descriptor. Currently it’s not checked by the bootloader. | ||
ESP_BOOTLOADER_ESP_IDF_CONFIG_PARTITION_TABLE_OFFSET ⚠️ Unstable | The address of partition table (by default 0x8000). Allows you to move the partition table, it gives more space for the bootloader. Note that the bootloader and app will both need to be compiled with the same PARTITION_TABLE_OFFSET value. |
§Feature Flags
validation(enabled by default) — Enable MD5 validation of the partition table.log— Enable support for thelogcratedefmt— Enable support fordefmt
Modules§
- ota
- Over The Air Updates (OTA)
- partitions
- Partition Table Support
Macros§
- esp_
app_ desc - This macro populates the application descriptor (see EspAppDesc) which is
available as a static named
ESP_APP_DESC
Structs§
- EspApp
Desc - ESP-IDF compatible application descriptor
Constants§
- BUILD_
DATE - Build date
- BUILD_
TIME - Build time
- ESP_
IDF_ COMPATIBLE_ VERSION - The (pretended) ESP-IDF version
- MMU_
PAGE_ SIZE - MMU page size in bytes