esptool: FileNotFoundError: [Errno 2] No such file or directory
Posted: Fri Jan 05, 2024 4:45 pm
Hello.
I am new to working with ESP modules and lack experience in handling them. Therefore, I am seeking guidance on how to solve the problem as I have been unable to do so on my own.
I use Debian GNU/Linux trixie/sid (KDE/plasma) on a daily basis and have installed the esptool from the repository to manage the module.
When he executes the command:
I get a response and some errors:
Have any of you been in a similar situation and know the solution Or can someone point you in the right direction
Best regards
I am new to working with ESP modules and lack experience in handling them. Therefore, I am seeking guidance on how to solve the problem as I have been unable to do so on my own.
I use Debian GNU/Linux trixie/sid (KDE/plasma) on a daily basis and have installed the esptool from the repository to manage the module.
Code: Select all
$ apt search esptool
Sorting... Gotowe
Full Text Search... Gotowe
esptool/testing,testing,now 4.6.2+dfsg-0.1 all [installed]
create and flash firmware files to ESP8266 and ESP32 chips
Code: Select all
$ esptool -p /dev/ttyUSB0 -b 460800 read_flash 0 ALL flash_ESP32-CAM.bin
Code: Select all
esptool.py v4.6.2
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision v1.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: fc:b4:67:01:c2:00
Traceback (most recent call last):
File "/usr/bin/esptool", line 37, in <module>
esptool._main()
File "/usr/lib/python3/dist-packages/esptool/__init__.py", line 1073, in _main
main()
File "/usr/lib/python3/dist-packages/esptool/__init__.py", line 717, in main
esp = esp.run_stub()
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/esptool/loader.py", line 956, in run_stub
stub = StubFlasher(get_stub_json_path(self.CHIP_NAME))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/esptool/loader.py", line 159, in __init__
with open(json_path) as json_file:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/esptool/targets/stub_flasher/stub_flasher_32.json'
Best regards