Skip to content

Conversation

@bklaric1
Copy link

Changes

Remove the CONFIG_SYS_HEAP_AUTO=y config from both defconfig files, since it is no longer needed.

It was necessary when sram0 was smaller than 262136 bytes, as stated here.
But since #97448 increased the sram0 size to 456kB, this option is selected by default.

Tests

Tested as following:

  1. Commented out CONFIG_SYS_HEAP_AUTO=y in stm32h7s78_dk_stm32h7s7xx_ext_flash_app_defconfig
  2. Built and flashed a sample (dumb_http_server, since I was already testing something else with it)
  3. Checked \build\zephyr\.config and confirmed that CONFIG_SYS_HEAP_AUTO=y is enabled by default

@github-actions
Copy link

Hello @bklaric1, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

Thanks.
Btw, this symbol is enabled automatically when needed, so hard setting it wasn't required anyway:

	default SYS_HEAP_SMALL_ONLY if (SRAM_SIZE <= 256)

As stated, remove the unnecessary CONFIG_SYS_HEAP_AUTO=y from both defconigs, since it is enabled per default for this board.

Signed-off-by: Benjamin Klaric <[email protected]>
@bklaric1 bklaric1 force-pushed the cleanup-stm32h7s78_dk-defconfig branch from 27f79ca to 121e07e Compare November 12, 2025 09:17
@sonarqubecloud
Copy link

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.

4 participants