I recently made a PCB for TM4C123GH6PGE controller which can be debugged through 20 pin JTAG connection.
Connections I have used for JTAG is as below:
These are the connections I have got from "XDS Target Connection Guide_Wiki". All these connections are correctly made on the PCB.(verified many times)
I recently bought 'BlackHawk XDS100v2 ARM' for debuging the controller.Whenever I connect 'BlackHawk XDS100v2 ARM' to my computer, I can see 'TI XDS100 Channel A' and 'TI XDS100 Channel B' in my device manager.One of the TI wiki page says that it means drivers for XDS are properly installed.
I am using CCS 5.5.0.00077 in my system.I have created a new project for this controller. I have changed the connection type to 'Texas Instruments XDS100V2 USB Emulator' in both properties window and 'target_config.ccxml'. I have checked the correct device type i.e. 'Tiva TM4C123GH6PGE'.
When I have tried test connection in the CCS, it gave me the following error log
[Start]
Execute the command:
%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity
[Result]
-----[Print the board config pathname(s)]------------------------------------
C:\Users\WOLVER~1\AppData\Local\.TI\693494126\
0\0\BrdDat\testBoard.dat
-----[Print the reset-command software log-file]-----------------------------
This utility has selected a 100- or 510-class product.
This utility will load the adapter 'jioserdesusb.dll'.
The library build date was 'Aug 20 2013'.
The library build time was '22:56:19'.
The library package version is '5.1.232.0'.
The library component version is '35.34.40.0'.
The controller does not use a programmable FPGA.
The controller has a version number of '4' (0x00000004).
The controller has an insertion length of '0' (0x00000000).
This utility will attempt to reset the controller.
This utility has successfully reset the controller.
-----[Print the reset-command hardware log-file]-----------------------------
The scan-path will be reset by toggling the JTAG TRST signal.
The controller is the FTDI FT2232 with USB interface.
The link from controller to target is direct (without cable).
The software is configured for FTDI FT2232 features.
The controller cannot monitor the value on the EMU[0] pin.
The controller cannot monitor the value on the EMU[1] pin.
The controller cannot control the timing on output pins.
The controller cannot control the timing on input pins.
The scan-path link-delay has been set to exactly '0' (0x0000).
-----[The log-file for the JTAG TCLK output generated from the PLL]----------
There is no hardware for programming the JTAG TCLK frequency.
-----[Measure the source and frequency of the final JTAG TCLKR input]--------
There is no hardware for measuring the JTAG TCLK frequency.
-----[Perform the standard path-length test on the JTAG IR and DR]-----------
This path-length test uses blocks of 512 32-bit words.
The test for the JTAG IR instruction path-length failed.
The many-ones then many-zeros tested length was 49 bits.
The many-zeros then many-ones tested length was 190 bits.
The test for the JTAG DR bypass path-length failed.
The many-ones then many-zeros tested length was 58 bits.
The many-zeros then many-ones tested length was 181 bits.
-----[Perform the Integrity scan-test on the JTAG IR]------------------------
This test will use blocks of 512 32-bit words.
This test will be applied just once.
Do a test using 0xFFFFFFFF.
Scan tests: 1, skipped: 0, failed: 0
Do a test using 0x00000000.
Test 2 Word 0: scanned out 0x00000000 and scanned in 0xFFFFFFFF.
Test 2 Word 1: scanned out 0x00000000 and scanned in 0x5FFFFFFF.
Scan tests: 2, skipped: 0, failed: 1
Do a test using 0xFE03E0E2.
Test 3 Word 0: scanned out 0xFE03E0E2 and scanned in 0x00000040.
Test 3 Word 1: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 2: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 3: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 4: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 5: scanned out 0xFE03E0E2 and scanned in 0x00000000.
The details of the first 8 errors have been provided.
The utility will now report only the count of failed tests.
Scan tests: 3, skipped: 0, failed: 2
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 3
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 4
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 5
Some of the values were corrupted - 66.7 percent.
The JTAG IR Integrity scan-test has failed.
-----[Perform the Integrity scan-test on the JTAG DR]------------------------
This test will use blocks of 512 32-bit words.
This test will be applied just once.
Do a test using 0xFFFFFFFF.
Scan tests: 1, skipped: 0, failed: 0
Do a test using 0x00000000.
Test 2 Word 0: scanned out 0x00000000 and scanned in 0xFFFFFFFF.
Test 2 Word 1: scanned out 0x00000000 and scanned in 0xFFFFFFFF.
Test 2 Word 2: scanned out 0x00000000 and scanned in 0x0000001F.
Scan tests: 2, skipped: 0, failed: 1
Do a test using 0xFE03E0E2.
Test 3 Word 0: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 1: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 2: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 3: scanned out 0xFE03E0E2 and scanned in 0x00000000.
Test 3 Word 4: scanned out 0xFE03E0E2 and scanned in 0x00000000.
The details of the first 8 errors have been provided.
The utility will now report only the count of failed tests.
Scan tests: 3, skipped: 0, failed: 2
Do a test using 0x01FC1F1D.
Scan tests: 4, skipped: 0, failed: 3
Do a test using 0x5533CCAA.
Scan tests: 5, skipped: 0, failed: 4
Do a test using 0xAACC3355.
Scan tests: 6, skipped: 0, failed: 5
Some of the values were corrupted - 66.7 percent.
The JTAG DR Integrity scan-test has failed.
[End]
And whenever I tried to run the code by pressing the Debug button it shows:
CORTEX_M4_0: GEL Output:
Memory Map Initialization Complete
CS_DAP_0: Error connecting to the target: (Error -1265 @ 0x0) Device ID is not recognized or is not supported by driver. Confirm device and emulator configuration is correct, or update device driver. (Emulation package 0.0.0.0)
After seeing this CS_DAP_0, I have checked Debug device in properties window.It is default selected to "TEXAS INSTRUMENTS XDS100V2 USB EMULATOR/CORTEX_M4_0". There is another option " TEXAS INSTRUMENTS XDS100V2 USB EMULATOR/CS_DAP_0" which cannot be selected.
How do I check Whether the controller is working or not?
I have seen many forums, where people faced the same problem I have faced. But there is no proper answer anywhere.Can anyone please help me ASAP. I have to complete this project by end of this month.