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.

Steps for using Tiva C series EK-TM4C123GXL as an external debugger

Other Parts Discussed in Thread: EK-TM4C123GXL, UNIFLASH

Hi,

I want to unlock a TM4C129 on a custom board using the debug pins of Tiva C series EK-TM4C123GXL. 

I have tried connecting the debug pins (TMS-TMS, TCK-TCK, TD0-TD0, TD1-TD1, RST-RST and GND-GND) of Tiva C to that of TM4C129  and by using the "Fury, DustDevil, TM 4C123 and TM4C129 Classes" feature of LM Flash Programmer utility I want to unlock the TM4C129. 

But the problem is that LM Flash programmer utility crashes when I click on the unlock button.




It also crashes while uploading .bin file(Screenshot attached)



Also I would like to mention that:
1. I have removed the power jumper in order to disable the U1 of Tiva C.
2. The crystal value is correct in the configuration is correct.
3. While unlocking I do press the reset button.

Now, 
1. What steps am I missing? How do I unlock the TM4C129?
2. Why does the LM Flash Programmer fails? 
3. Does Tiva C really allows debugging like this?

Any help regarding this would be highly appreciated.

Regards.

  • Hello Sarvesh

    Please refer to the following application note.

    www.ti.com/.../spma075.pdf
  • Hi Amit,

    Thank you for your prompt reply!

    I do have referred to the above mentioned PDF before and have tried the exact same steps.

    But the LM Flash Programmer still crashes every single time whenever I press the unlock button.

    What is the solution over this? How do we resolve this? 

    Regards. 

    P.S.
    1. I do have updated the drivers.
    2. Tried re-installing the LM Flash Programmer.
    3. Facing the same issue when I used another same LaunchPad.

  • Hello Sarvesh

    Change the PC and try it on another PC. Or install UniFlash application and try the same.
  • Amit,

    UniFlash does says that it is able to unlock the device :


    [10/20/2016, 11:32:04 AM] GEL: CORTEX_M4_0: GEL Output: Memory Map Initialization Complete

    [10/20/2016, 11:32:04 AM] Status: CORTEX_M4_0: Starting Debug Port Unlock operation...

    [10/20/2016, 11:32:04 AM] Status: CORTEX_M4_0: Initial Unlock completed, please release reset button and press the "Finish Unlock" button in the Flash options to complete the operation...

    [10/20/2016, 11:32:05 AM] Status: CORTEX_M4_0: Power cycle the board to complete the unlock procedure.



    But when I try to Load another Image file, the UniFlash gets stuck on the following screen:




    Also tried LM Flash Programmer after unlocking, it too failed.

    This does indicate that even UniFlash was not able to unlock, even though it says that it has unlocked, because it should have had no problems in uploading a new image.
    Also, tried the same process on a different PC. I'm getting the same results.

     What might be the possible reason for this?

    Regards.

    P.S. Highly appreciate your promptness and support!  

  • Hello Sarvesh,

    Can you please check the connection between the two boards and the change that needs to be done on the EK-TM4C123GXL to bypass the main MCU as given in the application note?
  • Hi Amit,

    I'm able to unlock now.

    I suppose the problem was with the drivers.

    What is I did differently this time is, on a different PC, I installed FTDI drivers (www.ti.com/.../lm_ftdi_driver) FIRST, for Stellaris A, and then the ICDI drivers (www.ti.com/.../stellaris_icdi_drivers), for Stellaris B. 

    And then LM Flash Programmer was able to unlock successfully! 

    The older PC's, however, are still not able to unlock. I tried to Update driver and give the local path to the FTDI driver, but Windows prompted that it had all the necessary drivers so couldn't really install the FTDI driver.  

    Anyways, thanks for all the support. Thanks you! Really appreciate it! 

    Regards.

    P.S. 
    Suggestion: It would be great if you mention in the description of ICDI that FTDI drivers needs to be installed first; like you have mentioned in the FTDI driver description.

  • Hello Sarvesh

    With the TM4C launchpads and EVM, the ICDI drivers is all that is needed. Also the ICDI drivers are required to be installed to begin any development. However it is a good point and we could add the same.