This page lists possible blink codes of the red LED located on the ESP32-CAM board, their meaning and possible solutions.
The error code source definition can be found here.
1. General design approach:
- 250ms blink code to identify source
- 500ms defined LED off
- 250ms blink code to identify error / status code
- 1,5s defined LED off to signal repetition
- Repetition blink code: infinite for critical errors and status indication or 2x for warning indication
- e.g. 3x blinks | 500ms LED off | 2x blinks --> error: SD card not found
source | source blink count |
error / warning / status | status blink count |
repeat infinite |
---|---|---|---|---|
WLAN_CONN | 1 | Disconnected (No Access Point) | 1 | |
WLAN_CONN | 1 | Disconnected (Authentication failure) | 2 | |
WLAN_CONN | 1 | Disconnected (Timeout) | 3 | |
WLAN_CONN | 1 | Disconnected (further reasons) | 4 | |
WLAN_INIT | 2 | WLAN.ini empty or not readable | 1 | X |
WLAN_INIT | 2 | SSID or password empty | 2 | X |
WLAN_INIT | 2 | WIFI init error (details console) | 3 | X |
SDCARD_INIT | 3 | SD card filesystem mount failed | 1 | X |
SDCARD_INIT | 3 | SD card not found (0x107) | 2 | X |
SDCARD_INIT | 3 | SD card init failed (details console) | 3 | X |
SDCARD_CHECK | 4 | Basic check: file creation/write error | 1 | X |
SDCARD_CHECK | 4 | Basic check: file read/CRC error | 2 | X |
SDCARD_CHECK | 4 | Basic check: file delete error | 3 | X |
SDCARD_CHECK | 4 | Basic check: folder/file presence | 4 | X |
CAM_INIT | 5 | Camera init failed (details console) | 1 | X |
CAM_INIT | 5 | Camera framebuffer check failed | 2 | |
PSRAM_INIT | 6 | RAM init failed: Not found/defective | 1 | X |
PSRAM_INIT | 6 | External SPI RAM < 4MB | 2 | X |
PSRAM_INIT | 6 | Total heap < 4MB | 3 | X |
TIME_CHECK | 7 | Missing time sync (check every round) | 1 | |
OTA_OR_AP | 8 | OTA process ongoing | 1 | X |
OTA_OR_AP | 8 | Soft AP started (for remote config) | 2 | X |
FLASHLIGHT | N/A | LED on when flashlight is on | solid, no blink |
2. ERROR / WARNING
2.1 Source WLAN_CONN: WLAN disconnected
Note
Only warning indication, blink code repetition: 2x --> General info: WLAN disconnect reason code description
2.1.1 WLAN disconnected (No Access Point)
WLAN connection is interrupted due to no access point in range.
2.1.2 WLAN Disconnected (Authentication failure)
WLAN connection is interrupted due to an authentication failure. If error repeats check WLAN config in WLAN.INI (username, password)
2.1.3 WLAN Disconnected (Timeout)
WLAN connection is interrupted due to an timeout because no beacon from AP is received in a timely manner. Most probably access point is not available anymore or connection is not reliable.
2.1.4 WLAN Disconnected (Further reasons)
WLAN connection is interrupted due to further reasons. Disconnect reason is printed in warining message. Please check serial console output or logfile from sd card (using another device to retrieve logfile /sdcard/log/message/). Please refer to this page to have additional infos in terms of WLAN disconnect reasons --> WLAN disconnect reason code description
2.2 Source WLAN_INIT: WLAN initialization
Note
All critical errors, regular boot not possible
2.2.1 WLAN.ini empty or not readable
The WLAN.INI file is present but content is either not readable or no content present. Please check for further errors in terms of SD card readability or content of WLAN.INI which is located in /sdcard (most top folder od SD card)
2.2.2 SSID or password empty
The mandatory parameters SSID (name of WIFI network) and / or password is empty. Please configure those parameters in WLAN.INI and try again.
2.2.3 WIFI init error (details console)
A general WIFI initialization error occured. Please check serial console output or logfile from sd card (using another device to retrieve logfile /sdcard/log/message/)
2.3 Source SDCARD_INIT: SD card initialization
Note
All critical errors, regular boot not possible
2.3.1 SD card filesystem mount failed
Failed to mount FAT filesystem on SD card. Check SD card filesystem (only FAT supported) or try another card. Possible further infos: Please check serial console output.
2.3.2 SD card not found (Error code 0x107)
SD card init failed. Check if SD card is properly inserted into SD card slot or try another card. Possible further infos: Please check serial console output.
2.3.3 SD card init failed (details console)
A general SD card initialization error occured. Please check serial console output.
2.4 Source SDCARD_CHECK: SD card basic check
Note
All critical errors, normal boot not possible. Reduced WebUI is going to be loaded for further diagnostic possibilities or redo firmware update.
2.4.1 File creation / write error
A basic check of SD card is performed at boot. Failed to create the test file or writing content to the file failed. Most likely SD card is defective or not supported. Please check logs with log viewer in reduced web interface, serial console output or try another card.
Recommendation: Format or try another card
2.4.2 File read / CRC verfication error
A basic check of SD card is performed at boot. Failed to read the test file or CRC of read back content failed. Most likely SD card is defective. Please check logs with log viewer in reduced web interface or serial console output for further error indication or try another card.
Recommendation: Format or try another card
2.4.3 File delete error
A basic check of SD card is performed at boot. Failed to delelte the test file. Most likely SD card is defective. Please check logs with log viewer in reduced web interface or serial console output for further error indication or try another card.
Recommendation: Format or try another card
2.4.4 Folder / File presence failed
A basic check of SD card is performed at boot. One or more menadatory folder / file are not found on SD card. Please check logs with log viewer in reduced web interface or serial console output for further error indication.
Recommendation: Repeat installation using AI-on-the-edge-device__update__*.zip
2.5 Source CAM_INIT: Camera initialization
2.5.1 Camera init failed (details console)
Note
Critical error, normal boot not possible. Reduced WebUI is going to be loaded for further diagnostic possibilities or redo firmware update.
A general camera initialization error occured. Please check logs with log viewer in reduced web interface or serial console output for further error indication.
Recommendation: Check for proper electrical connection, whether camera model is supported and whether power supply is sufficient.
2.5.2 Camera framebuffer check failed
The framebuffer of the camera was not readable. The firmware will trying to continue regular boot, but further errors can occur which block regular processing. Please check logs with logfile viewer if processing is behaving irregular.
Recommendation: Check for proper electrical commenection, wether camera model is supported and wether power supply is suffcient.
2.6 Source PSRAM_INIT: External RAM (SPI RAM) initialization
Note
A critical errors, normal boot not possible. Reduced WebUI is going to be loaded for further diagnostic possibilities or redo firmware update.
2.6.1 SPI RAM init failed: Not found/defective
External RAM (SPI RAM) initialization failed. Most likely external RAM not accessable or defective. Normal operation is not possible without having external RAM.
2.6.2 External SPI RAM < 4MB
External RAM (SPI RAM) initialization successful, but external RAM size is too small. A size of >= 4MB is necessary to run this firmware.
2.6.3 Total heap < 4MB
Total available system memory (heap) is too small. A size of >= 4MB is necessary to run this firmware.
2.7 Source TIME_CHECK: External RAM (SPI RAM) initialization
2.7.1 Missing time sync (check every round)
Note
Only warning indication, blink code repetition: 2x
If system is configured to be synced with a NTP server the sync status is checked after every round (in state: "Flow finished". An warming message is also printed to log). If the time is not synced after serveral rounds, please check for proper configuration.
3. STATUS
Note
All only status indication
3.1 Source OTA_OR_AP: OTA Update / Access point mode
3.1.1 OTA process ongoing
An OTA is performed right now. Please wait until OTA is completed. System is rebooting automatically. If system is not coming up, please check serial console output.
3.1.2 Soft AP started (for remote config)
The built-in access point functionality is started to perform initial remote remote setup. Further description: Installtion --> Section Remote Setup using the built-in Access Point
3.2 Source FLASHLIGHT: Flashlight
3.2.1 LED on when flashlight is on
The LED is solid on as long the flashlight is on. This feature has lower priority than the other LED codes. Whenever another code occurs this feature will be overrided.