PSRAM init failed! - can't get esp32-cam board to work
Posted: Fri Dec 23, 2022 11:30 pm
Hello everyone!
I've bought this ESP32-CAM board https://www.ebay.de/itm/175340316484?var=474577788572 and have been trying to get the camera webserver https://github.com/MakeMagazinDE/ESP32- ... sp32-gucki to work. However, whatever I do it always fails on startup with this message:
I used both the latest version of the Arduino IDE (2.0.x) and 1.8.18. I configured it as an AI Thinker board and have had no trouble connecting to it (through the serial-to-USB converter that was included) and running other code on it, but once it tries to access the PSRAM it fails. Querying the memory via
gives this result:
I have tried setting the IDE to other random ESP32 boards but no luck. The metal cover over the chip has the following inscription:
DM - ESP32-s
FCC-ID: 2ahmr-esp32s
So it doesn't actually say "AI Thinker". Is there a way to find out which board I actually have?
Using this code:
gives me this answer:
Can anyone help me? Do I have a bad board?
I've bought this ESP32-CAM board https://www.ebay.de/itm/175340316484?var=474577788572 and have been trying to get the camera webserver https://github.com/MakeMagazinDE/ESP32- ... sp32-gucki to work. However, whatever I do it always fails on startup with this message:
Code: Select all
Fatal Error; Halting
No PSRAM found; camera cannot be initialised: Please check the board config for your module.
Code: Select all
#include <Arduino.h>
void setup() {
log_d("Total heap: %d", ESP.getHeapSize());
log_d("Free heap: %d", ESP.getFreeHeap());
log_d("Total PSRAM: %d", ESP.getPsramSize());
log_d("Free PSRAM: %d", ESP.getFreePsram());
}
void loop() {}
Code: Select all
E (80) psram: PSRAM ID read error: 0xffffffff
[ 5][W][esp32-hal-psram.c:71] psramInit(): PSRAM init failed!
[ 41][D][sketch_dec24a.ino:4] setup(): Total heap: 367968
[ 41][D][sketch_dec24a.ino:5] setup(): Free heap: 344736
[ 41][D][sketch_dec24a.ino:6] setup(): Total PSRAM: 0
[ 46][D][sketch_dec24a.ino:7] setup(): Free PSRAM: 0
I have tried setting the IDE to other random ESP32 boards but no luck. The metal cover over the chip has the following inscription:
DM - ESP32-s
FCC-ID: 2ahmr-esp32s
So it doesn't actually say "AI Thinker". Is there a way to find out which board I actually have?
Using this code:
Code: Select all
void loop() {
for(int i=0; i<17; i=i+8) {
chipId |= ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i;
}
Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
Serial.printf("This chip has %d cores\n", ESP.getChipCores());
Serial.print("Chip ID: "); Serial.println(chipId);
delay(3000);
}
Code: Select all
19:53:39.398 -> Chip ID: 7659584
19:53:42.413 -> ESP32 Chip model = ESP32-D0WDQ5 Rev 3
19:53:42.413 -> This chip has 2 cores