I can't use the arduino IDE to burn the program to the esp32 cam

I can't use the arduino IDE to burn the program to esp32 cam, and when I upload it, I get the following error message:

Arduino:1.8.19 (Windows 10), 开发板:"AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, Huge APP (3MB No OTA/1MB SPIFFS), 80MHz, None, Disabled"

Traceback (most recent call last):

  File "esptool.py", line 34, in <module>

  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module

  File "esptool\__init__.py", line 42, in <module>

  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module

  File "esptool\bin_image.py", line 18, in <module>

  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module

  File "esptool\loader.py", line 32, in <module>

  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module

  File "serial\__init__.py", line 29, in <module>

  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module

  File "serial\serialwin32.py", line 15, in <module>

  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module

  File "ctypes\__init__.py", line 7, in <module>

ImportError: DLL load failed while importing _ctypes: ��������

[84348] Failed to execute script 'esptool' due to unhandled exception!

exit status 1

为开发板 AI Thinker ESP32-CAM 编译时出错。



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

I updated esptool and the original error is gone, but there is still another error:

Arduino:1.8.19 (Windows 10), 开发板:"AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, Huge APP (3MB No OTA/1MB SPIFFS), 80MHz, None, Disabled"

项目使用了 1015988 字节,占用了 (32%) 程序存储空间。最大为 3145728 字节。

全局变量使用了50788字节,(15%)的动态内存,余留276892字节局部变量。最大为327680字节。

esptool.py v4.8.1

Serial port COM14

Connecting.....................................上传项目出错

.



A fatal error occurred: Failed to connect to ESP32: No serial data received.

For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

But I've already linked to the ESP32 cam

OK, I solved the problem. I updated esptool using this command.

pip install pyserial esptool

Also, I think the source code of this repository seems to have some problems.
https://github.com/arkhipenko/esp32-cam-mjpeg
I can't successfully burn it into the eap32 cam. Finally, I strongly recommend using the Arduino IDE2.0 version, which is very easy to use.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.