want to use DMA for display and spi ram for all other but getting error

skeiron09
Posts: 8
Joined: Mon Nov 15, 2021 5:59 am

want to use DMA for display and spi ram for all other but getting error

Postby skeiron09 » Sun Jan 23, 2022 9:38 am

CONFIG_ESP32S2_SPIRAM_SUPPORT=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
CONFIG_ESP32S2_SPIRAM_SUPPORT=y

#
# SPI RAM config
#
CONFIG_SPIRAM_TYPE_AUTO=y
# CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
CONFIG_SPIRAM_SIZE=-1

#
# PSRAM clock and cs IO for ESP32S2
#
CONFIG_DEFAULT_PSRAM_CLK_IO=30
CONFIG_DEFAULT_PSRAM_CS_IO=26
# end of PSRAM clock and cs IO for ESP32S2

CONFIG_SPIRAM_SPEED_40M=y
CONFIG_SPIRAM=y
CONFIG_SPIRAM_BOOT_INIT=y
# CONFIG_SPIRAM_IGNORE_NOTFOUND is not set
# CONFIG_SPIRAM_USE_MEMMAP is not set
# CONFIG_SPIRAM_USE_CAPS_ALLOC is not set
CONFIG_SPIRAM_USE_MALLOC=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=16384
# end of SPI RAM config

I am using this config to use spiram for all ram needs of my application and want to use internal/dma for display but keep getting this error.

ESP_ERROR_CHECK failed: esp_err_t 0x101 (ESP_ERR_NO_MEM) at 0x4002bfac
file: "lib/wifi/src/wifi.c" line 279
func: init_wifi
expression: esp_wifi_init(&cfg)

abort() was called at PC 0x4002bfaf on core 0

Backtrace:0x4002dea3:0x3ffe5020 0x4002e775:0x3ffe5040 0x40035c6e:0x3ffe5060 0x4002bfaf:0x3ffe50d0 0x40083d71:0x3ffe50f0 0x40082e13:0x3ffe51e0 0x400313f9:0x3ffe5200
#0 0x4002dea3:0x3ffe5020 in panic_abort at /home/satyam/.platformio/packages/framework-espidf/components/esp_system/panic.c:368
#1 0x4002e775:0x3ffe5040 in esp_system_abort at /home/satyam/.platformio/packages/framework-espidf/components/esp_system/system_api.c:112

Who is online

Users browsing this forum: castieldean and 51 guests