ESP32-Cam -- Is there a way to reduce the amont of SPI PSRAM memory used up during esp_camera_init

visdespressif
Posts: 1
Joined: Tue Feb 08, 2022 12:34 am

ESP32-Cam -- Is there a way to reduce the amont of SPI PSRAM memory used up during esp_camera_init

Postby visdespressif » Tue Feb 08, 2022 12:44 am

Below code:-


  1. Serial.printf("Before camera config ... SPIRam Total heap %d, SPIRam Free Heap %d", ESP.getPsramSize(), ESP.getFreePsram())
  2.  cam_err = esp_camera_init(&config);
  3.  Serial.printf("After camera config ... SPIRam Total heap %d, SPIRam Free Heap %d", ESP.getPsramSize(), ESP.getFreePsram())

Will give the following printed:-

Code: Select all

  Before camera config ... SPIRam Total heap   4194252, SPIRam Free Heap   4194252
  After  camera config ... SPIRam Total heap   4194204, SPIRam Free Heap   1314204
So of 4MB, only 1.3 MB remains free after esp_camera_init. Is there a possibility such that this can be reduced, and have relatively larger amount of free memory in PSRAM.

I am using AI-Thinker board ESP32-Cam.

(I am following this code: https://github.com/jameszah/ESP32-CAM-V ... der-junior)

Who is online

Users browsing this forum: No registered users and 88 guests