You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
follow-up(#4729): ESP32 pin probe uses free PSRAM instead of installed PSRAM to mask memory pins #5196
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
Unaddressed CodeRabbit review finding(s) from #4729, checked against current master.
1. src/platforms/esp/32/pin_probe_esp32.hpp:72
psramPresent() returns heap_caps_get_free_size(MALLOC_CAP_SPIRAM) > 0. When PSRAM is installed but fully used, it returns false, so GPIO16/17 (and the octal pins) are left in the probe set. AutoResearch can then drive the PSRAM pins as outputs and detach them from the memory controller.
Suggested fix: Use the installed size: esp_psram_get_size() on IDF 5+ and esp_spiram_get_size() on IDF 4, each with its header, and fall back to CONFIG_SPIRAM when neither is available.
Missed CodeRabbit review: merged before the review was read (clud pr_merge_watch bug, fixed in talos-hq/clud#2719).
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
Activity
fix(esp32): mask PSRAM pins by installed PSRAM size, not free size (F…