Skip to content

Conversation

@bdraco
Copy link
Member

@bdraco bdraco commented Jan 4, 2026

Description:

Add documentation for the new heap_in_iram advanced option in the ESP32 IDF framework configuration.

This option allows users to keep heap functions (malloc, free, realloc) in IRAM instead of the new default behavior of placing them in flash. The default (flash) saves ~4-6 KB of IRAM, which is the payoff from months of work reducing heap churn throughout the codebase.

Related issue (if applicable): n/a

Pull request in esphome with YAML changes (if applicable):

Checklist:

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /components/_index.md when creating new documents for new components or cookbook.

@netlify
Copy link

netlify bot commented Jan 4, 2026

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 660e92e
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/6959bf189cfe3f0008554470
😎 Deploy Preview https://deploy-preview-5851--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for the heap_in_iram advanced option in ESP32 IDF framework configuration. This option controls whether heap allocation functions are kept in IRAM or moved to flash memory, with the default placing them in flash to save 4-6 KB of IRAM.

  • Documents the new heap_in_iram boolean option under FreeRTOS Memory Options
  • Explains the tradeoff between IRAM savings and heap operation performance
  • Provides guidance on when users might need to enable this option

@bdraco bdraco added this to the 2026.1.0b1 milestone Jan 4, 2026
@swoboda1337 swoboda1337 merged commit 824c708 into next Jan 5, 2026
14 checks passed
@swoboda1337 swoboda1337 deleted the esp32_heap_iram branch January 5, 2026 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants