Hi. I have added myself a PSRAM (8MB, APS6404L) to the WEMOS LOLIN 32 Light board. I just need to enable the support. I'm using Arduino IDE 2. There is an option in the menu to enable/disable PSRAM support, but it only appears on boards that have PSRAM as standard.
I don't know how to do it in Arduino for a board that doesn't have PSRM as standard. Theoretically in sdkconfig the entries are:
However, the SPI RAM is not initialised for my board. I think this is due to the way the board itself is defined in Arduino.
I did the SPI RAM addition according to this description: https://blog.pagefault-limited.co.uk/lolin32-lite-esp32-8mb-psram-upgrade-mod
According to the description here: https://arduinojson.org/v6/how-to/use-external-ram-on-esp32/ for Arduino you don't need to configure anything and the SPI RAM should supposedly be detected by itself. But it seems to me that it depends on the board definition.
I even set in sdkconfig:
CONFIG_SPIRAM_BOOT_INIT =y
CONFIG_SPIRAM_USE_MEMMAP =y
After reset I see only these entries:
PSRAM found: 0
PSRAM not found, inputBufferSize: 6399 bytes
Any ideas?
I don't know how to do it in Arduino for a board that doesn't have PSRM as standard. Theoretically in sdkconfig the entries are:
#
# 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
# CONFIG_SPIRAM_SPEED_40M is not set
CONFIG_SPIRAM_SPEED_80M=y
CONFIG_SPIRAM=y
# CONFIG_SPIRAM_BOOT_INIT 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_MALLOC_ALWAYSINTERNAL=4096
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY is not set
# CONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY is not set
CONFIG_SPIRAM_CACHE_WORKAROUND=y
However, the SPI RAM is not initialised for my board. I think this is due to the way the board itself is defined in Arduino.
I did the SPI RAM addition according to this description: https://blog.pagefault-limited.co.uk/lolin32-lite-esp32-8mb-psram-upgrade-mod
According to the description here: https://arduinojson.org/v6/how-to/use-external-ram-on-esp32/ for Arduino you don't need to configure anything and the SPI RAM should supposedly be detected by itself. But it seems to me that it depends on the board definition.
I even set in sdkconfig:
CONFIG_SPIRAM_BOOT_INIT =y
CONFIG_SPIRAM_USE_MEMMAP =y
After reset I see only these entries:
PSRAM found: 0
PSRAM not found, inputBufferSize: 6399 bytes
Any ideas?