Flashing esp32 no such file or directory error #90
Unanswered
ColeSlawCole
asked this question in
Q&A
Replies: 1 comment 13 replies
-
Hi |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
Trying to flash my esp32 board (ESP32-S2 Lolin mini) with the firmware for Hyperserial but having no luck. When I run esptool.py write_flash 0x10000 firmware_esp32_s2_mini_SK6812_RGBW_COLD.bin or esptool.py write_flash 0x0 firmware_esp32_s2_mini_SK6812_RGBW_COLD.factory.bin its telling me [Errno 2] No such file or directory:. I'm probably missing something obvious it's my first time trying to flash the board.
Thanks for any help!
Best Regards,
Cole
C:\WINDOWS\system32>pip install esptool
Collecting esptool
Using cached esptool-4.8.1-py3-none-any.whl
Collecting bitstring!=4.2.0,>=3.1.6 (from esptool)
Using cached bitstring-4.3.1-py3-none-any.whl.metadata (5.3 kB)
Collecting cryptography>=2.1.4 (from esptool)
Using cached cryptography-44.0.2-cp39-abi3-win_amd64.whl.metadata (5.7 kB)
Collecting ecdsa>=0.16.0 (from esptool)
Using cached ecdsa-0.19.1-py2.py3-none-any.whl.metadata (29 kB)
Collecting pyserial>=3.3 (from esptool)
Using cached pyserial-3.5-py2.py3-none-any.whl.metadata (1.6 kB)
Collecting reedsolo<1.8,>=1.5.3 (from esptool)
Using cached reedsolo-1.7.0-py3-none-any.whl.metadata (23 kB)
Collecting PyYAML>=5.1 (from esptool)
Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl.metadata (2.1 kB)
Collecting intelhex (from esptool)
Using cached intelhex-2.3.0-py2.py3-none-any.whl.metadata (2.7 kB)
Collecting bitarray<4.0,>=3.0.0 (from bitstring!=4.2.0,>=3.1.6->esptool)
Using cached bitarray-3.3.1-cp313-cp313-win_amd64.whl.metadata (34 kB)
Collecting cffi>=1.12 (from cryptography>=2.1.4->esptool)
Using cached cffi-1.17.1-cp313-cp313-win_amd64.whl.metadata (1.6 kB)
Collecting six>=1.9.0 (from ecdsa>=0.16.0->esptool)
Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting pycparser (from cffi>=1.12->cryptography>=2.1.4->esptool)
Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Using cached bitstring-4.3.1-py3-none-any.whl (71 kB)
Using cached cryptography-44.0.2-cp39-abi3-win_amd64.whl (3.2 MB)
Using cached ecdsa-0.19.1-py2.py3-none-any.whl (150 kB)
Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl (156 kB)
Using cached reedsolo-1.7.0-py3-none-any.whl (32 kB)
Using cached intelhex-2.3.0-py2.py3-none-any.whl (50 kB)
Using cached bitarray-3.3.1-cp313-cp313-win_amd64.whl (137 kB)
Using cached cffi-1.17.1-cp313-cp313-win_amd64.whl (182 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: reedsolo, pyserial, intelhex, bitarray, six, PyYAML, pycparser, bitstring, ecdsa, cffi, cryptography, esptool
Successfully installed PyYAML-6.0.2 bitarray-3.3.1 bitstring-4.3.1 cffi-1.17.1 cryptography-44.0.2 ecdsa-0.19.1 esptool-4.8.1 intelhex-2.3.0 pycparser-2.22 pyserial-3.5 reedsolo-1.7.0 six-1.17.0
[notice] A new release of pip is available: 25.0.1 -> 25.1
[notice] To update, run: C:\Users\coleh\AppData\Local\Programs\Python\Python313\python.exe -m pip install --upgrade pip
C:\WINDOWS\system32>
C:\WINDOWS\system32>
C:\WINDOWS\system32>esptool.py erase_flash
'esptool.py' is not recognized as an internal or external command,
operable program or batch file.
C:\WINDOWS\system32>esptool erase_flash
esptool.py v4.8.1
Found 2 serial ports
Serial port COM4
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Detecting chip type... ESP32-S2
Chip is ESP32-S2FNR2 (revision v1.0)
Features: WiFi, Embedded Flash 4MB, Embedded PSRAM 2MB, ADC and temperature sensor calibration in BLK2 of efuse V2
Crystal is 40MHz
MAC: cc:8d:a2:8c:9a:70
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 18.6s
Error: ESP32-S2FNR2 (revision v1.0) chip was placed into download mode using GPIO0.
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.
To suppress this note, set --after option to 'no_reset'.
C:\WINDOWS\system32>esptool write_flash 0x0 firmware_esp32_s2_mini_SK6812_RGBW_COLD.factory.bin
[ ...]]usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}]
[--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt]
[--encrypt-files
[--ignore-flash-encryption-efuse-setting] [--force] [--compress | --no-compress]
[ ...]
esptool write_flash: error: argument : [Errno 2] No such file or directory: 'firmware_esp32_s2_mini_SK6812_RGBW_COLD.factory.bin'
Beta Was this translation helpful? Give feedback.
All reactions