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.

Trouble Halting Target CPU:

Hello,

I am using CCS5.2.1.000.18 with the C6746. When I want to do a system reset (ctrl+shift+S) somehow my processor crashes and I get the following message:

Trouble Halting Target CPU:
Error 0x00001020/-1137
Error during: Execution, Target,
It appears that the target is being held in reset.  This may be
due to Wait-In-Reset (WIR) configuration set by the EMU 0/1 pin
settings.  If this is the case, press Cancel and disconnect all
connected devices to attempt to clear the WIR configuration.

If this is a multi-core system, the master CPU or ICEPick may
not be releasing the target from reset.  Please check your
configuration and/or your GEL files to ensure that nothing
is blocking the target from being released from reset.

it is impossible at this point to recover unless I do a complete power down then up of my board. I am attaching my .gel file just in case.

I appreciate the help,

thx.1882.C6746.gel

  • Hi,

    I am not sure what may be happening in this case; I suspect the system reset is causing other devices of your board to lock the DSP in reset, thus causing a lock-up scenario.

    When this happens, can you try to connect to the DSP's ICEPICK and inspect the status of the core itself? If the ICEPICK is successfully connected but the DSP core is not accessible, this would indicate the clock may be powered down (check also the attached screen to see if Wait-In-Reset is disabled). However, if the ICEPICK can't be connected then the entire device is being held in reset by (probably) an external device.

    Please check the short clip Using ICEPICK of the Quick Tips page:

    http://processors.wiki.ti.com/index.php/Quick_Tips

    By the way, the GEL file looks fine to me.

    Regards,

    Rafael

  • Rafael,

    Thank you for your reply, I have a couple of questions before I can make progress:

    1- Under Run > Advanced do I need to check or uncheck the Halt On Reset I am not sure which one?

    2-I opened the video you mentioned however my menus look different, please take a look at the snapshot provided. I am not sure how to enable the ICEPICk under these menus?

    thx,

  • Any suggestions please?

  • Hi,

    1. The error message talks about halt on reset possibly being enabled, therefore the ideal option is to disable it.

    2. Sorry about the short clip, it was designed for CCSv4 and I forgot that CCSv5 is radically different. The forum thread below talks about how to use the ICEPICK in CCSv5 (I still need to do a short clip about that).

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/195554/699454.aspx

    Hope this helps,

    Rafael

  • Thanks for your help I added the ICEPICK and the target status.

    Please find attached the outcome when I connect to the ICEPICK when the problem happens.

    Please note when the system gets locked I still get the error and this error keeps repeating untill I push the rest button on my board or power cycle

    C674X_0: Trouble Halting Target CPU: (Error -1060 @ 0x0) Device is not responding to the request. 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.0.747.0)
    C674X_0: Trouble Halting Target CPU: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.747.0)

    The reason I am doing a system reset is because I noticed that if I change the value of my C6746 timer1 to a new one i.e:

    TIMER1_PRD12 = someNewValue; re compiles, reload..etc the new value won't update to the register unless I do a system reset, however doing that makes CCS5 lose its mind...

    this is super frustrating...am I missing something?

  • the problem was to update the  spectrum digital emulation problem fixed