-
Notifications
You must be signed in to change notification settings - Fork 287
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
ESP32 JTAG programming fails without power cycle (VSC-973) #811
Comments
I have a few questions @littleboot Are you using this esp-idf extension ? Could you share the troubleshooting information described in the issue template or the readme ? If the issue is fixed in openOCD, are you using the same version in vscode ? |
Hi Brian, Thank you for your quick response. I just did a clean windows 11 install on a second machine and will try to get it to work or reproduce the problem and gather the required details and update the issue report above. |
Oke I tested the VScode + IDF extension on a new machine with a clean windows 11 install. And this will fail axactly the same way. These are the steps I took:
logfile: |
This issue has been marked as |
I don't think this issue has much to do with the extension but with the serial read itself. Issues arise on idf_monitor and then OpenOCD fails to program after. Are you using the latest openOCD version in the extension with the fixes you requested before ? You can check with the If the extension is configured properly and the idf_monitor and openOCD start working then the extension side should be ok. Seems the fail happens in the program itself not the extension. |
I can't reproduce the problem anymore, please remove this issue thanks for the help. Don't know what fixed the problem (I think the default JTAG speed of 20KHz which I lowered to 10KHz was the problem, but I'm not sure though), currently using the Eclipse IDE for my projects in combination with VSCode, because the editor is so much better sadly I need the debugging functionality and SVD register viewer of the Eclipse IDE. |
OS
Windows
Operating System version
10
Visual Studio Code version
1.71.2
ESP-IDF version
4.4.2
Python version
3.8
Doctor command output
none
Extension
No response
Description
After a clean install of VScode and the IDF plugin I have set-up the plugin top use the latest stable IDF version as of writing 4.4.2.
I open the blink example and connect the esp-prog to my device.
I needed to replace the USB drivers with zadig to make openOcd work at all, the latest instruction from espressif are incorrect and point to the FTDI drivers (this took me a few hours to find out, before I remembered the driver had to be replaced):
https://docs.espressif.com/projects/espressif-esp-iot-solution/en/latest/hw-reference/ESP-Prog_guide.html#step-by-step-instruction
I used the following instruction to replace the drivers and make the ESP-prog work at all:
https://community.platformio.org/t/esp32-pio-unified-debugger/4541/20
Now I program the device, all is oke.
Now I program the device again, this time programming fails
now I power cycle the board
Programming will work again, and I program the blink example again
but after programming and monitoring the device it is stuck in a bootloop
If I perform a power cycle the application is started correctly and the serial output is correct.
This is not the first time I have had problems programming using the JTAG interface, this is really I mean really frustrating that after following the instruction by the letter and using a stable release I'm not able to get basic IDE functionality to work.
The failure behavior is almost the same as my previous bug report: espressif/openocd-esp32#223 that got fixed.
The text was updated successfully, but these errors were encountered: