I've received my Ai-Thinker ESP32-CAM modules yesterday, installed the toolchain and tried to flash some examples on it, but esptool fails after the "Running stub..." step. Here's the terminal output for the flash_id command:
Code: Select all
$ python esptool.py --port /dev/ttyACM1 flash_id
esptool.py v2.7-dev
Serial port /dev/ttyACM1
Connecting......
Detecting chip type... ESP32
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:0a:c4:2e:1b:f8
Uploading stub...
Running stub...
Traceback (most recent call last):
File "esptool.py", line 3073, in <module>
_main()
File "esptool.py", line 3066, in _main
main()
File "esptool.py", line 2780, in main
esp = esp.run_stub()
File "esptool.py", line 608, in run_stub
p = self.read()
File "esptool.py", line 280, in read
return next(self._slip_reader)
StopIteration
Code: Select all
$ python esptool.py --port /dev/ttyACM1 --no-stub flash_id
esptool.py v2.7-dev
Serial port /dev/ttyACM1
Connecting.......
Detecting chip type... ESP32
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:0a:c4:2e:1b:f8
Enabling default SPI flash mode...
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
Code: Select all
TRACE +0.051 Timed out waiting for packet header
The ESP32-CAM board is connected to my laptop via an MSP430 development board, which I'm using as a USB to serial converter. I'm using this board because it provides 5V as well as 3.3V, and the serial lines are on 3.3V rather than the 5V of my other ISP. I've also tried powering the ESP from the 5V line of an old PC power supply, without success. Another thing I've tried is disconnecting the camera.
I would be very grateful if anyone could point me in the right direction here, after hours of tinkering I'm kind of lost.
Thank you very much and please let me know if I can provide any more details.