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.

Tiva C with Spectrum Digital XDS510USB emulator.

Other Parts Discussed in Thread: TM4C123GH6PZ

Hello

I have a board using the Tiva TM4C123GH6PZ.

I have a Spectrum Digital XDS510USB emulator and configured the JTAG header on the board to use this emulator.

When attempting to communicate using CCS5.5 to the board, I get the error message "CAS_DAP_0: Error initializing emulator"

Reviewing some other forum posts, it seems that some people have been able to use this emulator with a Tiva-C device, but with some difficultly.

My questions:

  1. Is my emulator compatible with the TM4C123GH6PZ? IT came as part of a C200 kit I purchased long ago, and is marked "C2000" on the emulator. Are there features that make this applicable only with C2000 series devices?
  2. Are there some CCS settings I can try that may get this to work.

I have no problem getting an XDS200 if that will work; I just want to eliminate any other potential issues before buying a new emulator.

Thank you

Dale

  • Hello Dale

    2 EDITS:


    XDS560XDS510 should work just fine unless it states that XDS510 does not support Cortex M core.

    The first thing you need to make sure is the header on the XDS560 XDS510 and that on the board are of the same pinout. I have seen users making connection between ARM20 and TI20 pinout

    processors.wiki.ti.com/.../JTAG_Connectors

    The next thing is a utility in CCS called Test Connection. When you open the ccxml file, that is a button you should be able to see in the Advanced setting (I believe basic setting should also show the same). Does that PASS or FAIL?

    Regards
    Amit

  • Hi Amit

    I reviewed the pinout with a colleague.

    We are confident that the pinout on the board is correct for the 14 pin JTAG header.

    Also, we verify that the pins also go to the corresponding pins on the Tiva MCU (TMS, TDO, etc.)

    One connection we are not 100% sure of is that the TRST pin goes to teh Tiva RST input? Is this correct.

    On the board, we also confirmed that TCK and TCK-RET are connected together.

    This seems to match the Spectrum Digital Documentation. Do you agree that this is correct?

    I ran the Test Connection function.

    Below is the output from this:

    [Start]

    Execute the command:

    %ccs_base%/emulation/drivers/sdjtag.exe -f %boarddatafile% -v -X reset -X scantest

    [Result]

    ** BoardFilePath: C:\Users\Dale\AppData\Local\.TI\1989394224\0\0\BrdDat\testBoard.dat
    ** Resetting Emulator
     -- Emulator is Reset
    ** Emulator Scan Test
     -- Found JTAG IR Length of 4
     -- Found 1 device(s) in the scan chain

    [End]

    After the test, I tried entering debug mode in CCS. I still get the error initializing emulator error.

    Thank you

    Dale

  • Hello Dale,

    TM4C devices do not have a TCK-RET pin. So connecting the TCK to TCK-RET and connecting it back to the XDS510 is correct as well. Even if you do not connect the TCK-RET and in the XDS510 ccxml use the clocking option for "fixed clock", it should PASS the test connection.

    The Scan Chain Success shows that the JTAG scan is correct. I however was expecting a longer message, which shows if both IR and DR Scan chain Integrity is correct.

    As for the reset pin you need to make sure that there is a Pull Up on the pin and that when the JTAG connection is being made, the RST pin remains high and NEVER toggles low,

    Regards
    Amit
  • Hi Amit

    I observed the reset pin.

    First, it is pulled to VDD (3.3V) through a 100k resistor.

    There is also TLV803M connected to the reset pin as well.

    I observed the voltage on RST.

    It does toggle low when the emulator starts, but then returns to 3.3V and remains there.

    That is, when I go to debug mode in CCS, it first goes low, then returns to high as the debugger and emulator initialization proceeds.

    Thank you

    Dale

  • Hello Dale,

    I would go back on your first post.

    "IT came as part of a C200 kit I purchased long ago, and is marked "C2000" on the emulator..."

    I would believe that the CCS is trying to use features from an emulator that has been designed for C2000 device. I believe checking with C2000 team/forum may lead some more answers it there was a restriction placed on this emulator's firmware!!!

    Regards
    Amit
  • HI Amit

    It was confirmed that the emulator I have is specific for C2000 devices.
    So, now I know the emulator is the issue

    Thank you

    Dale