s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
888 stars 209 forks source link

Startup Failure: Check SD card inserted #489

Open deanfourie1 opened 1 day ago

deanfourie1 commented 1 day ago

So, i've looked though all issues etc, I still cannot find a solution to this.

Still, I cannot get past this error, "Startup Failure: Check SD card inserted".

Any ideas? My appGlobals.h is as follows.

// User's ESP32 cam board
#if defined(CONFIG_IDF_TARGET_ESP32)
//#define CAMERA_MODEL_AI_THINKER 
//#define CAMERA_MODEL_WROVER_KIT 
//#define CAMERA_MODEL_ESP_EYE 
//#define CAMERA_MODEL_M5STACK_PSRAM 
//#define CAMERA_MODEL_M5STACK_V2_PSRAM 
//#define CAMERA_MODEL_M5STACK_WIDE 
//#define CAMERA_MODEL_M5STACK_ESP32CAM
//#define CAMERA_MODEL_M5STACK_UNITCAM
//#define CAMERA_MODEL_TTGO_T_JOURNAL 
#define CAMERA_MODEL_ESP32_CAM_BOARD
//#define CAMERA_MODEL_TTGO_T_CAMERA_PLUS
//#define AUXILIARY

// User's ESP32S3 cam board
//#elif defined(CONFIG_IDF_TARGET_ESP32S3)
//#define CAMERA_MODEL_FREENOVE_ESP32S3_CAM
//#define CAMERA_MODEL_XIAO_ESP32S3 
//#define CAMERA_MODEL_NEW_ESPS3_RE1_0
//#define CAMERA_MODEL_M5STACK_CAMS3_UNIT
//#define CAMERA_MODEL_ESP32S3_EYE 
//#define CAMERA_MODEL_ESP32S3_CAM_LCD
//#define CAMERA_MODEL_DFRobot_FireBeetle2_ESP32S3
//#define CAMERA_MODEL_DFRobot_Romeo_ESP32S32
//#define AUXILIARY
#endif

Thanks

rjsachse commented 1 day ago

do you have a picture of the board?

deanfourie1 commented 1 day ago

do you have a picture of the board?

Sure, is this one exactly.

image

rjsachse commented 23 hours ago

you have the wrong board defined. try CAMERA_MODEL_AI_THINKER

deanfourie1 commented 23 hours ago

Sorry I think I actually copied the wrong config, I initially tested with AI Thinker board selected and I get the same result.

I tried with esp32cam board type as test and this must have been the config I pasted above.

I will test and confirm but I am 100% sure I am getting the same result with AI Thinker board selected.

deanfourie1 commented 18 hours ago

so I just tried with the following and I still get the same error.

// User's ESP32 cam board
#if defined(CONFIG_IDF_TARGET_ESP32)
#define CAMERA_MODEL_AI_THINKER 
//#define CAMERA_MODEL_WROVER_KIT 
//#define CAMERA_MODEL_ESP_EYE 
//#define CAMERA_MODEL_M5STACK_PSRAM 
//#define CAMERA_MODEL_M5STACK_V2_PSRAM 
//#define CAMERA_MODEL_M5STACK_WIDE 
//#define CAMERA_MODEL_M5STACK_ESP32CAM
//#define CAMERA_MODEL_M5STACK_UNITCAM
//#define CAMERA_MODEL_TTGO_T_JOURNAL 
//#define CAMERA_MODEL_ESP32_CAM_BOARD
//#define CAMERA_MODEL_TTGO_T_CAMERA_PLUS
//#define AUXILIARY

// User's ESP32S3 cam board
//#elif defined(CONFIG_IDF_TARGET_ESP32S3)
//
//#define CAMERA_MODEL_FREENOVE_ESP32S3_CAM
//#define CAMERA_MODEL_XIAO_ESP32S3 
//#define CAMERA_MODEL_NEW_ESPS3_RE1_0
//#define CAMERA_MODEL_M5STACK_CAMS3_UNIT
//#define CAMERA_MODEL_ESP32S3_EYE 
//#define CAMERA_MODEL_ESP32S3_CAM_LCD
//#define CAMERA_MODEL_DFRobot_FireBeetle2_ESP32S3
//#define CAMERA_MODEL_DFRobot_Romeo_ESP32S3
//#define AUXILIARY
#endif
deanfourie1 commented 17 hours ago

Also have cloned latest version and compiled using 3.0.5 esp32

deanfourie1 commented 17 hours ago

This is the SD I'm using.

image

s60sc commented 15 hours ago

if that is a 256gb its not supported by esp. Max is 32gb

deanfourie1 commented 14 hours ago

Ok now im getting this

I guess these are crappy fake boards.

[00:00:04.096 startWebServer] Starting web server on port: 80
[00:00:04.096 startWebServer] Remote server certificates not checked
[00:00:04.107 WARN setup] Startup Failure: Insufficient PSRAM for app 
[00:00:04.107 loop] =============== Total tasks: 12 ===============

[00:00:09.094 resetWatchDog] WatchDog started using task: ping
deanfourie1 commented 14 hours ago

It does state where I bought my board that it has a 4MB PSRAM

https://www.trademe.co.nz/a/marketplace/electronics-photography/other-electronics/electronic-components/other/listing/4930958587

Also, this only happens when the SD Card is inserted. I am not using an 8GB SD card I found formatted in Fat32. With the SD Card removed,

[00:00:09.094 resetWatchDog] WatchDog started using task: ping
[00:00:04.813 startWifi] Wifi stats for 36A - signal strength: -69 dBm; Encryption: WPA2_PSK; channel: 11
[00:00:04.814 startPing] Started ping monitoring - On
[00:00:04.823 resetWatchDog] WatchDog started using task: ping
[00:00:04.825 getLocalNTP] Using NTP server: pool.ntp.org
[00:00:04.835 WARN getLocalNTP] Not yet synced with NTP 
[00:00:04.836 WARN wgetFile] Open failed: /data/common.js 
[00:00:04.836 startWebServer] Starting web server on port: 80
[00:00:04.846 startWebServer] Remote server certificates not checked
[00:00:04.856 WARN setup] Startup Failure: Check SD card inserted 
[00:00:04.857 loop] =============== Total tasks: 12 ===============
s60sc commented 12 hours ago

the sd is checked first and passes with 8gb then checks psram and fails due to scam board