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.

TM4C1294NCPDT factory reset

Other Parts Discussed in Thread: TM4C1294NCPDT, LMFLASHPROGRAMMER, UNIFLASH

Hi,

I'm using TM4C1294NCPDT with PoE on a custom board. I use the TI XDS100v2 USB debug probe to program the MCU.

I started the udpEcho sample (with a MAC address hardcoded in code), and everything worked fine. But one of the external PoE sources I use disables power when the debug probe is connected to the board. So I think the MCU got stuck in some transient state. (All voltage levels are correct so I suppose it wasn't damaged physically.)

I get the following error messages when I try to start debugging:

  • CORTEX_M4_0: Can't Run Target CPU: (Error -2134 @ 0x0) Unable to control device execution state. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.636.0)
    CORTEX_M4_0: Flash Programmer: Timed out while writing to Flash memory
    CORTEX_M4_0: GEL: File:

  • CS_DAP_0: Error connecting to the target: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 0.0.0.0)

I'm using CCS6 on Windows. I can't even find how to "simple-reset" the device.

Can anyone please send me some instructions on how to (factory-) reset the device with these tools?

Thank you

  • Hello Gergely

    To be able to factory reset the device, you would need to run the JTAG unlock sequence using the LMFlashProgrammer and the ICDI. The ICDI can be tapped in from a launchpad and the JTAG lines blue wired from the LaunchPad ICDI to the custom board

    Regards
    Amit
  • Amit Ashara said:
    To be able to factory reset the device, you would need to run the JTAG unlock sequence using the LMFlashProgrammer and the ICDI. The ICDI can be tapped in from a launchpad and the JTAG lines blue wired from the LaunchPad ICDI to the custom board

    I haven't tried a factory reset using a XDS100v2, but I remember from some emulator update release notes seeing that factory reset support has been added to XDS class emulators.

    Looking at UniFlash v3.4 I see that when selecting a TM4C1294NCPDT connected with a XDS100v2 the UniFlash GUI is offering an option to perform an Unlock (aka factory reset):

  • Hello Chester,

    There was some work that was being done on it. But I am not able to find the Release Note for the Uniflash explicitly mentioning the support for XDS and Unlock

    Regards
    Amit
  • Hi Chester,

    thank you for your help. Yes, the "Unlock" - "Finish Unlock" buttons work, but the factory reset didn't help.

    I measured the difference between the PoE ground and the debug probe's ground, and it was ~2.5V in case of TL-SF1008P.
    So I guess it might have caused some damage after all. (However, TL-POE150S still works fine with XDS100v2.)

    Additionally, I have to remark, that UniFlash is a very useful tool, particularly for programming the MAC address, so thank you for this hint.

    Best Regards,
    Gergely