This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS3137: Segger JLink Debugger on TMS570/Hercules development board

Part Number: TMS570LS3137
Other Parts Discussed in Thread: SEGGER, , TMDSEMU200-U

Tool/software: Code Composer Studio

We are designing a new product based on the TMS570LS3137, and the only debugger I could find that worked with the Hercules-dev-board 20-pin JTAG header was the Segger Jlink-plus, which only works ~50% of the time. 

I get various errors and faults when the Segger debugger does not work -- the 2 common failures are: 1) the code seems to load, but a DataAbort exception occurs or 2) the code does not load and the console reports "Trouble Reading Register PC: SetupTarget(): PCode returned with error code -1".

I have read various threads in this forum and in Segger's forum about modifying the TMS570.JLinkScript file to change the initial reset-timing or to change the initialization of ECC memory, and I tried a TI_TMS570LC.JLinkScript posted on this forum, which had no effect on my problem.

Simple question -- what specific JTAG debugger (that I can buy today) works with CCS7 AND with this 20-pin header on the Hercules development board? If this Segger JLink is the one, then what do I have to do to make it reliable -- do you have a working JLink script-file for this TMS570LS3137?

Thanks,

Jim

  • Jim,

    Is this the board you are using: www.ti.com/.../tmds570ls31hdk

    If so I can see in the users guide that is has an XDS100v2 Debug Probe built onto the board. i.e. you should not have to use an external debug probe. www.ti.com/.../spnu509b.pdf

    If you want to use an external probe you would likely need to get an adapter as most newer probes don't support the legacy ARM 20pin header. In general we recommend the XDS110 as our entry level debug probe these days. It doesn't natively support the ARM 20pin but I have used it with an adapter before. I have 2 different adapters on my desk that go from the TI 20 header to the legacy ARM 20pin.

    One is the second one in this list: www.blackhawk-dsp.com/.../PinConverters.aspx

    Adapters can be pricey.

    Another option would be an older XDS100v2 that has a native 20pin ARM connection like this one:
    www.blackhawk-dsp.com/.../USB100v2ARM.aspx

    Regards,
    John
  • John,

    Thank you for the quick reply; there is a longer story behind this issue, and I only summarized above. Yes the on-board JTAG works on the dev-brd. Then we wanted to design our own board based on the TMS570LS3137. I tried multiple debuggers and found only one (the segger jlink-plus) that worked with the external 20-pin interface on that dev-brd. We would have preferred the more standard 14 pin interface, but I tried various Spectrum Digital debuggers with various adapters and none worked. Through this investigation I found multiple, and conflicting, documentation on this particular JTAG interface -- there seems to be something unique that must be done with the independent 2-reset-pin inputs. The Segger debugger appeared to work, so we then designed our own board with the same 20-pin JTAG interface -- that I now cannot load code on.

    I went back to testing on the dev-brd and I discovered the 20-pin interface only somewhat works -- maybe 1 out of 3 times. I will look at that Blackhawk device -- but I was hoping someone at TI, or in the TI community, was actually using an off-the-shelf debugger for this 20 pin interface. 

    Thanks,

    Jim

  • Jim,

    Just adding to John's reply, the TMDSEMU200-U also works with this device, is reliable and has an ARM 20 pin adapter.

    I am not entirely sure what Spectrum Digital debuggers you tested, but this family of devices work well with most of our offers - perhaps you tried the old XDS510-class debuggers from Spectrum Digital, which haven't been supported in about seven years now.

    Regarding the design itself, I strongly recommend checking the HDK board's schematics and the reference below, especially the descriptions of the various reset pins and the section "Target Connection Design":
    software-dl.ti.com/.../emu_xds_target_connection_guide.html

    Hope this helps,
    Rafael
  • That blackhawk debugger worked; thanks.