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.

TIVA-c programming JTAG

Other Parts Discussed in Thread: SEGGER

Hello, 

    I am ready to move my project off the DK board to a custom one. However, I am confused about programming the TIVA. I was going to bring out the JTAG pins on the custom board to a connector. These pins are unused on the end product. I assumed that any JTAG programmer would be usable to the program the "board" in a production environment but, Im finding it is not so cut and dry. Is there a stand alone programmer that can be used to program the TIVA chips? My thought was that I could purchase hardware that would plug into a PC on one end(USB)  and into the JTAG connector on the other end and we could then transfer the executable code to the processor.

Thanks for the help

  • You can use even the launchpad itself to program your chip.

    On the launchpad there are seven Vias, near the Reset push button, that are the JTAG connector.


    But you have to take care about your source code too.

    In particular take care about the boot section, and read the datasheet on page 205 about the alternate pin selection onthe JTAG pins itself.

  • While Leonardo's suggestion (can) be made to work there exist more robust (and faster executing) commercial solutions.

    One example is the (long) tried, true, tested "J-Link" from Segger. Note that this device accommodates the newer "SWD" which "frees" 2 of those (formerly) JTAG pins for your unrestricted usage. (it is wise that you "avoid" using those pins - yet harvesting 2 more GPIO rarely (i.e. never) hurts!) 

    (firm/I receive no benefit for this endorsement)

  • Second cb1's endorsement and note Segger makes a programmer that operate independently of a PC, I've never had a need to try it though.

    Robert

    They also make a decent 20 pin to 10 pin adapter for the standard Cortex header.

  • Robert Adsett said:
    They (Segger) also make a decent 20 pin to 10 pin adapter for the standard Cortex header.

    This reporter, "Did not know!"   Merci, Robert.

    May we note that (this) vendor also produces such (beyond decent) 20 pin (0.100" pitch) to 10 pin (0.050" pitch) adapter.   ADA2-A defines this vendor's device - which (thoughtfully) includes a "reset" switch.

    Twenty pin (old) JTAG headers have "outlived their usefulness" (in most cases) - poster's use of the 1/4 size (yet equally capable) new 10 pin, JTAG/SWD standard, is strongly recommended...

  • Thank you for the info. On seggers site there are quite a few Jlink devices. Have you used a specific one with the TIVA-C devices?
  • patrick murphy said:
    Have you used a specific one with the TIVA-C devices?

    Indeed - but as my firm employs IAR we're able to use the J-Link w/multiple ARM MCUs - from a variety of vendors.  (unrealistic to expect that, "one & only one" vendor will (always) satisfy)

    In highlight are the 3 "most usual suspect" J-Links for use w/ARM MCUs.   We have multiple of the "Base" units & one "PRO."  If you "swear" not to develop commercially - by my read - you can save a fortune (> 300 (USD)) via the "EDU" model.   (check w/Segger - you may NOT have to "pretend" to be a student!) 

    J-Links combined w/IAR (paid or FREE) provide performance & capability far beyond vendors (singular/limited) offering.

       

  • I use the Plus myself. A big part of my use is flash programming separate from debugging. With the micro we are using it takes longer to connect and disconnect than erase and program.

    If your use is exclusively production/external standalone programming you may want to look at their program only models (one is battery powered), I've not used those though so I cannot comment on their capability. If you are only getting one or two though the addition of debug will likely pay for itself.

    Robert
  • Robert Adsett said:
    I use the Plus myself

    Aha - "now" we know where the singular "Plus" sale to Canada went!

    Agreed that debug facility makes any of these worth, "weight in Gold."