mirror of
https://github.com/esphome/esphome.git
synced 2026-09-23 13:08:41 +00:00
Add a new `sram1_as_iram` option under `esp32 > framework > advanced` that enables CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM, reclaiming 40KB of SRAM1 memory as additional IRAM on the original ESP32. This requires a bootloader from ESP-IDF v5.1 or later. USB flashing updates the bootloader automatically, but OTA does not. At boot, ESPHome now detects the bootloader version and suggests enabling this option when the bootloader is compatible.
27 lines
826 B
YAML
27 lines
826 B
YAML
esp32:
|
|
board: esp32dev
|
|
framework:
|
|
type: esp-idf
|
|
advanced:
|
|
enable_ota_rollback: true
|
|
enable_lwip_mdns_queries: true
|
|
enable_lwip_bridge_interface: true
|
|
disable_libc_locks_in_iram: false # Test explicit opt-out of RAM optimization
|
|
use_full_certificate_bundle: false # Test CMN bundle (default)
|
|
include_builtin_idf_components:
|
|
- freertos # Test escape hatch (freertos is always included anyway)
|
|
enable_full_printf: false
|
|
disable_debug_stubs: true
|
|
disable_ocd_aware: true
|
|
disable_usb_serial_jtag_secondary: true
|
|
disable_dev_null_vfs: true
|
|
disable_mbedtls_peer_cert: true
|
|
disable_mbedtls_pkcs7: true
|
|
disable_regi2c_in_iram: true
|
|
disable_fatfs: true
|
|
sram1_as_iram: true
|
|
|
|
wifi:
|
|
ssid: MySSID
|
|
password: password1
|