5e26862b2c
.. and switch makerfabs tft7 over to it as a test. We have our existing way of "reserving" PSRAM for esp-idf (we actually control it all but add back the "reserved" part). However, this does not work with off the shelf esp_lcd, which only will allocate a framebuffer in PSRAM if CONFIG_SPIRAM_USE_CAPS_ALLOC (or CONFIG_SPIRAM_USE_ALLOC) is defined, not if CONFIG_SPIRAM_USE_MEMMAP is. This new way is possibly compatible with more esp-idf code, but it complicates CircuitPython's initial startup since nothing until port_heap_init is permitted to use the CP heap or supervisor allocator. In practice this seems to be OK today. Right now this doesn't change the setting across all boards with PSRAM and so it does not revert esp-idf to its prior state. Instead, what I'm thinking is that we can do it during or just after the IDF5 update when sdkconfig files will be getting an overhaul anyway.
42 lines
1003 B
Plaintext
42 lines
1003 B
Plaintext
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
|
|
#
|
|
# SPI RAM config
|
|
#
|
|
# CONFIG_SPIRAM_MODE_QUAD is not set
|
|
CONFIG_SPIRAM_MODE_OCT=y
|
|
CONFIG_SPIRAM_TYPE_AUTO=y
|
|
# end of SPI RAM config
|
|
|
|
CONFIG_DEFAULT_PSRAM_CLK_IO=30
|
|
#
|
|
# PSRAM Clock and CS IO for ESP32S3
|
|
#
|
|
CONFIG_DEFAULT_PSRAM_CS_IO=26
|
|
# end of PSRAM Clock and CS IO for ESP32S3
|
|
|
|
# CONFIG_SPIRAM_FETCH_INSTRUCTIONS is not set
|
|
# CONFIG_SPIRAM_RODATA is not set
|
|
CONFIG_SPIRAM_SPEED_80M=y
|
|
# CONFIG_SPIRAM_SPEED_40M is not set
|
|
CONFIG_SPIRAM=y
|
|
CONFIG_SPIRAM_BOOT_INIT=y
|
|
# CONFIG_SPIRAM_IGNORE_NOTFOUND is not set
|
|
#CONFIG_SPIRAM_USE_MEMMAP=y
|
|
CONFIG_SPIRAM_USE_CAPS_ALLOC=y
|
|
# CONFIG_SPIRAM_USE_MALLOC is not set
|
|
CONFIG_SPIRAM_MEMTEST=y
|
|
#
|
|
# LWIP
|
|
#
|
|
CONFIG_LWIP_LOCAL_HOSTNAME="matouch-tft"
|
|
# end of LWIP
|
|
#
|
|
# CONFIG_ESP_CONSOLE_NONE is not set
|
|
CONFIG_ESP_CONSOLE_UART_BAUDRATE=115200
|
|
CONFIG_ESP_CONSOLE_UART_CUSTOM_NUM_0=y
|
|
CONFIG_ESP_CONSOLE_UART_CUSTOM=y
|
|
CONFIG_ESP_CONSOLE_UART_NUM=0
|
|
CONFIG_ESP_CONSOLE_UART_RX_GPIO=44
|
|
CONFIG_ESP_CONSOLE_UART_TX_GPIO=43
|
|
CONFIG_ESP_CONSOLE_UART=y
|