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.

TMS570LS1114: Cannot debug on custom board (CCSv7 w/ XDS200)

Part Number: TMS570LS1114
Other Parts Discussed in Thread: UNIFLASH, HALCOGEN

So, I have a custom board with the TMS570LS1114ZWT on it. It is being operated in conjuction with the TPS65381A, which generates the I/O and core supply voltages, which I have verified. I use an XDS200 debug probe for connecting to the target board using a 10-pin JTAG interface.

I am using CCS v7 (as per customer requirements) to compile and debug my code. At present, I have just a minimal test code, generated using HALCoGen, which does not use any periphery modules. Unfortunately, I can't start a debug session, nor can I upload data to the flash memory (using the UniFlash tool), or perform an Erase Flash cmd.

I have previously tried running the code on the TMS570LS12x dev kit (obviously having selected the correct target chip). This works just fine. To rule out the JTAG interface, I soldered an adapter cable, which turns the 10-pin JTAG connector back into a 20-pin ARM connector, as found on the dev board. This also works without problems, so I don't think the JTAG interface is the culprit.

I have tried testing the connection from within the CCS (from within the target config editor), which works ok.

When I try to launch a debug session, however, I get the following messages in the console window in CCS:

Texas Instruments XDS2xx USB Debug Probe/IcePick : Target must be connected before loading program.
Texas Instruments XDS2xx USB Debug Probe/Dap : Target must be connected before loading program.
CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0 due to System Reset

Also, a window pops up:

It stays stuck in this state for a while, until finally the CCS gives up with another bunch of messages:

Texas Instruments XDS2xx USB Debug Probe/IcePick : Target must be connected before loading program.
Texas Instruments XDS2xx USB Debug Probe/Dap : Target must be connected before loading program.
CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0 due to System Reset
CortexR4: Error: (Error -1141 @ 0x3E418) 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 7.0.48.0)
CortexR4: Error: (Error -1141 @ 0x3E418) 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 7.0.48.0)
CortexR4: 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 7.0.48.0)
CortexR4: Error: (Error -1141 @ 0x3E418) 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 7.0.48.0)
CortexR4: Trouble Removing Breakpoint with the Action "Remain Halted" at 0x8000128: (Error -1066 @ 0x8000128) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 7.0.48.0)
CortexR4: File Loader: Memory write failed: Target failed to read 0x080002E8
CortexR4: GEL: File: C:\Users\franz.b\workspace_KleinerTMS\Test\Debug\Test.out: Load failed.

And I get a final popup window:

Edit: Not sure if this helps, but I get different error outputs on the console from time to time:

Texas Instruments XDS2xx USB Debug Probe/IcePick : Target must be connected before loading program.
CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0 due to System Reset
CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0 due to System Reset
CortexR4: File Loader: Memory write failed: Timed out waiting for target to halt while executing wr_pll.alg
CortexR4: GEL: File: C:\Users\franz.b\workspace_KleinerTMS\Test\Debug\Test.out: Load failed.
CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0 due to System Reset

Edit2: Uniflash seems to work now, if somewhat inconsistently. I can upload the .out file of my project, read memory and perform a chip erase. I only made one real change: I severed the cold reset line, running from Pin 6 of the TPS65381A (NRES) to ball W7 (NPORRST) of the TMS570. However, the operations in the Uniflash seem somewhat unreliable and I can't do step-by-step debugging...

I'll continue to investigate any potential hardware problems. But maybe somebody has encountered this problem before and could give me some pointers?

Any help is appreciated.

Thanks!