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.

CCS/EK-TM4C123GXL: CORTEX_M4_0: Trouble Halting target CPU problem

Part Number: EK-TM4C123GXL
Other Parts Discussed in Thread: TM4C123GH6PM, TM4C123GE6PM

Tool/software: Code Composer Studio

Hi!

Everytime I run my code it stops suddenly and showes the error "CORTEX_M4_0: Error: Timed out while waiting for target powerup/polling a hardware resource. CORTEX_M4_0: Trouble Halting target CPU"
I checked for help in related foruns as: https://e2e.ti.com/support/microcontrollers/other/f/908/t/415791?CORTEX-M4-0-Trouble-Halting-Target-CPU
But I couldn't understand how to chande frequency of JTAG and " the host was (wrongly) signalling an extra hardware reset to my board. Having rigged up a separate power supply for my board the problem persisted but a 'scope on the reset line showed up the error."

I'm using a TM4C123GH6PGE on a custom board and I'm using a Launchpad as the debugger also.

Best Regards,
Pedro L.

  • Hi Pedro,

    Pedro Tavares said:
    Everytime I run my code it stops suddenly and showes the error "CORTEX_M4_0: Error: Timed out while waiting for target powerup/polling a hardware resource. CORTEX_M4_0: Trouble Halting target CPU"

    This is a fairly commonly reported issue on Tiva devices. The exact root cause can vary quite a bit. But they all seem to some type of connection instability.

    Pedro Tavares said:
    But I couldn't understand how to chande frequency of JTAG

    This is certainly one thing to try in regards to improving stability - lowering the JTAG TCLK frequency

    https://www.youtube.com/watch?v=mKxaztkCsYw

    Pedro Tavares said:
    " the host was (wrongly) signalling an extra hardware reset to my board. Having rigged up a separate power supply for my board the problem persisted but a 'scope on the reset line showed up the error."

    It is also important to carefully check all the HW connections in your setup. Make sure the connections are correct and valid. Check the signal itself if you can. Sometime additional HW modifications are needed to improve the signal quality. 

    Also try changing up the USB post on the host. If using a USB HUB, try using a USB port that is directly on the PC. Also try using a USB 2.0 port instead of 3.0 (if applicable)

    Pedro Tavares said:
    I'm using a TM4C123GH6PGE on a custom board and I'm using a Launchpad as the debugger also.

    Is the LaunchPad a TM4C123G? Are you able to have CCS connect to the LaunchPad (as the target) itself successfully?

    You also don't mention which version of CCS you are using. If using an older version, please try updating to the latest.

    Thanks

    ki

  • Thank you for all the answers. Actually I am using the TM4C123GE6PM. I tried the TM4C123GH6PM and it did not work the update of duty cycle by JTAG. I confess I am a little bit loss in which Device and connection on Project I am supposed to apply. How can i figure it out?

    By now, I can reach my experience again because the corona issue. However, soon I can try this suggestions. Thank you for helping me

  • Is this the launchpad?

    http://www.ti.com/tool/EK-TM4C123GXL

    If so, connect the launchpad to your PC directly using the USB cab;e and then try manually creating a standalone target configuration file with the has the following settings:

    and then use it to manually launch the debugger and then try manually connecting to the target.

    Thanks

    ki