File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,10 @@ LWIP (Lightweight IP) behavior. Some options improve performance while others sa
164
164
- **enable_lwip_check_thread_safety** (*Optional*, boolean): Enable LWIP thread safety checks to detect incorrect usage of
165
165
the TCP/IP stack from multiple threads. This helps catch thread safety issues when core locking is enabled. Defaults to `true`.
166
166
167
+ - **disable_libc_locks_in_iram** (*Optional*, boolean): Disable placing libc lock functions in IRAM. This saves approximately
168
+ 1.6KB of IRAM by placing these functions in flash memory instead. This is safe for ESPHome since no IRAM interrupt service
169
+ routines (ISRs that run while cache is disabled) use libc lock APIs. Defaults to `true` (IRAM placement disabled to save RAM).
170
+
167
171
Some options can be disabled to save flash memory without affecting typical ESPHome functionality. The performance
168
172
options (defaulting to `true` ) improve socket operation performance but can be disabled if you need better
169
173
multi-threaded scalability (which is uncommon since ESPHome uses an event loop).
@@ -182,6 +186,7 @@ esp32:
182
186
enable_lwip_check_thread_safety: true # Thread safety validation
183
187
184
188
# Memory saving options
189
+ disable_libc_locks_in_iram: true # Enabled by default, saves 1.6KB IRAM
185
190
enable_lwip_dhcp_server: false # Disabled by default, only needed for AP mode
186
191
enable_lwip_mdns_queries: false # Enabled by default, can disable if not using .local hostnames
187
192
enable_lwip_bridge_interface: false # Disabled by default
You can’t perform that action at this time.
0 commit comments