Exclude web server, paxcounter and few others from original ESP32 generation to fix IRAM overflow#10005
Merged
Conversation
…eration to fix IRAM overflow
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates ESP32 (original/“OG”) build configuration to reduce IRAM usage by excluding higher-footprint features (notably the HTTP web server and paxcounter), and adds a compile-time stub for the web server header when the web server is excluded.
Changes:
- Exclude Paxcounter, web server (
mesh/http), and related features from the OG ESP32 build viabuild_src_filterandMESHTASTIC_EXCLUDE_*flags. - Adjust OG ESP32
lib_depsto remove web server / paxcounter-related dependencies. - Add stub declarations/definitions in
WebServer.hfor builds where the web server is excluded.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| variants/esp32/station-g1/platformio.ini | Unflags BOARD_HAS_PSRAM for Station G1 environment. |
| variants/esp32/esp32.ini | Excludes web server/paxcounter sources and sets MESHTASTIC_EXCLUDE_* flags for OG ESP32; updates dependencies. |
| src/mesh/http/WebServer.h | Adds MESHTASTIC_EXCLUDE_WEBSERVER guard and stubbed APIs/types when excluded. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Removed WiFiAPClient.cpp from build source filter.
skrashevich
pushed a commit
to skrashevich/meshtastic-firmware
that referenced
this pull request
Apr 4, 2026
…eration to fix IRAM overflow (meshtastic#10005) * Exclude web server, paxcounter and few others from original ESP32 generation to fix IRAM overflow * Update variants/esp32/esp32.ini Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update variants/esp32/esp32.ini Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update build source filter in esp32.ini Removed WiFiAPClient.cpp from build source filter. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
3 tasks
3 tasks
cpatulea
referenced
this pull request
in dbinfrago/libpax
May 5, 2026
jeek
pushed a commit
to jeek/Meshtastic-Exploiteers-Hacker-Pager
that referenced
this pull request
Jun 30, 2026
…eration to fix IRAM overflow (meshtastic#10005) * Exclude web server, paxcounter and few others from original ESP32 generation to fix IRAM overflow * Update variants/esp32/esp32.ini Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update variants/esp32/esp32.ini Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update build source filter in esp32.ini Removed WiFiAPClient.cpp from build source filter. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sad, but original ESP32 can't support webserver anymore due to IRAM constraints