mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:07:33 +00:00
esp32-loop-task-stack-dram-attr
The static loop task TCB and stack added in #15659 had no explicit section attribute, so under some sdkconfig combinations (notably CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY) the linker can place them in PSRAM. That is unsafe when CONFIG_SPIRAM_XIP_FROM_PSRAM is also enabled, because the running task's stack must stay reachable while the flash cache is disabled (asserted by esp_task_stack_is_sane_cache_disabled). DRAM_ATTR keeps both objects in internal DRAM regardless of those configs.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
393 MiB
Languages
C++
60.7%
Python
38.9%
C
0.3%
