ESP32 CAM NOT WORKING A fatal error occurred: Failed to connect to ESP32: No serial data received

Hello guys I bought an esp32 cam with the ESP 32S chip on it and I tried to program it using an arduino uno and it didnt work so I switched to D-SUN USB to TTL but there's and issue!!, I got the error code A fatal error occurred: Failed to connect to ESP32: No serial data received.
The flash on the camera doesnt blink when I press reset but it does when I short it,

The connections are:

ESP32 CAM USB
GND/R GND
3v 3v3
TX RX
RX TX
GND TO Io0

This is the example code I tried to use to test the camera:

int flashPin = 4;

void setup() {
    pinMode(flashPin, OUTPUT);
}

void loop() {
    digitalWrite(flashPin, HIGH);
    delay(1000);
    digitalWrite(flashPin, LOW);
    delay(1000);
}

Board manager:
Board: esp32 cam AI thinker
Partition: huge app
programmer: non (Theres only the esptool programmer and I didnt use it other ppl using AVRIS MKII or sth but I dont have it in my ide for sm reason)

The most important parts to read are to do with code, errors, and wiring diagrams.