Flash failure Error 22, but with good serial connection
Posted: Sun Apr 20, 2025 6:08 pm
Hi all,
I have flashed my board before, however, I recently went to try again a few days ago and my flash command is not working anymore with error 22. (See picture).
I have since tried editing the run_serial_tool.cmake file but to no avail so far...
The weird thing here, atleast to me, is this seems to indicate a serial connection error to the device, however, I can run
idf.py monitor perfectly fine.... (also see below).
I can also connect to the device via serial port on putty too as well. So I think that indicates the serial connection is stable/can be established... which means this has to be a problem with the actual flash steps? Does anyone know what's going on here, or atleast, where the issue lies?
I even tried to run CMake manually (without idf.py flash) and still does not work with basically the same error...
I am using an ESP32c3 chip
esptool version 4.8.1
and esp-idf v5.4.1 offline installer
I have flashed my board before, however, I recently went to try again a few days ago and my flash command is not working anymore with error 22. (See picture).
I have since tried editing the run_serial_tool.cmake file but to no avail so far...
The weird thing here, atleast to me, is this seems to indicate a serial connection error to the device, however, I can run
idf.py monitor perfectly fine.... (also see below).
I can also connect to the device via serial port on putty too as well. So I think that indicates the serial connection is stable/can be established... which means this has to be a problem with the actual flash steps? Does anyone know what's going on here, or atleast, where the issue lies?
I even tried to run CMake manually (without idf.py flash) and still does not work with basically the same error...
I am using an ESP32c3 chip
esptool version 4.8.1
and esp-idf v5.4.1 offline installer