Hi Jose.
I’m sorry for taking so long to get back to you.
It seems I missed your question,
Answering your question; I’m not sure. But I think it uses it when you need to stream video and take pictures in higher resolutions as well as performing tasks like face detection and recognition. For example, ESP32-CAM boards without PSRAM can’t do face detection and recognition using the ESPCameraWebServer default example.
Regards,
Sara
I check the size of the PSRAM after doing a esp_camera_fb_get() and this what I get:
PSRAM found: Yes
22:36:08.356 -> Total PSRAM: 4194252
22:36:08.514 -> Free PSRAM : 4194252
22:36:08.514 -> Used PSRAM : 0
When the ESP32-CAM start using the PSRAM instead of the local RAM ?
Thanks
Jose
I’m not doing the cam, but would like to know how you checked the PSRAM size. I’ve a custom made pcb with ESP32-WROOM-32U-4
Thanks
Barry
For Barry:
void printRamUsage(const String message)
{
Serial.print(“\n– RAM USAGE “); Serial.print(message); Serial.println(” –“);
Serial.printf(“Total heap : %d\n”, ESP.getHeapSize());
Serial.printf(“Free heap : %d\n”, ESP.getFreeHeap());
Serial.printf(“PSRAM found: %s\n”, psramFound()?”Yes”:”No”);
Serial.printf(“Total PSRAM: %d\n”, ESP.getPsramSize());
Serial.printf(“Free PSRAM : %d\n”, ESP.getFreePsram());
Serial.printf(“Used PSRAM : %d\n”, ESP.getPsramSize() – ESP.getFreePsram());
Serial.printf(“Free Memory: %d\n\n”, GET_FREE_MEMORY());
}// end printRamUsage()