Reverts workaround added inacbdbcd9. According to the linked ESP-IDF issue this was only a problem for ESP-IDF V5.0.x, and support for versions older than V5.2 was dropped in6e5d8d009. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
18 lines
706 B
Text
18 lines
706 B
Text
# MicroPython on ESP32, ESP IDF configuration with SPIRAM support
|
|
|
|
CONFIG_SPIRAM=y
|
|
CONFIG_SPIRAM_CACHE_WORKAROUND=y
|
|
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
|
|
CONFIG_SPIRAM_USE_MALLOC=y
|
|
|
|
# This is the threshold for preferring small allocations from internal memory
|
|
# first, before failing over to PSRAM.
|
|
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192
|
|
|
|
# SPIRAM increases the size of the firmware and overflows iram0_0_seg, due
|
|
# to PSRAM bug workarounds. Apply some options to reduce the firmware size.
|
|
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
|
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
|
|
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
|
|
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
|
|
CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH=y
|