espressif / esp-who

Face detection and recognition framework
Other
1.65k stars 459 forks source link

Unable to program ESP-EYE Dev Board V2.1, Timed out waiting for packet header #125

Open dheerajdake opened 4 years ago

dheerajdake commented 4 years ago

Hello all, I'm struggling to program this board. I've got all the setup required. My environment is Ubuntu in Virtualbox. Network and USB ports have been mapped. I'm able to see the ESP EYE serial output.

For this test, I'm using the hello_world app from this page. I was able to program the application initially using

idf.py -p /dev/ttyUSB0 -b 115200 flash

After this I was able to see the example output using putty.

However, I was not able to re-flash the board at all. The above command results in this output. failed

ESP-EYE board is connected using the original USB cable to the computers USB 2.0 port. Any help would be appreciated.

Thanks Dheeraj

dheerajdake commented 4 years ago

I tried this considering my previous experience with ESP8266.

  1. Held reset button
  2. Held boot button while reset is still held
  3. Released reset button while boot button is still held

The output in the serial changed as follows: Capture

I tried to program at this stage with flash command but the flash command used to reset the device back to flash mode. So I tried doing the above sequence during Connecting.... stage. From the serial output, it looked like something was being transmitted when the ESP was in waiting for download stage. But in the end programming failed. partial

XiaochaoGONG commented 4 years ago

Your serial port seems to be occupied by putty while flashing, you need to disconnect from putty then to flash.