98fd78437c
Also shrinks the "prefer internal" threshold to 8KB, any allocation larger than this will try PSRAM first. Change the mbedTLS config to use regular malloc() as well, instead of internal only. The default is set to internal-only due to to potential physical security issue of readout via PSRAM on the original ESP32. However, as MicroPython runs from plaintext flash and all other context is in the MP heap of PSRAM then it's hard to see how worsens physical security for MP. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
15 lines
481 B
Plaintext
15 lines
481 B
Plaintext
# MicroPython on ESP32-S2 and ESP32-PAD1_subscript_3, ESP IDF configuration with SPIRAM support
|
|
CONFIG_SPIRAM_MODE_QUAD=y
|
|
CONFIG_SPIRAM_TYPE_AUTO=y
|
|
CONFIG_SPIRAM_CLK_IO=30
|
|
CONFIG_SPIRAM_CS_IO=26
|
|
CONFIG_SPIRAM_SPEED_80M=y
|
|
CONFIG_SPIRAM=y
|
|
CONFIG_SPIRAM_BOOT_INIT=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
|