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/TM4C129ENCZAD: Unable to debug TM4C129ENCZAD RTSC project

Part Number: TM4C129ENCZAD
Other Parts Discussed in Thread: EK-TM4C129EXL

Tool/software: Code Composer Studio

I’ve got a custom board that uses the TM4C129ENCZAD. Ultimately I’d like to use this for a TI-RTOS project, but I’m seeing strange behavior when programming it. Here are the steps I’ve tried to isolate the problem:

First, I created a new project from the hello world basic example template in CCS, which builds and runs just fine. Then I created a new empty RTSC project, got it configured and built, but when I try to debug I get this error:

CORTEX_M4_0: GEL Output:

Memory Map Initialization Complete

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.222.0)

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

From then on, each time I try to program it I get error -1170. I can't even go back to the hello world project unless I perform the dbgjtag device unlock procedure. I’ve tried lowering TCLK, but that doesn’t fix it. In fact, the target configurations are identical for both projects.

I'm using CCS version  6.1.3.00034 and an XDS200 debug probe. What's different about an RTSC project that could cause the debugger to fail like this?

As a sanity check, I created another set of hello world and RTSC projects for an EK-TM4C129EXL demo board that I have, and both of these work--it's just the ENCZAD RTSC that's giving me problems. Where should I look next?

2664.tm4c129enczad_rtsc.log

  • Hi Nick,

    When you created a new empty RTSC project, did you import the Empty Example?

    Derrick
  • I created a new project from New CCS Project -> Empty Projects -> Empty RTSC Project. I had to manually create main() and the RTSC config file. I also had to specify the enczad linker command file to build successfully. I did not make any changes to the .cfg file.

    Is there something else I need to configure for my RTSC project to work? I did this same procedure for the 129ENCPDT and the demo board, but that one works. I suppose the hardware on my custom ENCZAD board could be another variable, but a bare metal project works there, so I'm guessing the hardware is ok.

    Thanks,
    Nick

  • I suppose the hardware on my custom ENCZAD board could be another variable, but a bare metal project works there, so I'm guessing the hardware is ok.

    Did the working bare metal example call SysCtlClockFreqSet?

    The SYS/BIOS start-up code for a TM4C129 device will set the clock configuration according to the parameters on the SYS/BIOS Clocking Options:

    If the SYS/BIOS clocking options result in an invalid clock source, e.g. attempts to use an external crystal but the external crystal is missing / faulty, then it can lead to the observed symptoms of the debugger being locked out until the device is unlocked. 

  • I think that was the problem. Our board is missing the external oscillator. When I set it to use the internal oscillator, it works. Thanks so much!