Skip to content

Commit

Permalink
Fix LITTLEFS_MALLOC_STRATEGY_SPIRAM depends.
Browse files Browse the repository at this point in the history
ESP32_SPIRAM_SUPPORT has been renamed to SPIRAM since IDF 5.0:
espressif/esp-idf@0687daf#diff-23044c90e9c0d809dc2befbe42491cd077bf06445cd24e6acba7784ea5f28b27R20

Also checking for SPIRAM support is not necessary, as SPIRAM_USE_MALLOC
already depends on SPIRAM.

Additionally allocating using heap_caps_malloc(..., MALLOC_CAP_SPIRAM)
is also possible if SPIRAM_USE_CAPS_ALLOC is set (then SPIRAM is
**only** allocatable with heap_caps_malloc, not with malloc)
  • Loading branch information
rtrbt authored and BrianPugh committed Mar 3, 2025
1 parent dad3f96 commit e8d7881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ menu "LittleFS"

config LITTLEFS_MALLOC_STRATEGY_SPIRAM
bool "SPIRAM heap"
depends on SPIRAM_USE_MALLOC && ESP32_SPIRAM_SUPPORT
depends on SPIRAM_USE_MALLOC || SPIRAM_USE_CAPS_ALLOC
help
Uses ESP-IDF heap_caps_malloc to allocate from SPIRAM heap.

Expand Down

0 comments on commit e8d7881

Please sign in to comment.