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/CC3220SF-LAUNCHXL: Debugging is possible only step-by-step

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi, I'm using the demo board CC3220SF-LAUNCHXL and while developing my application sometimes the debuggin become a bit weird.

It happens that if I "resume (F8)" the execution when the debugger is ready at the main entry point it fails with the following error message:

>Cortex_M4_0: JTAG Communication Error: (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 6.0.628.1)

>Cortex_M4_0: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging


Power cycling the board does nothing useful.
Instead of hitting F8, I can "debug" my application pressing F6 (step over). In this way it doesn't fail (with the same code!). Of course I cannot debug an application in such a way!

Then, something magic happens and it come back to the expected beahvior, but honestly I haven't find why yet.
Any idea?

  • Hi Mark,

    1. Make sure you have a jumper on SOP 1 on the LaunchPad.
    2. Be sure your LaunchPad is flashed in Development mode with the most recent service pack (within the SDK tools folder) in Uniflash ImageCreator. You can follow the steps from section 3.4 of the Getting Started Guide: www.ti.com/.../swru461.pdf
    3. Which version of CCS are you using? You must be running at least CCS v7.1.

    Best regards,
    Sarah
  • Hi!
    1. yes, I have
    2. yes it flashed in development mode w/ service pack
    3. I'm running 7.1.000016

    It seems the JTAG interface it's not reliable. Without changing anything in the code sometimes runs other doesn't. But if I flash an image with the same code, it never fails.
  • Hi Mark,

    1. Do you have another LaunchPad that you can reproduce this issue on?
    2. What is your application code doing? Are you going into a low-power mode at any point in your application?

    Best regards,
    Sarah