Esp32 cam error message

So im trying to compile the firmware for esp 32 (in windows), and followed the guide on github, also changing the #define to an ai thinker esp 32 cam model (even though im not sure its an original, my boards from amazon sellers look the same to me). Its one of those esp32 cam attached to a usb to serial converter board with reset button.

When i try to flash the firmware, I get an error message, and im not sure how to fix it. its probably a simple fix, but I was hoping for some advice!

com port says usb serial connection 8 in device manager so I changed the command to USB8

Thanks!

C:\esp32cam\firmware-espressif-esp32>idf.py -p /dev/ttyUSB8 flash monitor
Executing action: flash
Running ninja in directory c:\esp32cam\firmware-espressif-esp32\build
Executing “ninja flash”…
[1/5] cmd.exe /C “cd /D C:\esp32cam\firmware-espressif-esp32\build\esp-idf\esptool_py && C:\Espressif\py…ld/partition_table/partition-table.bin C:/esp32cam/firmware-espressif-esp32/build/ei_firmware_esp32.bin”
ei_firmware_esp32.bin binary size 0xada10 bytes. Smallest app partition is 0x300000 bytes. 0x2525f0 bytes (77%) free.
[2/5] Performing build step for ‘bootloader’
[1/1] cmd.exe /C “cd /D C:\esp32cam\firmware-espressif-esp32\build\bootloader\esp-idf\esptool_py && C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v4.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/esp32cam/firmware-espressif-esp32/build/bootloader/bootloader.bin”
Bootloader binary size 0x62e0 bytes. 0xd20 bytes (12%) free.
[2/3] cmd.exe /C “cd /D C:\Espressif\frameworks\esp-idf-v4.4.1\components\esptool_py && C:\Espressif\too…ssif-esp32/build” -P C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32 -p /dev/ttyUSB8 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 bootloader/bootloader.bin 0x10000 ei_firmware_esp32.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.3-dev
Serial port /dev/ttyUSB8
Traceback (most recent call last):
File “C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py”, line 5347, in
_main()
File “C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py”, line 5340, in _main
main()
File “C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py”, line 4647, in main
esp = esp or get_default_connected_device(ser_list, port=args.port, connect_attempts=args.connect_attempts,
File “C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py”, line 114, in get_default_connected_device
_esp = chip_class(each_port, initial_baud, trace)
File “C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py”, line 320, in init
self.port = serial.serial_for_url(port)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\serial_init
.py", line 90, in serial_for_url
instance.open()
File “C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\serial\serialwin32.py”, line 64, in open
raise SerialException(“could not open port {!r}: {!r}”.format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port ‘/dev/ttyUSB8’: FileNotFoundError(2, ‘Det gÕr inte att hitta s÷kvõgen.’, None, 3)
CMake Error at run_serial_tool.cmake:56 (message):
C:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe
C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py
–chip esp32 failed

FAILED: CMakeFiles/flash
cmd.exe /C “cd /D C:\Espressif\frameworks\esp-idf-v4.4.1\components\esptool_py && C:\Espressif\tools\cmake\3.20.3\bin\cmake.exe -D IDF_PATH=“C:/Espressif/frameworks/esp-idf-v4.4.1” -D SERIAL_TOOL=“C:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py --chip esp32” -D SERIAL_TOOL_ARGS=”–before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY=“C:/esp32cam/firmware-espressif-esp32/build” -P C:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

C:\esp32cam\firmware-espressif-esp32>

Nevermind, I just changed the whole /dev/ttyUSB0 to com8 then it seemed to work!

cheers,
/J

2 Likes