-
Notifications
You must be signed in to change notification settings - Fork 315
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
[Feature Request]: Flash via JTAG _without_ serial (VSC-1575) #1411
Comments
Hi @karlp, Thanks for bringing this up to our attention. I've made a fix for this. Could you please test it to see if it solves the reported issue? You can test these changes by installing this VSIX by click menu View -> Command Palette..., type Install from VSIX and then select downloaded esp-idf-extension.vsix file to install the extension. |
Will do! Thanks for looking at this so promptly! |
That's working well to flash now thank you very much. It even makes F5 to launch and debug work now! This is an excellent improvement :) I did run into an issue where my openocd.cfg file had the following lines
The Just an FYI if you happen to see anyone else with that sort of problem, it's the "init" in their openocd.cfg file. Thank you very much for this new/restored functionality! |
Thanks for using our extension! 🚀 Your feedback matters! Could you take a moment to rate it on the marketplace? A positive rating helps other developers discover our tools and motivates us to keep improving. ⭐ Rate ESP-IDF Extension: https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension&ssr=false#review-details Your support means a lot to our development team! |
Is your feature request related to a problem? Please describe.
I have a board that has only a jtag header. (2x5pin, I'm not talking about Using command line tools, I can flash and debug, using openocd, and "mon program_esp ...."
However, if I try and flash in vscode, it always attempts to open a serial port with esptool. This is despite having "flash method JTAG" set (
"idf.flashType": "JTAG"
)It seems that #183 really only applies to flashing via the built in usb-jtag? at least, it certainly doesn't seem to help
It's perhaps demonstrated by this diagram: https://docs.espressif.com/projects/vscode-esp-idf-extension/en/latest/debugproject.html#debugging-process-overview where it shows that flashing is always via the uart.
I very much want to avoid having to use a second cable, just for vscode.
Describe alternatives you've considered
Adding a serial connection jsut for flashing does work, but... seriously?
I've tried using the explist tasks "ESP-IDF:Flash (with jtag)" option as well, both with and without openocd started before hand.
Additional context
maybe I'm just missing how to configure this?
I'm not very good at reading typescript, but it almost appears as if the jtag code got detached somewhere. flashcmd.ts will error if a port isn't set, and in flashtask, https://github.com/espressif/vscode-esp-idf-extension/blob/master/src/flash/flashTask.ts#L111-L119 it seems to just... not handle the jtag case?
My openocd.cfg file
My settings.json
ESP-IDF plugin version: 1.9.0
The text was updated successfully, but these errors were encountered: