-
Notifications
You must be signed in to change notification settings - Fork 79
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
SWD on JTAG header? #63
Comments
Using the jtag wire harness does work with some targets - it's worth a try as it might 'just work'. It was removed because it's not ideal and doesn't work with all targets. The ideal method to connect to swd targets is to use an adapter from the cortex header to whatever pin configuration your target uses. There are off-the-shelf breakout boards available, or you could slice up a cortex-to-cortex cable, or - if you have a bitmagic, the 14-pin harness should fit, centered on the 10-pin header, to break out the lines you need |
Thanks. I'll give it a try and create a PR if it's reliable on the Pico targets, since those are quite popular. |
@securelyfitz I got it reliably flashing my binary using the openocd v0.12 from homebrew (macOS M1) and the JTAG header with the mode set to SWD. However, after openocd does it's thing, the Tigard UART serial devices disappear from the OS until I do a hard power cycle on the Tigard. I was using the Tigard UART interface to watch the serial output of the pico on UART0, but this gets shutdown at the USB device level when SWD is used. Is this expected? I couldn't find anything in the docs about it. I was hoping to keep the UART interface running continuously, and then use SWD to flash binaries as I develop. Thanks! |
No, this isn't expected behavior. on linux, both uart devices show up, then openocd unloads the second one to put it in jtag mode, but it doesn't affect the first uart port at all. |
Thanks. I'm available to test things here if that's helpful. In the meantime (while your away), I'll gather all the info I can and post it here. |
HardwareMode Switch: SWD OSVersion: macOS 12.6 Loaded KEXT's:
USB DeviceTigard V1.1 Mounted Devices/dev/tty.usbserial-TG110a520 SoftwareOpenOCD: 0.12.0 (installed via Interface config:
Target config: https://github.com/raspberrypi/openocd/blob/rp2040-v0.12.0/tcl/target/rp2040.cfg OpenOCD output
^ at this point the tty devices disappear |
Im recalling a recent openocd bug where it didn't properly handle primary/secondary channels of the ft2232h, but I can't find reference to it right now. |
^ tty devices disappear at this point |
@ruswerner - I recently opened #67. Did you find a solution to your issue? I am not able to get SWD work on Tigard with stm32f4x targets. |
I am trying to use SWD on a Pi Pico W, which uses a standard 3-pin header. How can I connect Tigard to this SWD port? The docs used to say that SWD can be used on the JTAG header... is this not the case any more? I also want to debug Pico's that have the JST-PH 3-pin plug, which also isn't compatible with the CORTEX plug.
Any suggestions would be welcome. Thanks!
Commit reference: 1275221
The text was updated successfully, but these errors were encountered: