Skip to content

Reduce dram0_0 usage on older ESP32 boards#2497

Merged
ripplebiz merged 1 commit into
meshcore-dev:devfrom
oltaco:reduce-esp32-dram
May 15, 2026
Merged

Reduce dram0_0 usage on older ESP32 boards#2497
ripplebiz merged 1 commit into
meshcore-dev:devfrom
oltaco:reduce-esp32-dram

Conversation

@oltaco
Copy link
Copy Markdown
Member

@oltaco oltaco commented May 7, 2026

Some older ESP32 boards were failing builds due to overflowing the dram segment for BLE and wifi companion firmwares.

This PR sets OFFLINE_QUEUE_SIZE=128 for those boards to bring dram usage back to comfortable levels, and consolidates MAX_CONTACTS back to 160 for the targets which had been lowered to 100 in the past to get them to stop overflowing the dram.

I have checked that all the builds that this PR touches build successfully and have at least 10kB of dram free.

Note: you can check how much dram is in use on a working build using xtensa-esp32-elf-size -A firmware.elf | grep dram0 and adding up .dram0.data and .dram0.bss. The maximum value is around 121kB and can vary based on BT settings.

some older ESP32 boards were pushing the limits of the dram segment causing the linker to fail, especially for ble and wifi firmwares.

lowering OFFLINE_QUEUE_SIZE reduces dram usage
@ripplebiz ripplebiz merged commit 0db7715 into meshcore-dev:dev May 15, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants