-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flashing over jtag: timed out while waiting for target halted (OCD-753) #289
Comments
@UKenda can you please try with the latest release? Do you see the same issue with one of the wifi or bl idf examples? |
Yes, the latest release (v0.12.0-esp32-20230419) solves my problem, thanks. |
Thanks for informing. |
I still see this issue with a larger binary that is using WiFi and Bluetooth (Nimble) on an ESP32-S3 with ESP-IDF v5.3. OpenOCD flash over JTAG times out "waiting for target halted", directly after which "Target halted" is printed:
If I first flash the board with a small basic "blinky" app (or boot in bootloader), and then flash my full project using JTAG it works fine:
This is using the following versions:
Changing to a an even older OpenOCD
|
Can you try adding the
|
Hi and thanks, I just tried adding |
OpenOCD version
v0.11.0-esp32-20221026
Operating System
Windows
Using an IDE ?
vs-code
OpenOCD command line
openocd -f board/esp-wroom-32-jlink.cfg
ESP-IDF version
5.0.1
Problem Description
Description
Problem occurred when my specific firmware is flashed, then the same or other firmware flashing over JTAG fails. However, I can flash it over UART successfully. However, if I flash some other firmware, then I can flash over JTAG until the specific firmware is flashed.
The firmware work correctly, and the JTAG worked on several projects without problems even on the same and different HW.
When I made this new firmware which include WIFI stack the JTAG flashing fails if I remove the WIFI stack from the project the JTAG starts working, similar is happening when including BT stack. It seems to me that it brakes when the size of the code exceeds some amount.
Also, the debugger works, so I realy have the problem oly whit flashing.
The output of openocd:
my cosutm esp-wroom-32-jlink.cfg file:
Debug Logs
No response
Expected behavior
I have tried to change the 'adapter speed' in .cfg file but no luck.
I will be happy with any help.
Screenshots
No response
The text was updated successfully, but these errors were encountered: