-
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
CMSIS-DAP ❌ Error: [esp32.cpu0] Timed out waiting for CPU to be reset, target state=2 (OCD-995) #333
Comments
Note - someone replied with a mediafire link to a 'solution' containing a password-protected rar file. That file contained a trojan. If you downloaded & ran that, please run a virus scan or do a full reinstall of your computer. |
@yueduz As a Linux user, you should be able to build from the source. To increase the timeout, you can modify it here. You can set it to 1000 or 5000, whichever works best for you. Or you can simply disable the FLASH support and try.
|
@erhankur After I "set ESP_FLASH_SIZE 0", there is still "Timed out waiting for CPU to be reset, target state=2"
|
I replaced the idf openocd with my own compiled openocd and got the same result. The timeout value was set to 5000 |
Even though the timeout explanation does not entirely correct, this is another location that could cause a timeout. https://github.com/espressif/openocd-esp32/blob/master/src/target/espressif/esp_xtensa.c#L234 If it still doesn't work, please save the log with the |
log.zip |
Development Kit
Custom
Module or chip used
ESP32-WROVER-E
Debug Adapter
nanoDAP-HS
OpenOCD version
v0.12.0-esp32-20240318
Operating System
ArchLinux
Using an IDE ?
vscode
OpenOCD command line
ESP-IDF:Flash Device
JTAG Clock Speed
5000
ESP-IDF version
v5.3.0
Problem Description
Click "ESP-IDF: Flash Device" on the status bar of vscode
Debug Logs
Expected behavior
Everything works correctly when I use JLink, but I want my CMSIS-DAP (nanoDAP) to work as well.
Screenshots
This is my custom configuration:
The text was updated successfully, but these errors were encountered: