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.

TM4C Tiva debug port (SWD/ JTAG)

Hi,

I would like to check, is there anyway or document which can explain how to control the debug port (SWD/JTAG in TIVA series) and use it to write into internal flash (or even SRAM) memory? I would like to configure the MCU (etc GPIO) using JTAG/ SWD as well if possible.  

I can't find any related documents from TI website or reference documents. Need help.

Thanks and best regards,

KH

  • Hello KH

    The documentation on the debug architecture is maintained by ARM and not by TI. The following post has been discussing the same (ignore the title)

    e2e.ti.com/.../435835

    Regards
    Amit
  • Hello Amit,

    Thanks for your prompt reply, understand that the debug architecture is maintained by ARM. Does it means that for Tiva, we are unable to access it? As per my understanding, Freescale K20 MCU do support this and they do have documents to explain how this be done. Is there anyway that TIVA can do it too? Need your advise.

    Regards
    KH
  • Kum Hoo Lee said:
    Does it means that for Tiva, we are unable to access it

    One suspects that your, "Investigative efforts" may benefit from some (slight) tweaking.

    W/in TM4C123 manual is a 12 page section - devoted to, "JTAG Interface" - surely answers many (most) of your questions!   (or at least "prepares" you for a more meaningful "read" of the more detailed ARM documentation...)

    "Turning your back" upon the rich, expansive & well-tested vendor API seems w/little merit to this reporter!    Have you unlimited time, energy & budget to develop your project/product - by rejecting this great application aid - and marching off, alone?   (culling oneself from the "herd" - often proves risky - sometimes fatal.)

    JTAG/SWD is the primary means to program & debug all ARM MCUs - "inability to access" (as you state) seems an, "unreasonable" conclusion...

  • Hello KH,

    In the specific question to Tiva, our customers can access it, but from TI we have restricted access due to nature of the license.

    I cannot comment on why and how Freescale or any other competitor would do that. But here is my 2 cents on the same. With a large number of debuggers and emulators to chose from, the customer has to be more focused on application development. In case the application is the development of debuggers and emulators, in that case no document on JTAG/SWD is sufficient without the user taking a deep dive into the DAP architecture. Also note that there are other aspects like PC drivers that need to be developed or PC application like IDE that a silicon vendor will try to promote.

    Regards
    Amit
  • And keep in mind that at least some adapters provide libraries/protocols like GDB Server so you can read/write any memory location using them rather than needing to get into the JTAG implementation details if that's the kind of access you need.

    Robert
  • And - may we note - that this theme has shifted (far) from TM4C Application focused...