psram in wrover

maneco
Posts: 9
Joined: Tue May 23, 2017 12:09 pm

psram in wrover

Postby maneco » Sun Jul 15, 2018 4:12 pm

HI, now that psram is supported, i'm trying to use it, i want to store a large amount of 8 b its a/d convertions, as internal mamory crashed above 90 k ...
i'm using this command:

byte *sDelayBuffer0 = ( byte* ) ps_malloc( 480000 );

i requested the amount of ram available and it shows above 4 megas with the command

Serial.println(ESP.getFreeHeap());

but it crashes

any ideas?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: psram in wrover

Postby kolban » Mon Jul 16, 2018 2:40 pm

Have you tested that your malloc is indeed returning a pointer to data and not NULL? What does the crash look like? What source statement are we failing upon?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: No registered users and 53 guests