ESP32-Cam -- Is there a way to reduce the amont of SPI PSRAM memory used up during esp_camera_init
Posted: Tue Feb 08, 2022 12:44 am
Below code:-
Will give the following printed:-
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)
- Serial.printf("Before camera config ... SPIRam Total heap %d, SPIRam Free Heap %d", ESP.getPsramSize(), ESP.getFreePsram())
- cam_err = esp_camera_init(&config);
- 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
I am using AI-Thinker board ESP32-Cam.
(I am following this code: https://github.com/jameszah/ESP32-CAM-V ... der-junior)