2019-01-28 01:36:47 +00:00
|
|
|
# MicroPython on ESP32, ESP IDF configuration with SPIRAM support
|
|
|
|
|
2023-05-09 00:52:54 +01:00
|
|
|
CONFIG_SPIRAM=y
|
2019-09-13 14:04:13 +01:00
|
|
|
CONFIG_SPIRAM_CACHE_WORKAROUND=y
|
2019-01-29 11:22:47 +00:00
|
|
|
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
|
2023-07-28 03:16:05 +01:00
|
|
|
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
|
2023-05-09 00:52:54 +01:00
|
|
|
|
|
|
|
# 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
|
2023-12-04 23:32:27 +00:00
|
|
|
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
|
|
|
|
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
|
2023-05-09 00:52:54 +01:00
|
|
|
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
|
2023-12-04 23:32:27 +00:00
|
|
|
CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH=y
|