Page 1 of 1

WROVER SRAM/PSRAM misunderstanding

Posted: Sat Dec 03, 2022 4:12 pm
by unknow005
Dear community,

I allways used ESP32-WROOM module. But some my projects uses video buffers with size in hundreds of kB of SRAM. The SRAM limit of this module is 512 kB which is crazy low. But I came across the ESP32-WROVER module which has the same size of SRAM (512 kB) but it also has PSRAM in megabytes. I thought this memory automatically expands the SRAM ... so I could use a much larger video buffers in my projects. But it doesn't work that way for me. My question is: what is the PSRAM even for? Is it possible to "merge" it with the SRAM address space to make 512 kB + 8 MB size of SRAM?

Thank you!

Re: WROVER SRAM/PSRAM misunderstanding

Posted: Sat Dec 03, 2022 6:41 pm
by unknow005

Re: WROVER SRAM/PSRAM misunderstanding

Posted: Sat Dec 03, 2022 7:15 pm
by unknow005
But still... is the 4 MB of PSRAM maximum which can be addressed by ESP32? Or is the article outdated and is it possible to use all of 8 MB?

Re: WROVER SRAM/PSRAM misunderstanding

Posted: Sun Dec 04, 2022 5:55 am
by ESP_Sprite
There is a 'himem' API that allows for some banked PSRAM access, but you still can only get access to 4MiB at one time. If you need a larger address space for PSRAM, later chips (ESP32S2 and ESP32S3) have that.