Help with ESP32 PSRAM

Mike0675

Member
I try to write my Projects for both Teensy and ESP32.

In Teensy I use EXTMEM to put a Class in PSRAM like:

EXTMEM shared_Cache *sCache;

This works like a charm.

But how can I do this with ESP32?

All I can find is something like:

shared_Cache *sCache = (shared_Cache*)heap_caps_malloc(4000000, MALLOC_CAP_SPIRAM);

This compiles, but put the ESP32 in a bootloop.

Thanks for your help.
 
Back
Top