JTAG debugging with vscode
Posted: Wed Oct 18, 2023 5:10 pm
I'm not using a dev board. We have a production device with JTAG built in. I can flash using JTAG, but that's it. I'm dying to figure out how to do anything else with it, especially monitoring and debugging.
What's really frustrating is there seems to be no way to configure openocd to run automatically on flash. I have to run it manually. Here's what I'm using to get it running properly:
After that's running, I'm able to flash using vscode after I set it to use JTAG.
However, if openocd is NOT running, when I use the command palette to "build, flash, and start a monitor", it builds then pops up a message saying openOCD is not running, asking if I want to launch it. Then it just runs openocd with no parameters and therefore it fails and never runs.
My primary need is first to be able to monitor the output of the ESP, as I've always done with serial. Secondarily I'd love to be able to debug. Any ideas on how I can accomplish this?
What's really frustrating is there seems to be no way to configure openocd to run automatically on flash. I have to run it manually. Here's what I'm using to get it running properly:
Code: Select all
openocd -f interface/jlink.cfg -f board/esp-wroom-32.cfg
However, if openocd is NOT running, when I use the command palette to "build, flash, and start a monitor", it builds then pops up a message saying openOCD is not running, asking if I want to launch it. Then it just runs openocd with no parameters and therefore it fails and never runs.
My primary need is first to be able to monitor the output of the ESP, as I've always done with serial. Secondarily I'd love to be able to debug. Any ideas on how I can accomplish this?