ESP-Prog suddenly not working after working for long time. Replaced, still not working.
Posted: Mon Jan 30, 2023 11:13 am
Hello, I've been programming for weeks now with a NODEMCU ESP-32S V1 plugged in through the ESP-Prog's JTAG and Serial interfaces. I have it interfacing through PlatformIO on a mac. I have used it many times to upload firmware into the ESP32 and run it.
Tonight, it suddenly stopped loading code up. I keep getting errors like these:
I figured, the connection must have gotten messed up. I checked and the USB port had changed. I updated it and the same thing. Here is the Platformio.ini:
There are two ports available, the one above and 14201. I tried both. In fact, I moved the USB cable around as before it was in the 100s. So, thing's I've tried. I checked for loos wire connections, found some that may be loose and replaced them. Checked all of them for connections, seem fine. Got a back up ESP32 and plugged it in directly and commented out the ESP-PROG configs. Worked fine. So I replaced the ESP32 in the setup. Still won't work. Finally I replaced the ESP-PROG with a backup, still the same. I've changed the USB port, some of the wires, the ESP32, and the ESP-Prog. I even hacked the code down to a Hello World blasted file. It's worked great for weeks now.
Any ideas at all? It's all wired in through a bread board, but would it suddenly become an issue after so long? Would wires just suddenly quit working? They are bread board wires, but still. Is there tools or config options that may give a better idea? I'm going to have to just forego using an ESP-PROG, which is super annoying, if just for the fact that I haven't had to hold down the blasted button every load for the last while. Any help would be awesome, thanks.
Tonight, it suddenly stopped loading code up. I keep getting errors like these:
Code: Select all
** Programming Started **
** Programming Finished in 4932 ms **
** Verify Started **
** Verify OK **
** Programming Started **
Error: timed out while waiting for target halted
Error: xtensa_wait_algorithm: not halted 0, pc 0x4000c2e0, ps 0x60e23
Error: Failed to wait algorithm (-302)!
Error: Algorithm run failed (-302)!
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
** Programming Finished in 40496 ms **
** Verify Started **
Error: Target is already running an algorithm
Error: Failed to start algorithm (-4)!
Error: **** Verification failure! ****
Error: target_hash 000...6f726d
Error: file_hash: 21e9f9...4ca966
embedded:startup.tcl:1184: Error: ** Verify Failed **
in procedure 'program_esp'
in procedure 'program_error' called at file "/Users/Psycho/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 149
at file "embedded:startup.tcl", line 1184
*** [upload] Error 1
Code: Select all
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
debug_tool = esp-prog
upload_protocol = esp-prog
upload_port = /dev/cu.usbserial-14200
lib_deps =
bblanchon/ArduinoJson@^6.20.0
esphome/AsyncTCP-esphome@^2.0.0
Any ideas at all? It's all wired in through a bread board, but would it suddenly become an issue after so long? Would wires just suddenly quit working? They are bread board wires, but still. Is there tools or config options that may give a better idea? I'm going to have to just forego using an ESP-PROG, which is super annoying, if just for the fact that I haven't had to hold down the blasted button every load for the last while. Any help would be awesome, thanks.