I tried a simple code for blinking a light every 2 seconds, and it worked fine. However, when I tried to connect it to Wi-Fi, it didn't work. I tested it with a simple connection code as well as with the example provided in the Arduino IDE for ESP32-CAM (CamWebServer), but still, nothing happened. I selected the 'AI Thinker ESP32-CAM' board and port COM4. When I put the Core Debug Level on "Error" I get this error:
E (119) sccb: SCCB_Write Failed addr:0x30, reg:0xc7, data:0x10, ret:-1
E (120) camera: Camera probe failed with error 0xffffffff(ESP_FAIL)
Camera init failed with error 0xffffffff