Search code examples
arduinoesp32ftdi

Esp32cam Failed to connect to ESP32: Timed out waiting for packet header


I've just recieved my very first esp32cam (AI THINKER) today and I was excited to test it, but I'm unable to upload any code to it. I'm always getting the following error:

Failed to connect to ESP32: Timed out waiting for packet header

So, the FTDI I'm using is the FT232r with the following wiring scheme

FTDI Wiring

How I reproduce this error:

  • Plug everything
  • Order IDE to upload the sketch
  • Wait for the "connecting" text
  • Press the RST button

Also:

  • Plug everything
  • Press the RST button
  • Order IDE to upload the sketch

I've already tried:

  • Switching to 3.3v (plugged on 3.3v pin)
  • Using external 5v power supply (plugged on 5v pin)
  • Using another computer
  • Swapping RX TX
  • Trying in different upload speeds
  • Holding RST button
  • Switching board between ESP32 Wrover Module and AI Thinker ESP32

I'm I doing something wrong or there's just something faulty?


Solution

  • This was solved by using other jumpers. It seems one of the jumpers used in the wiring was faulty.

    If you're having the same issue and tried everything in this post, try checking your cables!