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.

PGA970: Error connecting to the target

Part Number: PGA970

Hi,
I made a new board including the PGA970 and pins for the XDS200 debugger. on my first Board I didn't have any problems connecting to the PGA but for some reason on this Board I do have issues. All pins of the XDS200 connector are connected properly. Sometimes connecting will work but then as soon as I load and start my programm I recieve this Message:

Error connecting to the target:
(Error -615 @ 0x0)
The target failed to see a correctly formatted SWD header. The
connection to the target may be unreliable. Try lowering the
TCLK setting before trying again.
(Emulation package 9.3.0.00042)

In some cases plugging the XDS200 in and out or un and replugging power of the board did the trick but the Message always reappeared after some time. If it does this is the cosole text:
Cortex_M0_0: Error connecting to the target: (Error -615 @ 0x0) The target failed to see a correctly formatted SWD header. The  connection to the target may be unreliable. Try lowering the  TCLK setting before trying again. (Emulation package 9.3.0.00042)

//Here i was unplugging and replugging power
CS_DAP_0: Power Failure on Target CPU: (Error -180 @ 0x0) The controller has detected a target power loss. The user must turn-on or connect the power supply for the target. (Emulation package 9.3.0.00042)
Cortex_M0_0: Output: ****  PGA970 Initialization is in progress ..........
Cortex_M0_0: Output: ****  PGA970 Initialization is Done ******************

//connection sucessful so i loaded the built code

Cortex_M0_0: Output: ****  PGA970 OnRestart ..........
Cortex_M0_0: Output: ****  PGA970 OnRestart is done ****
Cortex_M0_0: Output: ****  PGA970 OnFileLoaded ..........
Cortex_M0_0: Output: ****  PGA970 OnFileLoaded is done ****

//Error appears again as soon as I hit resume(F8)
Cortex_M0_0: JTAG Communication Error: (Error -615 @ 0x0) The target failed to see a correctly formatted SWD header. The  connection to the target may be unreliable. Try lowering the  TCLK setting before trying again. (Emulation package 9.3.0.00042)
Cortex_M0_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



The Programm should not cause this error, I tested it beforehand on the evaluationboard and had no errors. Also how would you lower the TCLK setting? I didnt find any information on this.

Regards,
Paul

  • Hi Paul,

    The TCLK setting is in the target configuration file. We recommend using 1Mhz for the PGA970. In the past for some reason I have found that typing 1 Mhz into the configuration box can have issues, but putting in 1.0 Mhz works. I do not know why that is the case, but it is another thing to try.

    Regards,
    Scott

  • Hi Scott,

    I already have a value of 1.0MHz written to TLCK but i will lower it to see what happens.
    tried this on 2 different computers. Old Target configuration with old board works perfectly fine. Old target configuration with new board does not work. Editing the TLCK setting in the target config Causes this Error:

    Error connecting to the target:
    (Error -2172 @ 0xD)
    Unable to communicate with the debug probe. Confirm debug probe configuration and coonections, reset the debug probe, and retry the operation.
    (Emulation package 9.3.0.00042)

    editing the TLCK setting again to the same value of 1.0MHz as it was before does not remove this error. After editing the target config I am now not able to communicate with any board.

    Because of the Mentioning of the Emulation package i downloaded it but seemingly the ti download has an old version : ti_emupack_setup_9.2.0.00002_win_64
    This Programm now causes a different new Error:
    CS_DAP_0: Error connecting to the target: (Error -302 @ 0x0) The requested TCLK PLL frequency option is invalid. The utility or debugger has requested a selection of the JTAG PLL frequency or clock source that is invalid. The value of USCIF.TCLK_FREQUENCY is probably bad. (Emulation package 9.3.0.00042)


    Luckily deinstalling it brings it back to the first Error.
    I also tried the Test Connection of the Target Configuration and it suceeds every Time. Also in order to confirm its no issue with my boards I plugged in the PGA970EVM and recieved the same error.

    So i guess I now need help fixing the first Error -2172
    Regards,
    Paul


  • Hi Scott,
    I managed to get rid of the errors mentioned in this comment. I had to ensure that previous Target Configurations were terminated. This way I now also was able to lower the TLCK setting. Starting at 1.0MHz i tested all the way down to 50 KHz but always the original Error persistet on the new board.
    Error connecting to the target:
    (Error -615 @ 0x0)
    The target failed to see a correctly formatted SWD header. The
    connection to the target may be unreliable. Try lowering the
    TCLK setting before trying again.
    (Emulation package 9.3.0.00042)
    The old boards are now working perfectly fine again.
    Regards,
    Paul

  • Hi Paul,

    What is the difference between the boards? Can you share schematics of each version?

    Regards,
    Scott

  • Hi Scott,

    Unfortunately I will not be in the office until Monday next week. But the main difference are 10k pull-up resistors I used for the unused Inputs. So it might be the fault of one of these. But I am not sure which of the inputs could cause such an error.

    Regards,

    Paul 

  • Hi Paul,

    I can't see why a pullup on an input would cause any issue with the JTAG communication, but it may be worth looking into. Please let me know what you find.

    Regards,

    Scott

  • Hi Scott, found the mistake. I made a Mistake soldering the power supply properly which lead to this error.
    Regards, Paul