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.

Programming TM4C1231H6PM using UniFlash and XDS100V2 through JTAG

Other Parts Discussed in Thread: TM4C1231H6PM, UNIFLASH

We are developing the application using TM4C1231H6PM microcontroller.

For development we procured DK-TM4C123G Development Kit.

In final application board we kept the provision of JTAG for debugging and programming.

We procured Black Hawk XDS100V2 JTAG Emulator for debugging and programming the final application board.

We are planning to use LM flash programmer for production to program the image file. But we found currently it is not supporting the XDS100V2.

While searching we came across UniFlash Programmer.

We will evaluate same in next week. Meanwhile, we will like to know whether can we use UniFlash for programming TM4C1231H6PM microcontroller using XDS100V2 JTAG interface?

  • Hi Yogesh,

         If your DK-TM4C123G has a JTAG compatible interface, most probably yes.

         Here is a post below related to XDS100V2.

         How to use XDS100 JTAG emulator to interface to Stellaris devices

    -kel

  • Hi Kel,

    Thanks for your reply.

    We are in a position to interface XDS100V2 to TM4C123G using CCS.

    We are looking for a solution to use the XDS100V2 at the production to program only the image file.

    We found LM Flash Programmer not supporting XDS100V2.

    We found one more tool called UniFlash.

    We just like to whether UniFlash supporting the XDS100V2 or not.

    If any other which we can use at production and support XDS100V2, then please provide detail for same.

    Yogesh

  • Hi Yogesh.

    Yogesh Gudekar said:
    We just like to whether UniFlash supporting the XDS100V2 or not.

       

         Yes. See, details at wiki below under "List of Communication Interface (Emulator) Support".

         http://processors.wiki.ti.com/index.php/CCS_UniFlash_v1.0_Release_Notes

    -kel

  • Hello Yogesh

    XDS100V2 is supported by UNIFLASH and we have tested that out. However JTAG Unlock Sequence is not supported by XDS100V2 for which you would need the Stellaris ICDI as on the LaunchPad.

    Regards

    Amit

  • Hi Kel and Amit,

    Thanks for your reply.

    Regaring Unlock Sequence requirement, if application software use the JTAG pin as GPIO, then microcontroller goes into Locked state and unlock sequence is required. Is our understanding corrrect?

    If application software not using JTAG pin as GPIO, then user can use UniFlash along with the XDS100V2 for programming and reprogramming of the Tiva microcontroller multiple number of times. Is our understanding corrrect?

    Regards...

    Yogesh

     

  • Hello Yogesh

    That is correct. There is another set of conditions as well

    1. The System Frequency being configured incorrectly causing the PLL to exceed the operational frequency or a wrong divider setting.

    2. The use of Deep Sleep with low frequency clock (JTAG clock needs that system clock be 10x the JTAG clock)

    Regards

    Amit

  • Hi Amit,

    Thnaks for your valuable input.

    In our application, perspective of production for programming and reprogramming we are just going to keep the provision of JTAG interface. UART port are blocked for diffrent usage.

    Our application will not use the JTAG pin as GPIO.

    We will use UniFlash along with the XDS100V2 for programming and reprogramming.

    With above setup, do you forsee any chances of chip getting locked perspective the locking condition which you mentioned in your reply?

    The datasheet also talks about implementing the software routing to  restores JTAG functionality.

    Can i get the detail about those routine?

    Is it recommend for us to use the routine for setup which we explained?

    regards....

    Yogesh

     

     

  • Hello Yogesh,

    The Software Routine involves using a GPIO Edge Trigger Interrupt/Power Up Polling Loop. A spare GPIO which is normally connected to VDD using a switch. If the switch is not pressed then the Pin Value is High and the code goes ahead. If the switch is pressed then the pin Value is Low and it goes into a while 1 loop where it makes the JTAG Pins back to the original power up state.

    It would be a good practice to have this code the first thing you do before even locking the PLL. This will allow you to mitigate almost all known software lock up problems. The only problems that it cannot circumvent is like a Failed device.

    Regards

    Amit

  • Hi Amit,

    Basis your explanation, we will like to know…

    1)     When we program the Fresh card using UniFlash along with the XDS100V2 on JTAG Interface, is there any chance of JTAG port got locked before we programmed the chip for the first time?

    2)     If it is possible, then what is the probability of same in terms of count?

    Regards....

    Yogesh

  • Hello Yogesh,

    A fresh TM4C device has the Flash is factory erased. In such an event it would keep JTAG open.

    Regards

    Amit

  • Hi Amit,

    You cleared all our doubts.

    There is one small issue regarding downloading the UniFlash Setup.

    From my login I sent the request to download the software and got the email with link to download the software.

    In my company, I don’t have the direct access of internet to download any software.

    To download the software, I sent the request to our IT Team.

    IT Team found the provided link is the “Online Installer”, which will install software on their machine and they are not sure about whether it will be possible to install the downloaded software on my machine. Finally we want to install software on my machine and on the machine of the customer.

    Our IT requested us to provide the link for “Offline Installer”.

    Please help us to provide the link for the “offline Installer”, so we can install setup on my machine and the machine of the customer.

    Regards...

    Yogesh

  • Hello Yogesh,

    The installer looks for active components from TI Website. You may have to post a request to CCS E2E forum if they have an offline installer.

    Regards

    Amit

  • Yogesh Gudekar said:
    Finally we want to install software on my machine

    Using the "Online installer", this is possible, just ask for authorization. Also, you can move your CPU to the IT office to have Uniflash installed.

    -kel