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.

TM4C129XNCZAD: Debugger error

Part Number: TM4C129XNCZAD
Other Parts Discussed in Thread: UNIFLASH

I am trying to program tm4c129x microcontroller with xds110 and its showing this errror CORTEX_M4_0: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. 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 9.3.0.00032).

I think the problem is with code only. I did some change in my code and upload it  and after that its showing that error.

  • Hi,

      Do you remember what you changed in the code? The problem you describe can happen sometimes if you repurpose the JTAG pins for GPIO. Once the JTAG pins is repurposed for GPIO, the debugger can no longer connect to the target. Another possibility I normally see is that the code put the processor into low power mode where all the clocks are shut down without a mechanism to wakeup. In this case, the debugger cannot synchronize with the processor.  Lastly, if you intentionally program the DBG0/DBG1 to lock out debugger access. 

    In any case I will suggest you try two things. 

    1. Try to erase the flash. If you cannot even connect to the device then this option will not work. 

      2. Try to do a mass erase. This operation will bring the device to its factory setting. You can use either Uniflash or within CCS to unlock the device . See below.