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
Add OpenOCD support for v4 #28
Comments
I remember trying to get JTAG going on the BPv4 a few years back... I thought it worked, but then I got a FlySwatter 2. Must of not worked very well :-| |
I've gathered only v3 is supported by OpenOCD. But now with discontinued firmware by DP and compilation errors in the community build, it would be super if support could be added for the v4! |
@csholmq indeed, I believe most BP users got theirs mostly for JTAG support. It'd be a bummer if v4 could not handle it... |
Is OpenOCD supported through binary mode? |
That is the only way to access OpenOCD actually. When OpenOCD starts, it sends a particular command sequence to the serial port that first puts the BP into bitbang I/O mode (20 x 0x00) and then sends the proper command to enter OpenOCD mode (0x06). There is no way to access that from the serial command interface (wouldn't be that much useful after all). |
By the way, that's on v3. On v4 sending that command sequence will do nothing, which is what I plan to fix in the near future :) |
I see that there is no update on this issue since last year: are there news? I need a JTAG programmer and was considering buying a bus pirate, and I wanted to know if I should buy a v3 or if in the month or so that international shipping can take I'm going to read that support has been added for v4 and regret my purchase :) |
Hi there, unfortunately your best bet is to get a v3 right now. OpenOCD for v4 is scheduled for v7.2, which is scheduled sometime early next year at least. Right now we're stuck in figuring out the best way to provide a smooth upgrade path from the old firmwares to this one, and that seems to be tricky to handle in an optimal way... |
Well, this took some time but can some of you folks who asked for OpenOCD support on v4 check whether this branch does work for you? |
Ok, this just got merged - please give mainline a shot instead so maybe more people might be able to try this out. I'll close this for the time being, please re-open another bug if the code doesn't work for you. |
Hello I wanted to try this but could not get it to work. Could you kindly share your configuration script for the Bus Pirate v4?
When trying to run openocd, i get the following:
I have used openocd before with a ft2232 board (not seriously, just some firmware dumps), but this is the first time I use a Bus Pirate for anything. |
Have you compiled OpenOCD with the I assume it still works something like this: http://dangerousprototypes.com/docs/Gonemad%27s_Bus_Pirate/OpenOCD_walk_through |
Thanks for your quick answer and sorry for the trouble! Still, may I ask another question? It is possible to use the extra auxiliary pins on the v4 to drive the reset signals? If I understand correctly, the v3 can drive SRST or TRST only? Thanks again |
The v4 uses AUX0 for SRST and AUX1 for TRST. Is there another signal you need to be driven through AUX2? |
Hello. Thanks for your reply! Thanks again |
Could someone clarify if JTAG is now working correctly on V4, on this website it states it cannot: On this mentioned website:
|
OpenJTAG support is currently only enabled for v3. There were some earlier attempts at porting said code to v4 but nothing stable ever came out of it, as far as I know.
The text was updated successfully, but these errors were encountered: