mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
Tested with ESP32_GENERIC, ESP32_GENERIC_C3, ESP32_GENERIC_C6 and ESP32_GENERIC_S3 firmware, using the full test suite. There do not seem to be any regressions. Signed-off-by: Damien George <damien@micropython.org>
23 lines
854 B
Plaintext
23 lines
854 B
Plaintext
# 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
|
|
|
|
# Workaround for bug in IDFv5.5-v5.5.1
|
|
# See https://github.com/espressif/esp-idf/issues/17436#issuecomment-3197206868
|
|
CONFIG_NEWLIB_NANO_FORMAT=n
|