Page 1 of 1

PSRAM

Posted: Sat Aug 31, 2019 8:18 am
by Salakhov
Hi,

For my POV project is necessary big memory for leds data arrays. RAM is not enough.
If to move from WROOM TO WROVER B, is it possible to use PSRAM for this purpose at Arduino IDE?
If YES, how to connect PSRAM and how slower it will be work?

Thanks!

P.S.

May I use pins for SDMMC and vspi?

SDMMC ESP32
D2 12
D3 13
CMD 15
CLK 14
D0 2
D1 4

vspi
SCLK = 18, MISO = 19, MOSI = 23, SS = 5.

Re: PSRAM

Posted: Sun Sep 01, 2019 12:06 pm
by lbernstone
You will have to manually allocate the memory with ps_malloc (https://github.com/espressif/arduino-es ... sram.h#L25), but enabling psram is simply a matter of choosing a wrover device from the boards list. How much slower it is depends on how actively you use it. If it is for storing configuration arrays or bitmaps, it will be fast enough. If you are continuously changing single bits within the variables, it will be notably slower than dram.

SDMMC is a hardware peripheral- the pins cannot be remapped. You will need to use sd (and SPI) if you want to remap to vspi.