JTAG beagle bone black with buspirate and openocd

Hello

I am very new to JTAG and i am trying to do the setup for jtag in beaglebone black(BBB) rev c board using buspirate(BP) and openocd.
I have installed the P2 header in BBB manually. I have connected the BBB and BP as follows



JTAG

|

BP

|

BBB

|

  • | - | - |


    TMS

    |

    CS

    |

    P2(1) P2 header pin 1

    |


    TDI

    |

    MOSI

    |

    P2(3)

    |


    VTREF

    |

    VPU

    |

    P2(5)

    |


    TDO

    |

    MISO

    |

    P2(7)

    |


    TCK

    |

    CLK

    |

    P2(11)

    |


    TRST

    |

    AUX

    |

    P2(2)

    |


    GRND

    |

    GND

    |

    P2(10)

    |

I am using my user configuration file(BP_userconfig.cfg) for openocd which has following content.

source [find interface/buspirate.cfg]

buspirate_vreg 0
buspirate_mode open-drain
buspirate_pullup 1
reset_config srst_only
buspirate_port /dev/ttyUSB0

source [find board/ti_beaglebone_black.cfg]

Now while running the command sudo openocd -f BP_userconfig.cfg I am getting following error.

lenova@lenova-ThinkPad-T410:~/jiten/JTAG$ sudo openocd -f BP_userconfig.cfg
Open On-Chip Debugger 0.10.0+dev-00167-g29cfe9c (2017-07-20-14:08)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Adapter driver ‘buspirate’ did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect ‘jtag’
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
adapter speed: 1000 kHz
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
Info : Buspirate Interface ready!
Info : This adapter doesn’t support configurable speed
Info : JTAG tap: am335x.jrc tap/device found: 0x2b94402f (mfg: 0x017 (Texas Instruments), part: 0xb944, ver: 0x2)
Info : JTAG tap: am335x.dap enabled
Error: JTAG-DP STICKY ERROR
Error: Could not initialize the APB-AP

Does anyone have any idea about this error? and do i need to do anything else in BBB apart from installing P2 header?
Please let me know if i am doing anything wrong.

Thanks in advance.

Regards
jitendriya

Hello

I would really like any kind of suggestion.
I am stuck at this error for last quiet a days.

any idea please??

If there’s a reason why you need to stick with openocd, are there other forums, http://openocd.org/discussion/forum/, where you can post up on the messages you are seeing?

I’m currently attempting JTAG debugging of the Linux SPL on the am572xEVM/BeagleBoard-X15 platform using CCS 7.2 (running under an Ubuntu VM) and XDS100V2.

Even though I’m a newbie, if you were to use CCS7 + the Blackhawk debugger (XDS100V2), maybe people in my shoes on this forum would have already encountered some errors that you see, and potentially be able to provide tips…

CCS 7 is free and XDS100V2 is like $100.00.

Plus in addition to this site, there’s a CCS forum on TI e2e,
https://e2e.ti.com/support/development_tools/code_composer_studio/f/81?tisearch=e2e-sitesearch&keymatch=code%20composer%20studio%20forum,

But last I checked, for Linux they support TI SDK images and not BeagleBoard.org images…
But if you’re just trying to get started with CCS and XDS100V2, they may be able to walk you through
some of your issues.

This may be a long shot, but I just saw a reference to openocd over on the TI E2E CCS support pages:

https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/522774/1904904

If you try posting over there about your Open OCD issues, you may have more luck than here…

Also in a thread regarding kernel debugging techniques, one of the posts in this thread suggests someone has had success with kernel debugging using openocd… You may consider messaging the indvidual responsible for that post directly in case he no longer monitors this thread…

https://groups.google.com/forum/#!msg/beagleboard/0OBhPBmBD_M/ZufvDwHBBAAJ