ESP32 not connect when will upload sketch

Hello everyone, I don't know if can I post some troubleshooting here, but I need help.
I am using a ESP32 Dev Module (30 pins) and was working fine!
What was happened is when I've uploaded a timmer sketch and after it my ESP32 not more connect. I aways have pressed BOOT button to make upload code and aways worked, but not now. I don't know what can I make to test it, can someone help me?
The sketch is bellow:

#define PinoMotor1 25
#define PinoMotor2 26

void setup() {
// put your setup code here, to run once:
pinMode(PinoMotor1, OUTPUT);
pinMode(PinoMotor2, OUTPUT);
AcionaMotor1();
AcionaMotor2();
}

void loop() {
// put your main code here, to run repeatedly:

}

bool MotorAcionado1 = false;
hw_timer_t * timerM1 = NULL;
void AcionaMotor1(){
digitalWrite(PinoMotor1, !digitalRead(PinoMotor1));
}
void IniciaTimerM1(){
timerM1 = timerBegin(0, 80, true);
timerAttachInterrupt(timerM1, &AcionaMotor1, true);
timerAlarmWrite(timerM1, 1000, true);
timerAlarmEnable(timerM1);
}
void ParaTimerM1(){
timerEnd(timerM1);
timerM1 = NULL;
}

bool MotorAcionado2 = false;
hw_timer_t * timerM2 = NULL;
void AcionaMotor2(){
digitalWrite(PinoMotor2, !digitalRead(PinoMotor2));
}
void IniciaTimerM2() {
timerM2 = timerBegin(1, 80, true);
timerAttachInterrupt(timerM2, &AcionaMotor2, true);
timerAlarmWrite(timerM2, 2000, true);
timerAlarmEnable(timerM2);
}
void ParaTimerM2(){
timerEnd(timerM2);
timerM2 = NULL;
}

ERROR:

esptool.py v2.6
Serial port COM24
Connecting......................................____Ocorreu um erro enquanto o sketch era carregado
_

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header