View Single Post
Old 02-23-2021, 01:14 AM   #69
stevenaleach
Enthusiast
stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.stevenaleach can bend spoons with a thought.
 
Posts: 46
Karma: 134116
Join Date: Oct 2013
Device: Android Tablet
And here's a Reddit comment explaining PSRAM under Arduino:

"Yes, PSRAM is supported including in ESP32 Arduino Core v1.0.1 provided you choose a Board which has attached PSRAM in the Tools menu.

Replace any malloc() call with ps_malloc() and it will allocate the buffer from PSRAM instead of internal memory. That's the only thing you need to do.

If you want to go one layer deeper then ESP-IDF has a "heap capabilities" layer which lets you do other fancy things, but for most use cases ps_malloc() will work fine."

I notice that you have to select a checkbox under Tools in the current version of the Arduino IDE to enable PSRAM. I haven't actually tried using it yet, I'm still playing with MicroPython now that I've finally got enough memory to support it and have more than 64k left to play with.
stevenaleach is offline   Reply With Quote