Skip to content

fix(esp32): mask PSRAM pins by installed PSRAM size, not free size (#5196) - #5221

Merged
zackees merged 3 commits into
masterfrom
grind/5196-esp32-psram-installed-size
Nov 9, 2026
Merged

zackees merged 3 commits into
masterfrom
grind/5196-esp32-psram-installed-size

Conversation

@zackees

@zackees zackees commented Nov 9, 2026

Copy link
Copy Markdown
Member

Closes #5196

psramPresent() in the ESP32 pin probe now checks how much PSRAM is installed instead of how much heap is free. A fully allocated PSRAM heap still owns its pins:

  • IDF 5 and later: esp_psram_get_size().
  • IDF 4: esp_spiram_get_size(), from the matching header for ESP32, ESP32-S2 or ESP32-S3.
  • Returns false when PSRAM support isn't compiled in.

Also carries the pre-existing lint fix for ci/coderabbit_gate.py (SRC004), which is currently red on master.

Verified:

  • The focused test ci/tests/test_autoresearch_pin_discovery_safety.py fails on the old header and passes on the new one.
  • AutoResearch compiles on esp32s3, esp32dev_idf44 and esp32c6.
  • bash lint and ./lint pass.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8d4639f and 6413503.

Files selected for processing: 5

  • .github/workflows/ci-labels.yml
  • ci/coderabbit_gate.py
  • ci/tests/test_autoresearch_pin_discovery_safety.py
  • ci/tests/test_coderabbit_gate.py
  • src/platforms/esp/32/pin_probe_esp32.hpp
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 9, 2026
@github-actions github-actions Bot added sanitized Title, body and conversation screened; review text requires separate screening. and removed sanitized Title, body and conversation screened; review text requires separate screening. labels Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Memory usage (this PR vs. its merge base)

Change in examples/Blink per target. The left number is this PR's image flash / attributed RAM in bytes; the colored delta is the change from the merge base (red ↑ is larger, green ↓ is smaller, Same is unchanged).

Target FLASH [bytes] RAM [bytes]
attiny85 2,460 (Same) 136 (Same)
esp32dev 287,795 (Same) 18,747 (Same)
esp32s3 320,535 (Same) 22,499 (Same)

@zackees
zackees added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@github-actions github-actions Bot added sanitized Title, body and conversation screened; review text requires separate screening. and removed sanitized Title, body and conversation screened; review text requires separate screening. labels Nov 9, 2026
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
Merged via the queue into master with commit d4c2523 Nov 9, 2026
132 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Nov 9, 2026
@zackees
zackees deleted the grind/5196-esp32-psram-installed-size branch November 17, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sanitized Title, body and conversation screened; review text requires separate screening.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

follow-up(#4729): ESP32 pin probe uses free PSRAM instead of installed PSRAM to mask memory pins

1 participant